pub struct ValueAliasSet<'a>(pub &'a Object);Expand description
Describes the translation of a set of values into a name and is intendend to facilitate cusom translations. Each ValueAliasSet has a name, description etc. A specific Measurement may represent a discrete state like Open, Closed, Intermediate etc. This requires a translation from the MeasurementValue.value number to a string, e.g. 0->“Invalid”, 1->“Open”, 2->“Closed”, 3->“Intermediate”. Each ValueToAlias member in ValueAliasSet.Value describe a mapping for one particular value to a name.
Tuple Fields§
§0: &'a ObjectImplementations§
Source§impl<'a> ValueAliasSet<'a>
impl<'a> ValueAliasSet<'a>
pub fn energy_ident_code_eic(&self) -> Option<&'a str>
Sourcepub fn short_name(&self) -> Option<&'a str>
pub fn short_name(&self) -> Option<&'a str>
The attribute is used for an exchange of a human readable short name with length of the string 12 characters maximum.
Sourcepub fn diagram_objects(
&self,
) -> impl Iterator<Item = TypedRef<DiagramObject<'static>>> + use<'a>
pub fn diagram_objects( &self, ) -> impl Iterator<Item = TypedRef<DiagramObject<'static>>> + use<'a>
The domain object to which this diagram object is associated.
Sourcepub fn diagram_objects_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = DiagramObject<'d>> + use<'a, 'd>
pub fn diagram_objects_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = DiagramObject<'d>> + use<'a, 'd>
Resolve every DiagramObjects through dataset, skipping unresolved references.
Sourcepub fn description(&self) -> Option<&'a str>
pub fn description(&self) -> Option<&'a str>
The description is a free human readable text describing or naming the object. It may be non unique and may not correlate to a naming hierarchy.
Sourcepub fn m_rid(&self) -> Option<&'a str>
pub fn m_rid(&self) -> Option<&'a str>
Master resource identifier issued by a model authority. The mRID is globally unique within an exchange context. Global uniqueness is easily achieved by using a UUID, as specified in RFC 4122, for the mRID. The use of UUID is strongly recommended. For CIMXML data files in RDF syntax conforming to IEC 61970-552 Edition 1, the mRID is mapped to rdf:ID or rdf:about attributes that identify CIM object elements.
Sourcepub fn name(&self) -> Option<&'a str>
pub fn name(&self) -> Option<&'a str>
The name is any free human readable and possibly non unique text naming the object.
Sourcepub fn commands(
&self,
) -> impl Iterator<Item = TypedRef<Command<'static>>> + use<'a>
pub fn commands( &self, ) -> impl Iterator<Item = TypedRef<Command<'static>>> + use<'a>
The Commands using the set for translation.
Sourcepub fn commands_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = Command<'d>> + use<'a, 'd>
pub fn commands_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = Command<'d>> + use<'a, 'd>
Resolve every Commands through dataset, skipping unresolved references.
Sourcepub fn discretes(
&self,
) -> impl Iterator<Item = TypedRef<Discrete<'static>>> + use<'a>
pub fn discretes( &self, ) -> impl Iterator<Item = TypedRef<Discrete<'static>>> + use<'a>
The Measurements using the set for translation.
Sourcepub fn discretes_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = Discrete<'d>> + use<'a, 'd>
pub fn discretes_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = Discrete<'d>> + use<'a, 'd>
Resolve every Discretes through dataset, skipping unresolved references.
Sourcepub fn raise_lower_commands(
&self,
) -> impl Iterator<Item = TypedRef<RaiseLowerCommand<'static>>> + use<'a>
pub fn raise_lower_commands( &self, ) -> impl Iterator<Item = TypedRef<RaiseLowerCommand<'static>>> + use<'a>
The Commands using the set for translation.
Sourcepub fn raise_lower_commands_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = RaiseLowerCommand<'d>> + use<'a, 'd>
pub fn raise_lower_commands_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = RaiseLowerCommand<'d>> + use<'a, 'd>
Resolve every RaiseLowerCommands through dataset, skipping unresolved references.
Sourcepub fn values(
&self,
) -> impl Iterator<Item = TypedRef<ValueToAlias<'static>>> + use<'a>
pub fn values( &self, ) -> impl Iterator<Item = TypedRef<ValueToAlias<'static>>> + use<'a>
The ValueAliasSet having the ValueToAlias mappings.
Sourcepub fn values_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = ValueToAlias<'d>> + use<'a, 'd>
pub fn values_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = ValueToAlias<'d>> + use<'a, 'd>
Resolve every Values through dataset, skipping unresolved references.