52 template <
class EventTypeConditionNotFulfilled = EvCounterNotFulfilled,
class EventTypeConditionFulfilled = EvCounterFulfilled>
54 StateTemplate< CounterStateTemplate<EventTypeConditionNotFulfilled, EventTypeConditionFulfilled> >
67 DataFieldIdentifierPtr counter = State::getInput<ChannelRef>(
"counterRef")->getDataFieldIdentifier(
"value");
73 this->getContext()->systemObserverPrx->incrementCounter(State::getInput<ChannelRef>(
"counterRef"));
74 cond1 = State::installCondition<EventTypeConditionNotFulfilled>(notFullfilled,
"Counter maximum not reached");
75 cond2 = State::installCondition<EventTypeConditionFulfilled>(!notFullfilled,
"Counter maximum reached");
84 this->setOutput(
"counterValue", *State::getInput<ChannelRef>(
"counterRef")->getDataField(
"value"));
87 ConditionIdentifier cond1, cond2;