Skip to main content

FmiInterfaceType

Trait FmiInterfaceType 

Source
pub trait FmiInterfaceType: Sized {
    // Required methods
    fn model_identifier(&self) -> &str;
    fn needs_execution_tool(&self) -> Option<bool>;
    fn can_be_instantiated_only_once_per_process(&self) -> Option<bool>;
    fn can_get_and_set_fmu_state(&self) -> Option<bool>;
    fn can_serialize_fmu_state(&self) -> Option<bool>;
    fn provides_directional_derivatives(&self) -> Option<bool>;
    fn provides_adjoint_derivatives(&self) -> Option<bool>;
    fn provides_per_element_dependencies(&self) -> Option<bool>;
}
Expand description

A trait for FMI interface types (Model Exchange, Co-Simulation, Scheduled Execution) and versions

Required Methods§

Source

fn model_identifier(&self) -> &str

Returns the model identifier

Source

fn needs_execution_tool(&self) -> Option<bool>

Returns true if the FMU needs an execution tool

Source

fn can_be_instantiated_only_once_per_process(&self) -> Option<bool>

Returns true if the FMU can be instantiated only once per process

Source

fn can_get_and_set_fmu_state(&self) -> Option<bool>

Returns true if the FMU can get and set FMU state

Source

fn can_serialize_fmu_state(&self) -> Option<bool>

Returns true if the FMU can serialize FMU state

Source

fn provides_directional_derivatives(&self) -> Option<bool>

Returns true if the FMU provides directional derivatives

Source

fn provides_adjoint_derivatives(&self) -> Option<bool>

Returns true if the FMU provides adjoint derivatives (only FMI 3.0)

Source

fn provides_per_element_dependencies(&self) -> Option<bool>

Returns true if the FMU provides per element dependencies (only FMI 3.0)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§