Class that manages the thresholds for all the monitor points within a monitor system (represented by a carma::monitor::MonitorSystem object).
More...
#include <carma/monitor/SystemThresholdFrame.h>
Class that manages the thresholds for all the monitor points within a monitor system (represented by a carma::monitor::MonitorSystem object).
- See Also
- MonitorSystem
-
MonitorPoint
Definition at line 142 of file SystemThresholdFrame.h.
carma::monitor::SystemThresholdFrame::SystemThresholdFrame |
( |
MonitorSystem & |
monitorSystem | ) |
|
|
explicit |
Constructor - creates a struct using the MonitorSystem, initializes struct with the maxThresholds, sizes it correctly, so the pointers point to meaningful spaces.
virtual carma::monitor::SystemThresholdFrame::~SystemThresholdFrame |
( |
| ) |
|
|
virtual |
virtual void carma::monitor::SystemThresholdFrame::calibrateMonitorSystem |
( |
| ) |
|
|
virtual |
int carma::monitor::SystemThresholdFrame::findThreshold |
( |
tagIDType |
tagID | ) |
const |
|
protected |
Searches for index to threshold with tagID.
Returns index in threshold array.
- Parameters
-
tagID | Tag ID of threshold to find. |
- Returns
- int index in threshold array, of threshold we want.
Initializes the pointers within the ThresholdFrameStruct to point to meaningful spaces based on the maxNumThresholds member of the structure.
Assumes that frame.maxNumThresholds has been set correctly.
- Parameters
-
- Returns
- ThresholdFrameStruct& reference to initialized structure.
long carma::monitor::SystemThresholdFrame::getMaxNumThresholds |
( |
| ) |
const |
Returns maximum number of allocatable thresholds.
- Returns
- long maximum number of allocatable thresholds - always >= 0.
long carma::monitor::SystemThresholdFrame::getNumThresholds |
( |
| ) |
const |
Returns number of allocated thresholds.
- Returns
- long number of allocated thresholds - always >= 0.
MonitorPointThreshold& carma::monitor::SystemThresholdFrame::getThreshold |
( |
tagIDType |
tagID | ) |
const |
Returns the MonitorPointThreshold object associated with the monitor point mp such that mp.getTagID() == tagID.
Returned reference points to an allocated object. Caller must delete object.
- Parameters
-
tagID | Tag ID associated with the associated monitor point. |
- Returns
- MonitorPointThreshold& associated threshold object.
ThresholdStruct& carma::monitor::SystemThresholdFrame::getThresholdStruct |
( |
int |
index | ) |
const |
|
protected |
Returns reference to internal ThresholdStruct.
Useful when constructing a MonitorPointThreshold object.
- Parameters
-
- Returns
- ThresholdStruct reference to internal threshold structure.
- See Also
- MonitorPointThreshold
-
ThresholdFrameStruct
-
ThresholdStruct
Initializes size related portions of ThresholdFrameStruct.
Sets maximum # of thresholds that can be accomodated in the structure, and sets the pointers to point to the correct locations based on the maximum # of thresholds.
- Parameters
-
frame | ThresholdFrameStruct& to be initialized. |
maxThresholds | maximum # of thresholds the structure can accomodate. |
- Returns
- ThresholdFrameStruct& reference to initialized structure.
static size_t carma::monitor::SystemThresholdFrame::sizeThresholdFrame |
( |
long |
maxThresholds | ) |
|
|
staticprotected |
Computes size of threshold frame required to hold.
maxThresholds
number of thresholds.
- Parameters
-
- Returns
- size_t size of ThresholdFrameStruct required to hold
maxThresholds
thresholds.
The documentation for this class was generated from the following file: