pub struct Fmi3Import { /* private fields */ }Expand description
FMU import for FMI 3.0
Trait Implementations§
Source§impl Debug for Fmi3Import
impl Debug for Fmi3Import
Source§impl<'a> Fmi3Model<'a> for Fmi3Import
impl<'a> Fmi3Model<'a> for Fmi3Import
Source§fn instantiate_me(
&'a self,
instance_name: &str,
visible: bool,
logging_on: bool,
) -> Result<Self::InstanceME, Error>
fn instantiate_me( &'a self, instance_name: &str, visible: bool, logging_on: bool, ) -> Result<Self::InstanceME, Error>
Create a new instance of the FMU for Model-Exchange
See instance::InstanceME::new for more information.
Source§fn instantiate_cs(
&'a self,
instance_name: &str,
visible: bool,
logging_on: bool,
event_mode_used: bool,
early_return_allowed: bool,
required_intermediate_variables: &[fmi3ValueReference],
) -> Result<Self::InstanceCS, Error>
fn instantiate_cs( &'a self, instance_name: &str, visible: bool, logging_on: bool, event_mode_used: bool, early_return_allowed: bool, required_intermediate_variables: &[fmi3ValueReference], ) -> Result<Self::InstanceCS, Error>
Create a new instance of the FMU for Co-Simulation
See instance::InstanceCS::new for more information.
Source§fn instantiate_se(
&'a self,
instance_name: &str,
visible: bool,
logging_on: bool,
) -> Result<Self::InstanceSE, Error>
fn instantiate_se( &'a self, instance_name: &str, visible: bool, logging_on: bool, ) -> Result<Self::InstanceSE, Error>
Create a new instance of the FMU for Scheduled Execution
See instance::InstanceSE::new for more information.
type InstanceCS = Instance<'a, CS>
type InstanceME = Instance<'a, ME>
type InstanceSE = Instance<'a, SE>
Source§impl FmiImport for Fmi3Import
impl FmiImport for Fmi3Import
Source§fn new(dir: TempDir, schema_xml: &str) -> Result<Self, Error>
fn new(dir: TempDir, schema_xml: &str) -> Result<Self, Error>
Create a new FMI 3.0 import from a directory containing the unzipped FMU
Get the path to the shared library
Source§fn model_description(&self) -> &Self::ModelDescription
fn model_description(&self) -> &Self::ModelDescription
Get the parsed raw-schema model description
Source§fn binding(&self, model_identifier: &str) -> Result<Self::Binding, Error>
fn binding(&self, model_identifier: &str) -> Result<Self::Binding, Error>
Load the plugin shared library and return the raw bindings.
Source§fn canonical_resource_path_string(&self) -> String
fn canonical_resource_path_string(&self) -> String
Get a String representation of the resources path for this FMU
As per the FMI3.0 standard, resourcePath is the absolute file path (with a trailing file separator) of the
resources directory of the extracted FMU archive.
Source§const MAJOR_VERSION: MajorVersion = MajorVersion::FMI3
const MAJOR_VERSION: MajorVersion = MajorVersion::FMI3
Source§type ModelDescription = Fmi3ModelDescription
type ModelDescription = Fmi3ModelDescription
Source§type Binding = Fmi3Binding
type Binding = Fmi3Binding
Source§fn archive_path(&self) -> &Path
fn archive_path(&self) -> &Path
Source§fn resource_path(&self) -> PathBuf
fn resource_path(&self) -> PathBuf
Auto Trait Implementations§
impl Freeze for Fmi3Import
impl RefUnwindSafe for Fmi3Import
impl Send for Fmi3Import
impl Sync for Fmi3Import
impl Unpin for Fmi3Import
impl UnwindSafe for Fmi3Import
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