pub struct SimConfig {
pub schema_version: String,
pub simulation: SimulationMeta,
pub reproducibility: ReproducibilityConfig,
pub domains: DomainsConfig,
pub jidoka: JidokaConfig,
pub replay: ReplayConfig,
pub visualization: VisualizationConfig,
pub falsification: FalsificationConfig,
}Expand description
Top-level simulation configuration.
Loaded from YAML files with full schema validation.
Fields§
§schema_version: StringSchema version for forward compatibility.
simulation: SimulationMetaSimulation metadata.
reproducibility: ReproducibilityConfigReproducibility settings.
domains: DomainsConfigDomain-specific configurations.
jidoka: JidokaConfigJidoka (stop-on-error) configuration.
replay: ReplayConfigReplay configuration.
visualization: VisualizationConfigVisualization configuration.
falsification: FalsificationConfigFalsification testing configuration.
Implementations§
Source§impl SimConfig
impl SimConfig
Sourcepub fn load<P: AsRef<Path>>(path: P) -> SimResult<Self>
pub fn load<P: AsRef<Path>>(path: P) -> SimResult<Self>
Load configuration from a YAML file.
§Errors
Returns error if:
- File cannot be read
- YAML parsing fails
- Validation fails
Sourcepub fn builder() -> SimConfigBuilder
pub fn builder() -> SimConfigBuilder
Create a builder for configuration.
Sourcepub const fn get_timestep(&self) -> f64
pub const fn get_timestep(&self) -> f64
Get the timestep in seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimConfig
impl<'de> Deserialize<'de> for SimConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'v_a> ValidateArgs<'v_a> for SimConfig
impl<'v_a> ValidateArgs<'v_a> for SimConfig
Auto Trait Implementations§
impl Freeze for SimConfig
impl RefUnwindSafe for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnsafeUnpin for SimConfig
impl UnwindSafe for SimConfig
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
Mutably borrows from an owned value. Read more