|
| AverageAggregateCalculator (NodeId aggregateId, DateTime startTime, DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration) |
| Initializes the aggregate calculator.
|
|
| AggregateCalculator (NodeId aggregateId, DateTime startTime, DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration) |
| Initializes the calculation stream.
|
|
bool | QueueRawValue (DataValue value) |
| Queues a raw value for processing.
|
|
DataValue | GetProcessedValue (bool returnPartial) |
| Returns the next processed value.
|
|
bool | HasEndTimePassed (DateTime currentTime) |
| Returns true if the specified time is later than the end of the current interval.
|
|
bool | QueueRawValue (DataValue value) |
| Pushes the next raw value into the stream.
|
|
DataValue | GetProcessedValue (bool returnPartial) |
| Returns the next processed value.
|
|
bool | HasEndTimePassed (DateTime currentTime) |
| Returns true if the specified time is later than the end of the current interval.
|
|
|
override DataValue | ComputeValue (TimeSlice slice) |
| Computes the value for the timeslice.
|
|
DataValue | ComputeAverage (TimeSlice slice) |
| Calculates the RegSlope, RegConst and RegStdDev aggregates for the timeslice.
|
|
DataValue | ComputeTimeAverage (TimeSlice slice, bool useSimpleBounds, int valueType) |
| Calculates the StdDev, Variance, StdDev2 and Variance2 aggregates for the timeslice.
|
|
| AggregateCalculator (NodeId aggregateId) |
| Creates a default aggregator.
|
|
void | Initialize (NodeId aggregateId, DateTime startTime, DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration) |
| Initializes the calculation stream.
|
|
int | CompareTimestamps (DataValue value1, DataValue value2) |
| Compares timestamps for two DataValues according to the current UseServerTimestamp setting.
|
|
int | CompareTimestamps (DataValue value1, LinkedListNode< DataValue > value2) |
| Compares timestamps for two DataValues according to the current UseServerTimestamp setting.
|
|
int | CompareTimestamps (LinkedListNode< DataValue > value1, LinkedListNode< DataValue > value2) |
| Compares timestamps for two DataValues according to the current UseServerTimestamp setting.
|
|
int | CompareTimestamps (DateTime value1, LinkedListNode< DataValue > value2) |
| Compares timestamps for a timestamp to a DataValue according to the current UseServerTimestamp setting.
|
|
bool | IsGood (DataValue value) |
| Checks if the value is good according to the configuration rules.
|
|
TimeSlice | CreateSlice (TimeSlice previousSlice) |
| Creates a new time slice to process.
|
|
bool | UpdateSlice (TimeSlice slice) |
| Creates a new time slice to process.
|
|
DataValue | Interpolate (TimeSlice slice) |
| Calculate the interpolate aggregate for the timeslice.
|
|
DataValue | GetNoDataValue (TimeSlice slice) |
| Return a value indicating there is no data in the time slice.
|
|
DateTime | GetTimestamp (TimeSlice slice) |
| Returns the timestamp to use for the slice value.
|
|
DataValue | GetNoDataValue (DateTime timestamp) |
| Return a value indicating there is no data in the time slice.
|
|
DataValue | Interpolate (DateTime timestamp, TimeSlice reference) |
| Interpolates a value at the timestamp.
|
|
DataValue | GetSimpleBound (DateTime timestamp, TimeSlice slice) |
| Returns the simple bound for the timestamp.
|
|
List< DataValue > | GetValuesWithSimpleBounds (TimeSlice slice) |
| Returns the values in the list with simple bounds.
|
|
List< DataValue > | GetValues (TimeSlice slice) |
| Returns the values between the start time and the end time for the slice.
|
|
List< DataValue > | GetValuesWithInterpolatedBounds (TimeSlice slice) |
| Returns the values in the list with interpolated bounds.
|
|
List< SubRegion > | GetRegionsInValueSet (List< DataValue > values, bool ignoreBadData, bool useSteppedCalculations) |
| Returns the values in the list with simple bounds.
|
|
StatusCode | GetValueBasedStatusCode (TimeSlice slice, List< DataValue > values, StatusCode statusCode) |
| Calculates the value based status code for the slice
|
|
StatusCode | GetTimeBasedStatusCode (TimeSlice slice, List< DataValue > values, StatusCode defaultCode) |
| Calculates the status code for the slice
|
|
StatusCode | GetTimeBasedStatusCode (List< SubRegion > regions, StatusCode statusCode) |
| Calculates the status code for the slice
|
|
|
static DataValue | SteppedInterpolate (DateTime timestamp, DataValue earlyBound) |
| Calculate the value at the timestamp using slopped interpolation.
|
|
static DataValue | SlopedInterpolate (DateTime timestamp, DataValue earlyBound, DataValue lateBound) |
| Calculate the value at the timestamp using slopped interpolation.
|
|
static double | CastToDouble (DataValue value) |
| Converts the value to a double for use in calculations (throws exceptions if conversion fails).
|
|
static Variant | CastToOriginalType (double value, DataValue original) |
| Converts the value back to its original type (throws exceptions if conversion fails).
|
|
NodeId | AggregateId [get, set] |
| The aggregate function applied by the calculator.
|
|
DateTime | StartTime [get, set] |
| The start time for the request.
|
|
DateTime | EndTime [get, set] |
| The end time for the request.
|
|
double | ProcessingInterval [get, set] |
| The processing interval for the request.
|
|
bool | Stepped [get, set] |
| True if the data series requires stepped interpolation.
|
|
AggregateConfiguration | Configuration [get, set] |
| The configuration to use when processing.
|
|
bool | UseServerTimestamp [get, set] |
| Whether to use the server timestamp for all processing.
|
|
bool | TimeFlowsBackward [get, set] |
| True if data is being processed in reverse order.
|
|
TimeSlice | CurrentSlice [get, set] |
| Whether to use the server timestamp for all processing.
|
|
bool | Complete [get, set] |
| True if all values required for the request have been received and processed
|
|
bool | SetPartialBit [get, set] |
| True if the GetProcessedValue method should set the Partial bit when appropriate.
|
|
bool | UsingExtrapolation [get, set] |
| True if data is extrapolated after the end of data.
|
|
Calculates the value of an aggregate.