Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MeasurementCollection

A collection of Measurements. It offers a wide range of functions to improve its accessibility. You can iterate over the collection like the following:

const measurementCollection = piweb.data.getMeasurementCollection();
for (let measurement of measurementCollection)
{
    ...
}

Hierarchy

  • MeasurementCollection

Index

Constructors

Private constructor

Accessors

length

  • get length(): number
  • Gets the number of measurements in the collection.

    Returns number

Methods

Private __@iterator

  • Returns Iterator<Measurement>

findMeasurementByEntity

  • Returns the measurement that associated to the the specified raw data item or undefined if the collection contains no such measurement.

    Parameters

    • entity: RawDataItem

      The raw data item from which the measurement should be returned.

    Returns Measurement

findMeasurementsByEntity

  • Returns the measurements that are associated to the the specified inspection plan part or undefined if the collection contains no such measurement.

    Parameters

    Returns Iter<Measurement>

findValueByEntity

  • Returns the measurement value that is associated to the specified RawDataItem or undefined if the collection contains no such measurement value.

    Parameters

    • entity: RawDataItem

      The raw data item from which the measurement value should be returned.

    Returns MeasurementValue

findValuesByEntity

  • Returns the measurement values that are associated to the the specified inspection plan characteristic or undefined if the collection contains no such measurement.

    Parameters

    Returns Iter<MeasurementValue>

Private first

  • Returns Measurement | undefined

iter

  • Returns an iter over all measurements.

    Returns Iter<Measurement>

Generated using TypeDoc