pub enum ModelState {
StartAndEnd,
ConfigurationMode,
Instantiated,
InitializationMode,
EventMode,
ContinuousTimeMode,
StepMode,
ClockActivationMode,
StepDiscarded,
ReconfigurationMode,
IntermediateUpdateMode,
Terminated,
}Expand description
Specifies how Co-Simulation is implemented for a model Represents the current state of the model instance
Variants§
StartAndEnd
ConfigurationMode
Instantiated
In the state Instantiated the FMU can do one-time initializations and allocate memory.
InitializationMode
The InitializationMode is used by the simulation algorithm to compute consistent initial
conditions for the overall system. Equations are active to determine the initial FMU state,
as well as all outputs (and optionally other variables exposed by the exporting tool).
Artificial or real algebraic loops over connected FMUs in Initialization Mode may be handled
by using appropriate numerical algorithms.
EventMode
In EventMode all continuous-time, discrete-time equations and active model partitions are
evaluated. Algebraic loops active during Event Mode are solved by event iteration.
ContinuousTimeMode
StepMode
ClockActivationMode
StepDiscarded
ReconfigurationMode
IntermediateUpdateMode
Terminated
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelState
impl RefUnwindSafe for ModelState
impl Send for ModelState
impl Sync for ModelState
impl Unpin for ModelState
impl UnwindSafe for ModelState
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> InitializeFromStart<T> for T
impl<T> InitializeFromStart<T> for T
fn set_from_start(&mut self, value: T)
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