Calculates the value of the aggregates DurationGood, DurationBad, PercentGood, PercentBad, WorstQuality and WorstQuality2.
More...
#include <aggregatecalculatorstatus.h>
Inherits AggregateCalculator.
Calculates the value of the aggregates DurationGood, DurationBad, PercentGood, PercentBad, WorstQuality and WorstQuality2.
Initializes the aggregate calculator.
- Parameters
-
aggregateId | The aggregate function to apply. |
startTime | The start time. |
endTime | The end time. |
processingInterval | The processing interval. |
stepped | Whether to use stepped interpolation. |
configuration | The aggregate configuration. |
UaDataValue AggregateCalculatorStatus::ComputeDurationGoodBad |
( |
TimeSlice & |
slice, |
|
|
bool |
isBad, |
|
|
bool |
usePercent |
|
) |
| |
|
protected |
Calculates the DurationGood and DurationBad aggregates for the timeslice.
UaDataValue AggregateCalculatorStatus::ComputeWorstQuality |
( |
TimeSlice & |
slice, |
|
|
bool |
includeBounds |
|
) |
| |
|
protected |
Calculates the worst status of the raw values for the timeslice.
Used by the Aggregators factory to create a new instance of the aggregate calculator.
- Parameters
-
aggregateId | The aggregate function to apply. |
startTime | The start time. |
endTime | The end time. |
processingInterval | The processing interval. |
stepped | Whether to use stepped interpolation. |
configuration | The aggregate configuration. |
bool AggregateCalculatorStatus::UsesInterpolatedBounds |
( |
| ) |
|
|
virtual |
Indicates whether this aggregate uses Interpolated Bounding Values.
- Returns
- True if this aggregate uses Interpolated bounding values and false if it uses Simple Bounding Values.
Reimplemented from AggregateCalculator.
The documentation for this class was generated from the following files:
- D:/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/aggregatecalculatorstatus.h
- D:/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/aggregatecalculatorstatus.cpp