Public Member Functions

baci::EventStrategy Class Reference

#include <baciEvent.h>

Inheritance diagram for baci::EventStrategy:
Inheritance graph
[legend]
Collaboration diagram for baci::EventStrategy:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Abstract event dispatch strategy This class provides skleleton for all further event implementations

Author:
Matej Sekoranja, Jozef Stefan Institute, Slovenia
Warning:
We have virtual inheritance from PortableServer::RefCountServantBase because of a bug in gcc 2.95 (see SPR. ALMASW2001075)

Constructor & Destructor Documentation

baci::EventStrategy::EventStrategy (  )  [inline]

Default constrcutor

baci::EventStrategy::EventStrategy ( BACIProperty property,
EventDispatcher eventDispatcher 
) [inline]

Constructor

Parameters:
property property to be checked for events
eventDispatcher pointer to EventDispatcher object
virtual baci::EventStrategy::~EventStrategy (  )  [inline, virtual]

Destructor


Member Function Documentation

virtual void baci::EventStrategy::check ( BACIValue value,
const ACSErr::Completion c,
const ACS::CBDescOut desc 
) [pure virtual]
virtual void baci::EventStrategy::destroy (  )  [pure virtual]
virtual int baci::EventStrategy::getId ( void   )  [pure virtual]

Get object's "recovery" id; each object type sould have unique id

Returns:
object's 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

Returns:
object's 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

Returns:
pointer to 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 bool baci::EventStrategy::isSuspended (  )  [pure virtual]
virtual void baci::EventStrategy::resume (  )  [pure virtual]
virtual void baci::EventStrategy::setObjectState ( const char *  state  )  [pure virtual]

Set object's state stored in given string

Parameters:
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]

The documentation for this class was generated from the following file: