Skip to main content

MeasurementValueQuality

Struct MeasurementValueQuality 

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

Measurement quality flags. Bits 0-10 are defined for substation automation in draft IEC 61850 part 7-3. Bits 11-15 are reserved for future expansion by that document. Bits 16-31 are reserved for EMS applications.

Tuple Fields§

§0: &'a Object

Implementations§

Source§

impl<'a> MeasurementValueQuality<'a>

Source

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

The object’s master resource identifier.

Source

pub fn bad_reference(&self) -> Option<bool>

Measurement value may be incorrect due to a reference being out of calibration.

Source

pub fn estimator_replaced(&self) -> Option<bool>

Value has been replaced by State Estimator. estimatorReplaced is not an IEC61850 quality bit but has been put in this class for convenience.

Source

pub fn failure(&self) -> Option<bool>

This identifier indicates that a supervision function has detected an internal or external failure, e.g. communication failure.

Source

pub fn old_data(&self) -> Option<bool>

Measurement value is old and possibly invalid, as it has not been successfully updated during a specified time interval.

Source

pub fn operator_blocked(&self) -> Option<bool>

Measurement value is blocked and hence unavailable for transmission.

Source

pub fn oscillatory(&self) -> Option<bool>

To prevent some overload of the communication it is sensible to detect and suppress oscillating (fast changing) binary inputs. If a signal changes in a defined time (tosc) twice in the same direction (from 0 to 1 or from 1 to 0) then oscillation is detected and the detail quality identifier “oscillatory” is set. If it is detected a configured numbers of transient changes could be passed by. In this time the validity status “questionable” is set. If after this defined numbers of changes the signal is still in the oscillating state the value shall be set either to the opposite state of the previous stable value or to a defined default value. In this case the validity status “questionable” is reset and “invalid” is set as long as the signal is oscillating. If it is configured such that no transient changes should be passed by then the validity status “invalid” is set immediately in addition to the detail quality identifier “oscillatory” (used for status information only).

Source

pub fn out_of_range(&self) -> Option<bool>

Measurement value is beyond a predefined range of value.

Source

pub fn over_flow(&self) -> Option<bool>

Measurement value is beyond the capability of being represented properly. For example, a counter value overflows from maximum count back to a value of zero.

Source

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

Source gives information related to the origin of a value. The value may be acquired from the process, defaulted or substituted.

Source

pub fn suspect(&self) -> Option<bool>

A correlation function has detected that the value is not consitent with other values. Typically set by a network State Estimator.

Source

pub fn test(&self) -> Option<bool>

Measurement value is transmitted for test purposes.

Source

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

Validity of the measurement value.

Source

pub fn measurement_value(&self) -> Option<TypedRef<MeasurementValue<'static>>>

A MeasurementValue has a MeasurementValueQuality associated with it.

Source

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

Resolve MeasurementValue through dataset.

Trait Implementations§

Source§

impl<'a> Clone for MeasurementValueQuality<'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 MeasurementValueQuality<'a>

Source§

impl<'a> Debug for MeasurementValueQuality<'a>

Source§

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

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

impl<'a> TypedView<'a> for MeasurementValueQuality<'a>

Source§

const CLASS: ClassId = classes::MeasurementValueQuality

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 MeasurementValueQuality<'a>

§

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

§

impl<'a> Move for MeasurementValueQuality<'a>

§

impl<'a> RefUnwindSafe for MeasurementValueQuality<'a>

§

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

§

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

§

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

§

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

§

impl<'a> UnwindSafe for MeasurementValueQuality<'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.