#include <baciEvent.h>


Public Member Functions | |
| EventStrategy () | |
| EventStrategy (BACIProperty *property, EventDispatcher *eventDispatcher) | |
| virtual | ~EventStrategy () |
| virtual void | check (BACIValue &value, const ACSErr::Completion &c, const ACS::CBDescOut &desc)=0 |
| virtual bool | isSuspended ()=0 |
| virtual int | getId (void)=0 |
| virtual const char * | getName (void)=0 |
| virtual const char * | getObjectState (void)=0 |
| virtual void | setObjectState (const char *state)=0 |
| virtual void | suspend ()=0 |
| virtual void | resume ()=0 |
| virtual void | destroy ()=0 |
Abstract event dispatch strategy This class provides skleleton for all further event implementations
| baci::EventStrategy::EventStrategy | ( | ) | [inline] |
Default constrcutor
| baci::EventStrategy::EventStrategy | ( | BACIProperty * | property, | |
| EventDispatcher * | eventDispatcher | |||
| ) | [inline] |
Constructor
| property | property to be checked for events | |
| eventDispatcher | pointer to EventDispatcher object |
| virtual baci::EventStrategy::~EventStrategy | ( | ) | [inline, virtual] |
Destructor
| virtual void baci::EventStrategy::check | ( | BACIValue & | value, | |
| const ACSErr::Completion & | c, | |||
| const ACS::CBDescOut & | desc | |||
| ) | [pure virtual] |
Event cheking method This virtual method is called periodically to check property state if event should be raised
Implemented in baci::AlarmEventStrategyDisc< T, TPROP, TALARM >, baci::AlarmEventStrategyCont< T, TPROP, TALARM >, baci::AlarmEventStrategyContSeq< T, TPROP, TALARM >, baci::AlarmEventStrategyDiscSeq< T, TPROP, TALARM >, baci::AlarmEventStrategyPattern, baci::AlarmSystemMonitorBase, baci::AlarmSystemMonitorCont< T, TPROP >, baci::AlarmSystemMonitorDisc< T, TPROP >, baci::AlarmSystemMonitorPattern, baci::AlarmSystemMonitorSeqCont< T, TPROP >, baci::AlarmSystemMonitorSeqDisc< TPROP >, baci::AlarmSystemMonitorEnumProp< T, TPROP >, baci::AlarmEventStrategyDisc< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >, baci::AlarmSystemMonitorDisc< ACS::pattern, ROpatternImpl >, and baci::AlarmSystemMonitorEnumProp< T, ROEnumImpl< ACS_ENUM_T(T), SK > >.
| virtual void baci::EventStrategy::destroy | ( | ) | [pure virtual] |
Destroy event subscription
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
| virtual int baci::EventStrategy::getId | ( | void | ) | [pure virtual] |
Get object's "recovery" id; each object type sould have unique id
Implements baci::RecoverableObject.
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
| virtual const char* baci::EventStrategy::getName | ( | void | ) | [pure virtual] |
Returns objects name; each instance should have unique name
Implements baci::RecoverableObject.
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
| virtual const char* baci::EventStrategy::getObjectState | ( | void | ) | [pure virtual] |
Get object's state represented as string
Implements baci::RecoverableObject.
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
| virtual bool baci::EventStrategy::isSuspended | ( | ) | [pure virtual] |
Is suspended
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
| virtual void baci::EventStrategy::resume | ( | ) | [pure virtual] |
Resume suspended event subscription
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
| virtual void baci::EventStrategy::setObjectState | ( | const char * | state | ) | [pure virtual] |
Set object's state stored in given string
| stringified | object's state |
Implements baci::RecoverableObject.
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
| virtual void baci::EventStrategy::suspend | ( | ) | [pure virtual] |
Suspend event subscription
Implemented in baci::AlarmEventStrategy< T, TPROP, TALARM >, baci::AlarmSystemMonitorBase, and baci::AlarmEventStrategy< ACS::pattern, ROpatternImpl, ACS::Alarmpattern >.
1.7.0