pub struct EnhancedOrchestrator { /* private fields */ }Expand description
Enhanced orchestrator with full feature integration.
Implementations§
Source§impl EnhancedOrchestrator
impl EnhancedOrchestrator
Sourcepub fn new(
config: GeneratorConfig,
phase_config: PhaseConfig,
) -> SynthResult<Self>
pub fn new( config: GeneratorConfig, phase_config: PhaseConfig, ) -> SynthResult<Self>
Create a new enhanced orchestrator.
Sourcepub fn with_defaults(config: GeneratorConfig) -> SynthResult<Self>
pub fn with_defaults(config: GeneratorConfig) -> SynthResult<Self>
Create with default phase config.
Sourcepub fn with_progress(self, show: bool) -> Self
pub fn with_progress(self, show: bool) -> Self
Enable/disable progress bars.
Sourcepub fn with_output_path<P: Into<PathBuf>>(self, path: P) -> Self
pub fn with_output_path<P: Into<PathBuf>>(self, path: P) -> Self
Set the output path for disk space monitoring.
Sourcepub fn has_copulas(&self) -> bool
pub fn has_copulas(&self) -> bool
Check if copula generators are available.
Returns true if the orchestrator has copula generators for preserving correlations (typically from fingerprint-based generation).
Sourcepub fn copulas(&self) -> &[CopulaGeneratorSpec]
pub fn copulas(&self) -> &[CopulaGeneratorSpec]
Get the copula generators.
Returns a reference to the copula generators for use during generation. These can be used to generate correlated samples that preserve the statistical relationships from the source data.
Sourcepub fn copulas_mut(&mut self) -> &mut [CopulaGeneratorSpec]
pub fn copulas_mut(&mut self) -> &mut [CopulaGeneratorSpec]
Get a mutable reference to the copula generators.
Allows generators to sample from copulas during data generation.
Sourcepub fn sample_from_copula(&mut self, copula_name: &str) -> Option<Vec<f64>>
pub fn sample_from_copula(&mut self, copula_name: &str) -> Option<Vec<f64>>
Sample correlated values from a named copula.
Returns None if the copula doesn’t exist.
Sourcepub fn from_fingerprint(
fingerprint_path: &Path,
phase_config: PhaseConfig,
scale: f64,
) -> SynthResult<Self>
pub fn from_fingerprint( fingerprint_path: &Path, phase_config: PhaseConfig, scale: f64, ) -> SynthResult<Self>
Create an orchestrator from a fingerprint file.
This reads the fingerprint, synthesizes a GeneratorConfig from it, and creates an orchestrator configured to generate data matching the statistical properties of the original data.
§Arguments
fingerprint_path- Path to the .dsf fingerprint filephase_config- Phase configuration for generationscale- Scale factor for row counts (1.0 = same as original)
§Example
use datasynth_runtime::{EnhancedOrchestrator, PhaseConfig};
use std::path::Path;
let orchestrator = EnhancedOrchestrator::from_fingerprint(
Path::new("fingerprint.dsf"),
PhaseConfig::default(),
1.0,
).unwrap();Sourcepub fn from_fingerprint_data(
fingerprint: Fingerprint,
phase_config: PhaseConfig,
scale: f64,
) -> SynthResult<Self>
pub fn from_fingerprint_data( fingerprint: Fingerprint, phase_config: PhaseConfig, scale: f64, ) -> SynthResult<Self>
Create an orchestrator from a loaded fingerprint.
§Arguments
fingerprint- The loaded fingerprintphase_config- Phase configuration for generationscale- Scale factor for row counts (1.0 = same as original)
Sourcepub fn generate(&mut self) -> SynthResult<EnhancedGenerationResult>
pub fn generate(&mut self) -> SynthResult<EnhancedGenerationResult>
Run the complete generation workflow.
Sourcepub fn get_coa(&self) -> Option<Arc<ChartOfAccounts>>
pub fn get_coa(&self) -> Option<Arc<ChartOfAccounts>>
Get the generated chart of accounts.
Sourcepub fn get_master_data(&self) -> &MasterDataSnapshot
pub fn get_master_data(&self) -> &MasterDataSnapshot
Get the generated master data.
Auto Trait Implementations§
impl !Freeze for EnhancedOrchestrator
impl RefUnwindSafe for EnhancedOrchestrator
impl Send for EnhancedOrchestrator
impl Sync for EnhancedOrchestrator
impl Unpin for EnhancedOrchestrator
impl UnwindSafe for EnhancedOrchestrator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more