C++ Based OPC UA Client/Server SDK  1.5.3.346
AggregateCalculatorStartEnd Class Reference

Calculates the value of the aggregates Start, End, Delta, StartBound, EndBound and DeltaBounds. More...

#include <aggregatecalculatorstartend.h>

Inherits AggregateCalculator.

Public Member Functions

 AggregateCalculatorStartEnd (UaNodeId aggregateId, UaDateTime startTime, UaDateTime endTime, double processingInterval, bool stepped, OpcUa_AggregateConfiguration &configuration)
 Initializes the aggregate calculator. More...
 
bool UsesInterpolatedBounds ()
 Indicates whether this aggregate uses Interpolated Bounding Values. More...
 

Static Public Member Functions

static
AggregateCalculatorInterface
CreateCalculator (UaNodeId aggregateId, UaDateTime startTime, UaDateTime endTime, double processingInterval, bool stepped, OpcUa_AggregateConfiguration &configuration)
 Used by the Aggregators factory to create a new instance of the aggregate calculator. More...
 

Protected Member Functions

UaDataValue ComputeValue (TimeSlice &slice)
 Computes the value for the timeslice. More...
 
UaDataValue ComputeStartEnd (TimeSlice &slice, bool returnEnd)
 Calculates the Start and End aggregates for the timeslice. More...
 
UaDataValue ComputeDelta (TimeSlice &slice)
 Calculates the Delta aggregate for the timeslice. More...
 
UaDataValue ComputeStartEndBound (TimeSlice &slice, bool returnEnd)
 Calculates the StartBound and EndBound aggregates for the timeslice. More...
 
UaDataValue ComputeDeltaBounds (TimeSlice &slice)
 Calculates the DeltaBounds aggregate for the timeslice. More...
 

Detailed Description

Calculates the value of the aggregates Start, End, Delta, StartBound, EndBound and DeltaBounds.

Constructor & Destructor Documentation

AggregateCalculatorStartEnd::AggregateCalculatorStartEnd ( UaNodeId  aggregateId,
UaDateTime  startTime,
UaDateTime  endTime,
double  processingInterval,
bool  stepped,
OpcUa_AggregateConfiguration configuration 
)

Initializes the aggregate calculator.

Parameters
aggregateIdThe aggregate function to apply.
startTimeThe start time.
endTimeThe end time.
processingIntervalThe processing interval.
steppedWhether to use stepped interpolation.
configurationThe aggregate configuration.

Member Function Documentation

UaDataValue AggregateCalculatorStartEnd::ComputeDelta ( TimeSlice slice)
protected

Calculates the Delta aggregate for the timeslice.

UaDataValue AggregateCalculatorStartEnd::ComputeDeltaBounds ( TimeSlice slice)
protected

Calculates the DeltaBounds aggregate for the timeslice.

UaDataValue AggregateCalculatorStartEnd::ComputeStartEnd ( TimeSlice slice,
bool  returnEnd 
)
protected

Calculates the Start and End aggregates for the timeslice.

UaDataValue AggregateCalculatorStartEnd::ComputeStartEndBound ( TimeSlice slice,
bool  returnEnd 
)
protected

Calculates the StartBound and EndBound aggregates for the timeslice.

UaDataValue AggregateCalculatorStartEnd::ComputeValue ( TimeSlice slice)
protectedvirtual

Computes the value for the timeslice.

Reimplemented from AggregateCalculator.

AggregateCalculatorInterface * AggregateCalculatorStartEnd::CreateCalculator ( UaNodeId  aggregateId,
UaDateTime  startTime,
UaDateTime  endTime,
double  processingInterval,
bool  stepped,
OpcUa_AggregateConfiguration configuration 
)
static

Used by the Aggregators factory to create a new instance of the aggregate calculator.

Parameters
aggregateIdThe aggregate function to apply.
startTimeThe start time.
endTimeThe end time.
processingIntervalThe processing interval.
steppedWhether to use stepped interpolation.
configurationThe aggregate configuration.
bool AggregateCalculatorStartEnd::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: