Fmi3Import

Struct Fmi3Import 

Source
pub struct Fmi3Import { /* private fields */ }
Expand description

FMU import for FMI 3.0

Trait Implementations§

Source§

impl Debug for Fmi3Import

Source§

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

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

impl<'a> Fmi3Model<'a> for Fmi3Import

Source§

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>

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>

Create a new instance of the FMU for Scheduled Execution

See instance::InstanceSE::new for more information.

Source§

type InstanceCS = Instance<'a, CS>

Source§

type InstanceME = Instance<'a, ME>

Source§

type InstanceSE = Instance<'a, SE>

Source§

impl FmiImport for Fmi3Import

Source§

fn new(dir: TempDir, schema_xml: &str) -> Result<Self, Error>

Create a new FMI 3.0 import from a directory containing the unzipped FMU

Source§

fn shared_lib_path(&self, model_identifier: &str) -> Result<PathBuf, Error>

Get the path to the shared library

Source§

fn model_description(&self) -> &Self::ModelDescription

Get the parsed raw-schema model description

Source§

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

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

The type of the major version
Source§

type ModelDescription = Fmi3ModelDescription

The raw parsed XML schema type
Source§

type Binding = Fmi3Binding

The raw FMI bindings type
Source§

type ValueRef = u32

The type of the value reference used by the FMI API.
Source§

fn archive_path(&self) -> &Path

Return the path to the extracted FMU
Source§

fn resource_path(&self) -> PathBuf

Return the path to the resources directory

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,