pub struct Discrete<'a>(pub &'a Object);Expand description
Discrete represents a discrete Measurement, i.e. a Measurement representing discrete values, e.g. a Breaker position.
Tuple Fields§
§0: &'a ObjectImplementations§
Source§impl<'a> Discrete<'a>
impl<'a> Discrete<'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 power_system_resource(
&self,
) -> Option<TypedRef<PowerSystemResource<'static>>>
pub fn power_system_resource( &self, ) -> Option<TypedRef<PowerSystemResource<'static>>>
The power system resource that contains the measurement.
Sourcepub fn power_system_resource_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<PowerSystemResource<'d>>
pub fn power_system_resource_in<'d>( &self, dataset: &'d Dataset, ) -> Option<PowerSystemResource<'d>>
Resolve PowerSystemResource through dataset.
Sourcepub fn terminal(&self) -> Option<TypedRef<ACDCTerminal<'static>>>
pub fn terminal(&self) -> Option<TypedRef<ACDCTerminal<'static>>>
One or more measurements may be associated with a terminal in the network.
Sourcepub fn terminal_in<'d>(&self, dataset: &'d Dataset) -> Option<ACDCTerminal<'d>>
pub fn terminal_in<'d>(&self, dataset: &'d Dataset) -> Option<ACDCTerminal<'d>>
Resolve Terminal through dataset.
Sourcepub fn measurement_type(&self) -> Option<&'a str>
pub fn measurement_type(&self) -> Option<&'a str>
Specifies the type of measurement. For example, this specifies if the measurement represents an indoor temperature, outdoor temperature, bus voltage, line flow, etc. When the measurementType is set to “Specialization”, the type of Measurement is defined in more detail by the specialized class which inherits from Measurement.
Sourcepub fn phases(&self) -> Option<EnumValueId>
pub fn phases(&self) -> Option<EnumValueId>
Indicates to which phases the measurement applies and avoids the need to use ‘measurementType’ to also encode phase information (which would explode the types). The phase information in Measurement, along with ‘measurementType’ and ‘phases’ uniquely defines a Measurement for a device, based on normal network phase. Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons. If the attribute is missing three phases (ABC) shall be assumed.
Sourcepub fn unit_multiplier(&self) -> Option<EnumValueId>
pub fn unit_multiplier(&self) -> Option<EnumValueId>
The unit multiplier of the measured quantity.
Sourcepub fn unit_symbol(&self) -> Option<EnumValueId>
pub fn unit_symbol(&self) -> Option<EnumValueId>
The unit of measure of the measured quantity.
Sourcepub fn discrete_values(
&self,
) -> impl Iterator<Item = TypedRef<DiscreteValue<'static>>> + use<'a>
pub fn discrete_values( &self, ) -> impl Iterator<Item = TypedRef<DiscreteValue<'static>>> + use<'a>
The values connected to this measurement.
Sourcepub fn discrete_values_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = DiscreteValue<'d>> + use<'a, 'd>
pub fn discrete_values_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = DiscreteValue<'d>> + use<'a, 'd>
Resolve every DiscreteValues through dataset, skipping unresolved references.
Sourcepub fn value_alias_set(&self) -> Option<TypedRef<ValueAliasSet<'static>>>
pub fn value_alias_set(&self) -> Option<TypedRef<ValueAliasSet<'static>>>
The ValueAliasSet used for translation of a MeasurementValue.value to a name.
Sourcepub fn value_alias_set_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<ValueAliasSet<'d>>
pub fn value_alias_set_in<'d>( &self, dataset: &'d Dataset, ) -> Option<ValueAliasSet<'d>>
Resolve ValueAliasSet through dataset.