Base class for state machines, activities, process and data flows.
Definition: behavior.h:29
Base class for all types of events and timeouts.
Definition: event.h:23
interface::XFBehavior * pBehavior_
Pointer to behavioral class (ex. state-machine) processing the event.
Definition: event.h:71
int getId() const
Returns id_ identifying the event in the behaviors context.
Definition: event.h:63
interface::XFBehavior * getBehavior() const
Returns pointer to behavioral class.
Definition: event.h:56
const XFEventType eventType_
Holds the type of the event.
Definition: event.h:68
virtual ~XFEvent()
Class destructor.
Definition: event.h:44
virtual bool deleteAfterConsume() const
Tells the dispatcher if the event must be deleted or not.
Definition: event.h:65
XFEventType
Definition: event.h:29
@ Timeout
Defines a timeout event.
Definition: event.h:34
@ DefaultTransition
Event generated by the state machine to define a default transition.
Definition: event.h:32
@ Event
Custom event.
Definition: event.h:33
@ Initial
Initial pseudostate.
Definition: event.h:31
@ Unknown
Unknown state (not initialized).
Definition: event.h:30
void setBehavior(interface::XFBehavior *pBehavior)
Sets pointer to behavioral class (see pBehavior_). Sets the behavior in which the event should be exe...
Definition: event.h:61
XFEventType getEventType() const
Returns the type of the event.
Definition: event.h:50
int id_
Event id to identify event in state-machine.
Definition: event.h:69
XFEvent(XFEventType eventType, int id=0)
Standard constructor.
Definition: event.h:43
Interface to receive and process events.
Definition: behavior.h:24