\page OdsRules
\section rules_com_highqsoft_moma_rules_ods_CalculateMeqStatAttrStore CalculateMeqStatAttrStore
\addindex CalculateMeqStatAttrStore
\addindex AoMeasurementQuantity.maximum
\addindex AoMeasurementQuantity.minimum
\addindex AoMeasurementQuantity.average
\addindex AoMeasurementQuantity.standard_deviation
This rule is calculate the statistical attributes of the AoMeasurementQuantity
of the measurements which Id is given in the input dataset and
store the data in the storage referenced by OdsCacheRef.
The output dataset is the input dataset unchanged.
The statistical attributes are maximum, minimum, average, and standard_deviation.
The rule checks the application model and creates for the attributes available in the model.
The rule expects a dataset with the Id of the AoMeasurement, the Id will be mapped with the
ODSCache for an target element Id (configurable).
The calculated values will be directly updated in the data storage.
All elements and attributes are used from the ods cache based on the base element and base attributes.
The calculation of the statistical values is done during the setValue() method.
Type: SequencerRule
The rule extends \ref rules_com_highqsoft_moma_rules_ods_CalculateMeqStatAttr
\par Properties
\li \b OdsCacheRef (required, no default, DT_STRING)
The name of the ODSCache reference in the context.
\li \b UseTargetCache (optional, TRUE, DT_BOOLEAN)
The use the target cache for the Id of the Measurement. When this switch is set to
FALSE, the value oft he Id attribute in the input dataset will be used as value of the Id
in the target.
\li \b HandleTransaction (optional, FALSE, DT_BOOLEAN)
In case this flag is set to TRUE, a transaction will be start and committed
for storing the values in the datastorage of each measurement.
\par Example
The example below is called from the
sequence in a modelmapper control file.
\code
\endcode