Skip to main content

Measurement

Struct Measurement 

Source
pub struct Measurement<'a>(pub &'a Object);
Expand description

A Measurement represents any measured, calculated or non-measured non-calculated quantity. Any piece of equipment may contain Measurements, e.g. a substation may have temperature measurements and door open indications, a transformer may have oil temperature and tank pressure measurements, a bay may contain a number of power flow measurements and a Breaker may contain a switch status measurement. The PSR - Measurement association is intended to capture this use of Measurement and is included in the naming hierarchy based on EquipmentContainer. The naming hierarchy typically has Measurements as leafs, e.g. Substation-VoltageLevel-Bay-Switch-Measurement. Some Measurements represent quantities related to a particular sensor location in the network, e.g. a voltage transformer (PT) at a busbar or a current transformer (CT) at the bar between a breaker and an isolator. The sensing position is not captured in the PSR - Measurement association. Instead it is captured by the Measurement - Terminal association that is used to define the sensing location in the network topology. The location is defined by the connection of the Terminal to ConductingEquipment. If both a Terminal and PSR are associated, and the PSR is of type ConductingEquipment, the associated Terminal should belong to that ConductingEquipment instance. When the sensor location is needed both Measurement-PSR and Measurement-Terminal are used. The Measurement-Terminal association is never used alone.

Tuple Fields§

§0: &'a Object

Implementations§

Source§

impl<'a> Measurement<'a>

Source

pub fn mrid(&self) -> &'a Mrid

The object’s master resource identifier.

Source

pub fn energy_ident_code_eic(&self) -> Option<&'a str>

Source

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.

Source

pub fn diagram_objects( &self, ) -> impl Iterator<Item = TypedRef<DiagramObject<'static>>> + use<'a>

The domain object to which this diagram object is associated.

Source

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.

Source

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.

Source

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.

Source

pub fn name(&self) -> Option<&'a str>

The name is any free human readable and possibly non unique text naming the object.

Source

pub fn power_system_resource( &self, ) -> Option<TypedRef<PowerSystemResource<'static>>>

The measurements associated with this power system resource.

Source

pub fn power_system_resource_in<'d>( &self, dataset: &'d Dataset, ) -> Option<PowerSystemResource<'d>>

Resolve PowerSystemResource through dataset.

Source

pub fn terminal(&self) -> Option<TypedRef<ACDCTerminal<'static>>>

One or more measurements may be associated with a terminal in the network.

Source

pub fn terminal_in<'d>(&self, dataset: &'d Dataset) -> Option<ACDCTerminal<'d>>

Resolve Terminal through dataset.

Source

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.

Source

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.

Source

pub fn unit_multiplier(&self) -> Option<EnumValueId>

The unit multiplier of the measured quantity.

Source

pub fn unit_symbol(&self) -> Option<EnumValueId>

The unit of measure of the measured quantity.

Trait Implementations§

Source§

impl<'a> Clone for Measurement<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for Measurement<'a>

Source§

impl<'a> Debug for Measurement<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> TypedView<'a> for Measurement<'a>

Source§

const CLASS: ClassId = classes::Measurement

The class this view represents.
Source§

fn from_object(o: &'a Object) -> Self

Wrap an object without checking its class.
Source§

fn object(&self) -> &'a Object

The underlying object.
Source§

fn try_from_object(schema: &Schema, object: &'a Object) -> Option<Self>

Wrap an object only if its class matches, including subclasses.
Source§

fn mrid(&self) -> &'a Mrid

The object’s master resource identifier.

Auto Trait Implementations§

§

impl<'a> Forget for Measurement<'a>

§

impl<'a> Freeze for Measurement<'a>
where &'a Object: Freeze,

§

impl<'a> Move for Measurement<'a>

§

impl<'a> RefUnwindSafe for Measurement<'a>

§

impl<'a> Send for Measurement<'a>
where &'a Object: Send,

§

impl<'a> Sync for Measurement<'a>
where BoxRaw<str>: Sync, RawVecInner: Sync, BoxRaw<(f64, Box<str>)>: Sync, BoxRaw<Compound>: Sync,

§

impl<'a> Unpin for Measurement<'a>
where &'a Object: Unpin,

§

impl<'a> UnsafeUnpin for Measurement<'a>
where &'a Object: UnsafeUnpin,

§

impl<'a> UnwindSafe for Measurement<'a>
where &'a Object: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.