pub struct SimEngine { /* private fields */ }Expand description
Main simulation engine.
Coordinates all subsystems:
- Event scheduling
- State management
- Jidoka monitoring
- Checkpointing
- Physics simulation
Implementations§
Source§impl SimEngine
impl SimEngine
Sourcepub fn new(config: SimConfig) -> SimResult<Self>
pub fn new(config: SimConfig) -> SimResult<Self>
Create a new simulation engine from configuration.
§Errors
Returns error if configuration validation fails.
Sourcepub fn current_time(&self) -> SimTime
pub fn current_time(&self) -> SimTime
Get current simulation time.
Sourcepub fn step(&mut self) -> SimResult<()>
pub fn step(&mut self) -> SimResult<()>
Step the simulation forward by one timestep.
§Errors
Returns SimError if:
- Jidoka violation detected (NaN, energy drift, constraint)
- Domain engine error
Auto Trait Implementations§
impl Freeze for SimEngine
impl !RefUnwindSafe for SimEngine
impl Send for SimEngine
impl Sync for SimEngine
impl Unpin for SimEngine
impl UnsafeUnpin for SimEngine
impl !UnwindSafe for SimEngine
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