#include <OTC/dispatch/eventjob.hh> class OTC_EventJob : public OTC_Job {
public:
~OTC_EventJob();
OTC_EventJob(int theAgentId, OTC_Event* theEvent);
inline int target() const;
inline OTC_Event const& event() const;
void execute();
};
OTC_EventJob
holds an event, and the ID number of the agent to
which it is to be delivered. Instances of the class are created by
the OTC_Event
class and scheduled with the dispatcher for later
execution.
OTC_EventJob(int theAgentId, OTC_Event* theEvent);
theEvent
and
theAgentId
, the ID number of the agent
to which the event is to be delivered.
inline int target() const;
inline OTC_Event const& event() const;
void execute();
destroy()
member function.
OTC_JobQueue
, OTC_Dispatcher
, OTC_EVAgent
, OTC_Event