pub struct SimParams {
    pub start_time: f64,
    pub stop_time: f64,
    pub output_interval: f64,
    pub tolerance: Option<f64>,
    pub event_mode_used: bool,
    pub early_return_allowed: bool,
}Fields§
§start_time: f64Start time of the simulation
stop_time: f64Stop time of the simulation
output_interval: f64Output interval
tolerance: Option<f64>Tolerance
event_mode_used: boolUse event mode
early_return_allowed: boolSupport early-return in Co-Simulation.
Implementations§
Source§impl SimParams
 
impl SimParams
Sourcepub fn new_from_options<DE>(
    options: &CommonOptions,
    default_experiment: &DE,
    event_mode_used: bool,
    early_return_allowed: bool,
) -> Selfwhere
    DE: DefaultExperiment,
 
pub fn new_from_options<DE>(
    options: &CommonOptions,
    default_experiment: &DE,
    event_mode_used: bool,
    early_return_allowed: bool,
) -> Selfwhere
    DE: DefaultExperiment,
Create a new SimParams from the given SimOptions and DefaultExperiment.
Values from SimOptions take precedence over values from DefaultExperiment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimParams
impl RefUnwindSafe for SimParams
impl Send for SimParams
impl Sync for SimParams
impl Unpin for SimParams
impl UnwindSafe for SimParams
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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>
Converts 
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>
Converts 
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