5 #ifndef CARMA_SYSTEM_THRESHOLD_FRAME_H
6 #define CARMA_SYSTEM_THRESHOLD_FRAME_H
28 class MonitorPointThreshold;
29 struct ThresholdStruct;
43 const char * fileName,
60 static std::string makeMessage( tagIDType tagID );
76 const char * fileName,
95 static std::string makeMessage(
long maxThresholds,
189 MonitorPointThreshold &
getThreshold( tagIDType tagID )
const;
246 long maxThresholds );
283 void initializeThresholdValues( );
285 struct MpThreshPair {
287 ThresholdStruct * thresholdStruct;
297 ::std::vector< MpThreshPair > mpThreshPairs_;
int findThreshold(tagIDType tagID) const
Searches for index to threshold with tagID.
long getMaxNumThresholds() const
Returns maximum number of allocatable thresholds.
static size_t sizeThresholdFrame(long maxThresholds)
Computes size of threshold frame required to hold.
Exception class for errors.
long getNumThresholds() const
Returns number of allocated thresholds.
int * thresholdIndex
Pointer to index of thresholds - index is arranged in ascending order of tagID's. ...
static ThresholdFrameStruct & setThresholdFrameSize(ThresholdFrameStruct &frame, long maxThresholds)
Initializes size related portions of ThresholdFrameStruct.
SystemThresholdFrame(MonitorSystem &monitorSystem)
Constructor - creates a struct using the MonitorSystem, initializes struct with the maxThresholds...
virtual ~SystemThresholdFrame()
Destructor - deletes frame structure.
Structure keeps track of sample properties of a monitor point for the purposes of calculating various...
Exception generated by SystemThreshdolFrame object when threshold object (specified by tagID) is not ...
long maxNumThresholds
Maximum number of thresholds that can be accomodated.
static ThresholdFrameStruct & fixupFramePointers(ThresholdFrameStruct &frame)
Initializes the pointers within the ThresholdFrameStruct to point to meaningful spaces based on the m...
ThresholdFrameStruct & getThresholdFrame() const
Returns reference to internal ThresholdFrameStruct.
Abstract base class for a monitor point.
Exception class for errors The exception comes with a text string that can be printed or logged...
Class that manages the thresholds for all the monitor points within a monitor system (represented by ...
ThresholdStruct & getThresholdStruct(int index) const
Returns reference to internal ThresholdStruct.
Monitor system base class.
MonitorPointThreshold & getThreshold(tagIDType tagID) const
Returns the MonitorPointThreshold object associated with the monitor point mp such that mp...
type definitions for monitor system
Exception generated by SystemThreshdolFrame object when threshold object (specified by tagID) cannot ...
ThresholdStruct * thresholds
Array of threshold objects - array size is equal to maxNumThresholds.
virtual void calibrateMonitorSystem()
Sets threshold related validity flags for all monitor points in the MonitorSystem.
long numThresholds
Actual number of thresholds that the frame is holding.