|
|
Line 33: |
Line 33: |
| == void deleteEvent(Event* opEv) [static] == | | == void deleteEvent(Event* opEv) [static] == |
| === Description === | | === Description === |
| + | This function delete the event |
| + | |
| == void setDelay(timeSize oDelay) == | | == void setDelay(timeSize oDelay) == |
| === Description === | | === Description === |
Revision as of 19:28, 24 August 2017
Contents
- 1 Event
- 2 Member Attributes
- 3 Member Functions Documentation
- 3.1 Event* createEvent(eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, timeSize oDelay, PRIORITY_SIZE oPriority) [static]
- 3.2 Event* createStaticEvent(ID_SIZE oID, eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, timeSize oDelay, PRIORITY_SIZE oPriority) [static]
- 3.3 void deleteEvent(Event* opEv) [static]
- 3.4 void setDelay(timeSize oDelay)
- 3.5 void setEventType(eEventType oNewType)
- 3.6 void setPriority(PRIORITY_SIZE oNewPriority)
- 3.7 void setDstStateMachine(IStateMachine* opDstStateMachine)
- 3.8 void setDstThread(Thread* opDstThread)
- 3.9 eEventType getEventType()
- 3.10 ID_SIZE getID()
- 3.11 timeSize getDelay()
- 3.12 PRIORITY_SIZE getPriority()
- 3.13 IStateMachine* getDstStateMachine()
- 3.14 Thread* getDstThread()
- 3.15 ID_SIZE getFreeID() [static]
- 3.16 bool isActive()
- 3.17 bool isStatic()
- 3.18 void cancel()
- 3.19 Event(eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, bool oIsStatic, timeSize oDelay, PRIORITY_SIZE oPriority)
- 3.20 Event(ID_SIZE oID, eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, bool oIsStatic, timeSize oDelay, PRIORITY_SIZE oPriority)
- 3.21 ~Event() [virtual]
|
|
Event
This class describe events that are used by state machines to execute their next state
Member Attributes
eEventType _type : the basical type of the event
ID_SIZE _id : the event's ID
timeSize _delay : the time in ms befor the event must be sent to the state machine
Thread* _pDstThread : the thread where is living the destinated state machine
IStateMachine* _pDstStateMachine : the destinated state machine
PRIORITY_SIZE _priority : the priority of the event
static ID_SIZE _nextFreeID : the next free ID
bool _isActive : indicate if the event is active
const bool _isStatic : indicate that the event has been created statically and must not be delete
Member Functions Documentation
Event* createEvent(eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, timeSize oDelay, PRIORITY_SIZE oPriority) [static]
Description
This function create an event and return a pointer to it. The ID of the Event is automatically set.
Event* createStaticEvent(ID_SIZE oID, eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, timeSize oDelay, PRIORITY_SIZE oPriority) [static]
Description
This function create a static event and return a pointer to it. You need to set manually the ID of a static event.
void deleteEvent(Event* opEv) [static]
Description
This function delete the event
void setDelay(timeSize oDelay)
Description
void setEventType(eEventType oNewType)
Description
void setPriority(PRIORITY_SIZE oNewPriority)
Description
void setDstStateMachine(IStateMachine* opDstStateMachine)
Description
void setDstThread(Thread* opDstThread)
Description
eEventType getEventType()
Description
ID_SIZE getID()
Description
timeSize getDelay()
Description
PRIORITY_SIZE getPriority()
Description
IStateMachine* getDstStateMachine()
Description
Thread* getDstThread()
Description
ID_SIZE getFreeID() [static]
Description
bool isActive()
Description
bool isStatic()
Description
void cancel()
Description
Event(eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, bool oIsStatic, timeSize oDelay, PRIORITY_SIZE oPriority)
Description
Event(ID_SIZE oID, eEventType oType, IStateMachine* opDstStateMachine, Thread* opDstThread, bool oIsStatic, timeSize oDelay, PRIORITY_SIZE oPriority)
Description
~Event() [virtual]
Description