CommonOptions

Struct CommonOptions 

Source
pub struct CommonOptions {
    pub initial_fmu_state_file: Option<PathBuf>,
    pub final_fmu_state_file: Option<PathBuf>,
    pub initial_values: Vec<String>,
    pub print_left_limit: bool,
    pub print_all_variables: bool,
    pub step_size: Option<f64>,
    pub output_interval: Option<f64>,
    pub num_steps: usize,
    pub start_time: Option<f64>,
    pub stop_time: Option<f64>,
    pub tolerance: Option<f64>,
}

Fields§

§initial_fmu_state_file: Option<PathBuf>

File containing initial serialized FMU state.

§final_fmu_state_file: Option<PathBuf>

File to write final serialized FMU state.

§initial_values: Vec<String>

List of initial values to set before simulation starts. The format is “variableName=value”, where variableName is the name of the variable and value is the value to set. The value must be of the same type as the variable. The variable name must be a valid FMI variable name, i.e. it must be a valid identifier and it must be unique.

§print_left_limit: bool

Print also left limit values at event points to the output file to investigate event behaviour. Default is to only print values after event handling.

§print_all_variables: bool

Print all variables to the output file. Default is to only print outputs.

§step_size: Option<f64>

For ME simulation: Decides step size to use in forward Euler. For CS simulation: Decides communication step size for the stepping. Observe that if a small stepSize is used the number of saved outputs will still be limited by the number of output points. Default is to calculated a step size from the number of output points. See the -n option for how the number of outputs is set.

§output_interval: Option<f64>§num_steps: usize

Maximum number of output points. “-n 0” means output at every step and the number of outputs are decided by the -h option. Observe that no interpolation is used, output points are taken at the steps.

§start_time: Option<f64>

Simulation start time, default is to use information from ‘DefaultExperiment’ as specified in the model description XML.

§stop_time: Option<f64>

Simulation stop time, default is to use information from ‘DefaultExperiment’ as specified in the model description XML.

§tolerance: Option<f64>

Relative tolerance

Trait Implementations§

Source§

impl Args for CommonOptions

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl Debug for CommonOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CommonOptions

Source§

fn default() -> CommonOptions

Returns the “default value” for a type. Read more
Source§

impl FromArgMatches for CommonOptions

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> ErasedDestructor for T
where T: 'static,