pub struct DiscreteValue<'a>(pub &'a Object);Expand description
DiscreteValue represents a discrete MeasurementValue.
Tuple Fields§
§0: &'a ObjectImplementations§
Source§impl<'a> DiscreteValue<'a>
impl<'a> DiscreteValue<'a>
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 diagram objects that are associated with the domain object.
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 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, 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 energy_ident_code_eic(&self) -> Option<&'a str>
pub fn energy_ident_code_eic(&self) -> Option<&'a str>
The attribute is used for an exchange of the EIC code (Energy identification Code). The length of the string is 16 characters as defined by the EIC code. For details on EIC scheme please refer to ENTSO-E web site.
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 measurement_value_quality(
&self,
) -> Option<TypedRef<MeasurementValueQuality<'static>>>
pub fn measurement_value_quality( &self, ) -> Option<TypedRef<MeasurementValueQuality<'static>>>
A MeasurementValue has a MeasurementValueQuality associated with it.
Sourcepub fn measurement_value_quality_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<MeasurementValueQuality<'d>>
pub fn measurement_value_quality_in<'d>( &self, dataset: &'d Dataset, ) -> Option<MeasurementValueQuality<'d>>
Resolve MeasurementValueQuality through dataset.
Sourcepub fn measurement_value_source(
&self,
) -> Option<TypedRef<MeasurementValueSource<'static>>>
pub fn measurement_value_source( &self, ) -> Option<TypedRef<MeasurementValueSource<'static>>>
A reference to the type of source that updates the MeasurementValue, e.g. SCADA, CCLink, manual, etc. User conventions for the names of sources are contained in the introduction to IEC 61970-301.
Sourcepub fn measurement_value_source_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<MeasurementValueSource<'d>>
pub fn measurement_value_source_in<'d>( &self, dataset: &'d Dataset, ) -> Option<MeasurementValueSource<'d>>
Resolve MeasurementValueSource through dataset.
Sourcepub fn sensor_accuracy(&self) -> Option<f64>
pub fn sensor_accuracy(&self) -> Option<f64>
The limit, expressed as a percentage of the sensor maximum, that errors will not exceed when the sensor is used under reference conditions.
Unit: none.
Sourcepub fn time_stamp(&self) -> Option<&'a str>
pub fn time_stamp(&self) -> Option<&'a str>
The time when the value was last updated.
Sourcepub fn command(&self) -> Option<TypedRef<Command<'static>>>
pub fn command(&self) -> Option<TypedRef<Command<'static>>>
The Control variable associated with the MeasurementValue.
Sourcepub fn command_in<'d>(&self, dataset: &'d Dataset) -> Option<Command<'d>>
pub fn command_in<'d>(&self, dataset: &'d Dataset) -> Option<Command<'d>>
Resolve Command through dataset.
Sourcepub fn discrete(&self) -> Option<TypedRef<Discrete<'static>>>
pub fn discrete(&self) -> Option<TypedRef<Discrete<'static>>>
Measurement to which this value is connected.
Sourcepub fn discrete_in<'d>(&self, dataset: &'d Dataset) -> Option<Discrete<'d>>
pub fn discrete_in<'d>(&self, dataset: &'d Dataset) -> Option<Discrete<'d>>
Resolve Discrete through dataset.