pub struct Fmi3ModelDescription {Show 21 fields
pub fmi_version: String,
pub model_name: String,
pub instantiation_token: String,
pub description: Option<String>,
pub author: Option<String>,
pub version: Option<String>,
pub copyright: Option<String>,
pub license: Option<String>,
pub generation_tool: Option<String>,
pub generation_date_and_time: Option<String>,
pub variable_naming_convention: Option<String>,
pub model_exchange: Option<Fmi3ModelExchange>,
pub co_simulation: Option<Fmi3CoSimulation>,
pub scheduled_execution: Option<Fmi3ScheduledExecution>,
pub unit_definitions: Option<UnitDefinitions>,
pub type_definitions: Option<TypeDefinitions>,
pub log_categories: Option<LogCategories>,
pub default_experiment: Option<DefaultExperiment>,
pub model_variables: ModelVariables,
pub model_structure: ModelStructure,
pub annotations: Option<Annotations>,
}
Fields§
§fmi_version: String
Version of FMI that was used to generate the XML file.
model_name: String
The name of the model as used in the modeling environment that generated the XML file, such as Modelica.Mechanics.Rotational.Examples.CoupledClutches.
instantiation_token: String
The instantiationToken is a string that can be used by the FMU to check that the XML file is compatible with the implementation of the FMU.
description: Option<String>
Optional string with a brief description of the model.
String with the name and organization of the model author.
version: Option<String>
Version of the model [for example 1.0].
copyright: Option<String>
Information on the intellectual property copyright for this FMU [for example © My Company 2011].
license: Option<String>
Information on the intellectual property licensing for this FMU [for example BSD license
generation_tool: Option<String>
Name of the tool that generated the XML file.
generation_date_and_time: Option<String>
Date and time when the XML file was generated. The format is a subset of dateTime and should be: YYYY-MM-DDThh:mm:ssZ (with one T between date and time; Z characterizes the Zulu time zone, in other words, Greenwich meantime) [for example 2009-12-08T14:33:22Z].
variable_naming_convention: Option<String>
Defines whether the variable names in
model_exchange: Option<Fmi3ModelExchange>
If present, the FMU is based on FMI for Model Exchange
co_simulation: Option<Fmi3CoSimulation>
If present, the FMU is based on FMI for Co-Simulation
scheduled_execution: Option<Fmi3ScheduledExecution>
If present, the FMU is based on FMI for Scheduled Execution
unit_definitions: Option<UnitDefinitions>
A global list of unit and display unit definitions
type_definitions: Option<TypeDefinitions>
A global list of type definitions that are utilized in ModelVariables
log_categories: Option<LogCategories>
§default_experiment: Option<DefaultExperiment>
Providing default settings for the integrator, such as stop time and relative tolerance.
model_variables: ModelVariables
§model_structure: ModelStructure
The model structure defines the dependency structure of the model variables.
annotations: Option<Annotations>
Trait Implementations§
Source§impl Debug for Fmi3ModelDescription
impl Debug for Fmi3ModelDescription
Source§impl Default for Fmi3ModelDescription
impl Default for Fmi3ModelDescription
Source§fn default() -> Fmi3ModelDescription
fn default() -> Fmi3ModelDescription
Source§impl FmiModelDescription for Fmi3ModelDescription
impl FmiModelDescription for Fmi3ModelDescription
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Source§fn version_string(&self) -> &str
fn version_string(&self) -> &str
Source§fn version(&self) -> Result<Version, Error>
fn version(&self) -> Result<Version, Error>
Source§fn major_version(&self) -> Result<MajorVersion, Error>
fn major_version(&self) -> Result<MajorVersion, Error>
Source§impl FromStr for Fmi3ModelDescription
impl FromStr for Fmi3ModelDescription
Source§impl PartialEq for Fmi3ModelDescription
impl PartialEq for Fmi3ModelDescription
Source§impl YaDeserialize for Fmi3ModelDescription
impl YaDeserialize for Fmi3ModelDescription
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for Fmi3ModelDescription
impl YaSerialize for Fmi3ModelDescription
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for Fmi3ModelDescription
Auto Trait Implementations§
impl Freeze for Fmi3ModelDescription
impl RefUnwindSafe for Fmi3ModelDescription
impl Send for Fmi3ModelDescription
impl Sync for Fmi3ModelDescription
impl Unpin for Fmi3ModelDescription
impl UnwindSafe for Fmi3ModelDescription
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