pub enum Variability {
Constant,
Fixed,
Tunable,
Discrete,
Continuous,
}
Expand description
Enumeration that defines the time dependency of the variable, in other words it defines the time instants when a variable can change its value.
The default is Variability::Continuous
.
Variants§
Constant
The value of the variable never changes.
Fixed
The value of the variable is fixed after initialization, in other words after exit_initialization_mode()
was called the variable value does not change anymore.
Tunable
The value of the variable is constant between external events (ModelExchange) and between Communication Points (CoSimulation) due to changing variables with causality = “parameter” or “input” and variability = “tunable”.
Discrete
- ModelExchange: The value of the variable is constant between external and internal events (= time, state, step events defined implicitly in the FMU).
- CoSimulation: By convention, the variable is from a “real” sampled data system and its value is only changed at Communication Points (also inside the slave).
Continuous
Only a variable of type = “Real” can be “continuous”.
- ModelExchange: No restrictions on value changes.
- CoSimulation: By convention, the variable is from a differential
Trait Implementations§
Source§impl Clone for Variability
impl Clone for Variability
Source§fn clone(&self) -> Variability
fn clone(&self) -> Variability
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Variability
impl Debug for Variability
Source§impl Default for Variability
impl Default for Variability
Source§fn default() -> Variability
fn default() -> Variability
Returns the “default value” for a type. Read more
Source§impl PartialEq for Variability
impl PartialEq for Variability
Source§impl YaDeserialize for Variability
impl YaDeserialize for Variability
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for Variability
impl YaSerialize for Variability
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 Variability
Auto Trait Implementations§
impl Freeze for Variability
impl RefUnwindSafe for Variability
impl Send for Variability
impl Sync for Variability
impl Unpin for Variability
impl UnwindSafe for Variability
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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