1 #ifndef GCP_UTIL_MONITORCONDITION_H
2 #define GCP_UTIL_MONITORCONDITION_H
11 #include "gcp/util/common/DataType.h"
12 #include "gcp/util/common/DataTypeTruthFn.h"
27 unsigned stablePacketCount = defaultStablePacketCount_,
28 unsigned giveUpPacketCount = defaultGiveUpPacketCount_);
52 unsigned packetCount = defaultPacketCount_,
53 unsigned stablePacketCount = defaultStablePacketCount_,
54 unsigned giveUpPacketCount = defaultGiveUpPacketCount_);
63 unsigned packetCount = defaultPacketCount_,
64 unsigned stablePacketCount = defaultStablePacketCount_,
65 unsigned giveUpPacketCount = defaultGiveUpPacketCount_);
70 void setTo(
unsigned packetCount = defaultPacketCount_,
71 unsigned stablePacketCount = defaultStablePacketCount_,
72 unsigned giveUpPacketCount = defaultGiveUpPacketCount_);
77 unsigned packetCount = defaultPacketCount_,
78 unsigned stablePacketCount = defaultStablePacketCount_,
79 unsigned giveUpPacketCount = defaultGiveUpPacketCount_);
85 unsigned packetCount = defaultPacketCount_,
86 unsigned stablePacketCount = defaultStablePacketCount_,
87 unsigned giveUpPacketCount = defaultGiveUpPacketCount_);
94 std::string
format(std::string& reg);
109 unsigned giveUpPacketCount);
113 bool isDelta() {
return isDeltaCondition_;}
114 unsigned nFrame() {
return stablePacketCount_;}
115 double min() {
return op1_.getValAsDouble();}
116 double max() {
return op2_.getValAsDouble();}
124 bool isDeltaCondition_;
128 unsigned packetCount_;
129 unsigned stablePacketCount_;
130 unsigned giveUpPacketCount_;
132 static const unsigned defaultPacketCount_ = 1;
133 static const unsigned defaultStablePacketCount_ = 0;
134 static const unsigned defaultGiveUpPacketCount_ = 20;
143 #endif // End #ifndef GCP_UTIL_MONITORCONDITION_H
virtual ~MonitorCondition()
Definition: MonitorCondition.cc:138
void checkPacketCount(unsigned packetCount, unsigned stablePacketCount, unsigned giveUpPacketCount)
Definition: MonitorCondition.cc:191
MonitorCondition(unsigned packetCount=defaultPacketCount_, unsigned stablePacketCount=defaultStablePacketCount_, unsigned giveUpPacketCount=defaultGiveUpPacketCount_)
Definition: MonitorCondition.cc:12
Definition: DataTypeTruthFn.h:24
Definition: MonitorCondition.h:20
bool isSatisfiedBy(gcp::util::DataType &dataType)
Definition: MonitorCondition.cc:143
Definition: DataType.h:27
std::string format(std::string ®)
Definition: MonitorCondition.cc:199