#include <DTHVAbstractCheck.h>
Classes | |
struct | flag |
Public Types | |
typedef std::pair< long long int, float > | timedMeasurement |
check HV status | |
Public Member Functions | |
virtual DTHVAbstractCheck::flag | checkCurrentStatus (int rawId, int type, float valueA, float valueC, float valueS, const std::map< int, timedMeasurement > &snapshotValues, const std::map< int, int > &aliasMap, const std::map< int, int > &layerMap)=0 |
DTHVAbstractCheck () | |
virtual void | setStatus (int rawId, int flagA, int flagC, int flagS, const std::map< int, timedMeasurement > &snapshotValues, const std::map< int, int > &aliasMap, const std::map< int, int > &layerMap) |
virtual void | setValue (int rawId, int type, float valueA, float valueC, float valueS, const std::map< int, timedMeasurement > &snapshotValues, const std::map< int, int > &aliasMap, const std::map< int, int > &layerMap) |
virtual | ~DTHVAbstractCheck () |
Static Public Member Functions | |
static bool | chkFlag (const DTHVAbstractCheck::flag &f) |
static bool | compare (const DTHVAbstractCheck::flag &fl, const DTHVAbstractCheck::flag &fr) |
static DTHVAbstractCheck * | getInstance () |
check HV status | |
Static Protected Attributes | |
static DTHVAbstractCheck * | instance = 0 |
typedef std::pair<long long int,float> DTHVAbstractCheck::timedMeasurement |
check HV status
Definition at line 51 of file DTHVAbstractCheck.h.
DTHVAbstractCheck::DTHVAbstractCheck | ( | ) |
DTHVAbstractCheck::~DTHVAbstractCheck | ( | ) | [virtual] |
virtual DTHVAbstractCheck::flag DTHVAbstractCheck::checkCurrentStatus | ( | int | rawId, |
int | type, | ||
float | valueA, | ||
float | valueC, | ||
float | valueS, | ||
const std::map< int, timedMeasurement > & | snapshotValues, | ||
const std::map< int, int > & | aliasMap, | ||
const std::map< int, int > & | layerMap | ||
) | [pure virtual] |
Implemented in cond::service::DTHVCheckByAbsoluteValues, and cond::service::DTHVCheckWithHysteresis.
Referenced by DTHVStatusHandler::checkStatusChange(), and DTHVStatusHandler::offlineList().
bool DTHVAbstractCheck::chkFlag | ( | const DTHVAbstractCheck::flag & | f | ) | [static] |
Definition at line 50 of file DTHVAbstractCheck.cc.
References DTHVAbstractCheck::flag::a, DTHVAbstractCheck::flag::c, and DTHVAbstractCheck::flag::s.
bool DTHVAbstractCheck::compare | ( | const DTHVAbstractCheck::flag & | fl, |
const DTHVAbstractCheck::flag & | fr | ||
) | [static] |
Definition at line 55 of file DTHVAbstractCheck.cc.
References DTHVAbstractCheck::flag::a, DTHVAbstractCheck::flag::c, and DTHVAbstractCheck::flag::s.
Referenced by DTHVStatusHandler::checkStatusChange().
DTHVAbstractCheck * DTHVAbstractCheck::getInstance | ( | ) | [static] |
check HV status
Operations
Definition at line 45 of file DTHVAbstractCheck.cc.
References instance.
Referenced by DTHVStatusHandler::DTHVStatusHandler().
{ return instance; }
void DTHVAbstractCheck::setStatus | ( | int | rawId, |
int | flagA, | ||
int | flagC, | ||
int | flagS, | ||
const std::map< int, timedMeasurement > & | snapshotValues, | ||
const std::map< int, int > & | aliasMap, | ||
const std::map< int, int > & | layerMap | ||
) | [virtual] |
Reimplemented in cond::service::DTHVCheckWithHysteresis.
Definition at line 73 of file DTHVAbstractCheck.cc.
Referenced by DTHVStatusHandler::getNewObjects().
{
return;
}
void DTHVAbstractCheck::setValue | ( | int | rawId, |
int | type, | ||
float | valueA, | ||
float | valueC, | ||
float | valueS, | ||
const std::map< int, timedMeasurement > & | snapshotValues, | ||
const std::map< int, int > & | aliasMap, | ||
const std::map< int, int > & | layerMap | ||
) | [virtual] |
Definition at line 63 of file DTHVAbstractCheck.cc.
{
return;
}
DTHVAbstractCheck * DTHVAbstractCheck::instance = 0 [static, protected] |
Definition at line 77 of file DTHVAbstractCheck.h.
Referenced by cond::service::DTHVCheckByAbsoluteValues::DTHVCheckByAbsoluteValues(), cond::service::DTHVCheckWithHysteresis::DTHVCheckWithHysteresis(), and getInstance().