50 #ifndef _FORMATTEREVENT_H_
51 #define _FORMATTEREVENT_H_
55 #include "ncl/connectors/EventUtil.h"
56 using namespace ::br::pucrio::telemidia::ncl::connectors;
58 #include "IFormatterEvent.h"
74 static const short ST_ABORTED = 50;
81 void* executionObject;
82 set<IEventListener*> coreListeners;
83 set<IEventListener*> linksListeners;
84 set<IEventListener*> objectsListeners;
88 pthread_mutex_t mutex;
90 static set<FormatterEvent*> instances;
92 static pthread_mutex_t iMutex;
99 virtual void destroyListeners();
111 bool instanceOf(
string s);
115 void setEventType(
short eventType);
116 virtual short getEventType();
117 void setId(
string id);
123 short getNewState(
short transition);
124 short getTransition(
short newState);
128 virtual bool start();
132 void setCurrentState(
short newState);
135 bool changeState(
short newState,
short transition);
138 short getCurrentState();
139 short getPreviousState();
140 static short getTransistion(
short previousState,
short newState);
142 void* getExecutionObject();
143 void setExecutionObject(
void*
object);
145 long getOccurrences();
146 static string getStateName(
short state);
156 #endif //_FORMATTEREVENT_H_
Definition: IFormatterEvent.h:65
Definition: FormatterEvent.h:72
Definition: IEventListener.h:63