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: boolPrint 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: boolPrint 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: usizeMaximum 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
impl Args for CommonOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for CommonOptions
impl Debug for CommonOptions
Source§impl Default for CommonOptions
impl Default for CommonOptions
Source§fn default() -> CommonOptions
fn default() -> CommonOptions
Source§impl FromArgMatches for CommonOptions
impl FromArgMatches for CommonOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CommonOptions
impl RefUnwindSafe for CommonOptions
impl Send for CommonOptions
impl Sync for CommonOptions
impl Unpin for CommonOptions
impl UnwindSafe for CommonOptions
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> 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