51 template <
class EventTypeConditionNotFulfilled = EvCounterNotFulfilled,
52 class EventTypeConditionFulfilled = EvCounterFulfilled>
55 CounterStateTemplate<EventTypeConditionNotFulfilled, EventTypeConditionFulfilled>>
71 State::getInput<ChannelRef>(
"counterRef")->getDataFieldIdentifier(
"value");
78 this->getContext()->systemObserverPrx->incrementCounter(
79 State::getInput<ChannelRef>(
"counterRef"));
80 cond1 = State::installCondition<EventTypeConditionNotFulfilled>(
81 notFullfilled,
"Counter maximum not reached");
82 cond2 = State::installCondition<EventTypeConditionFulfilled>(!notFullfilled,
83 "Counter maximum reached");
91 this->setOutput(
"counterValue",
92 *State::getInput<ChannelRef>(
"counterRef")->getDataField(
"value"));
96 ConditionIdentifier cond1, cond2;