NAME
OTC_EventJob -
Holds an event, and the ID number of the agent to which the
event is to be delivered.
SYNOPSIS
#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();
};
CLASS TYPE
Concrete
DESCRIPTION
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.
INITIALISATION
OTC_EventJob(int theAgentId, OTC_Event* theEvent);
Creates an object to hold theEvent and
theAgentId, the ID number of the agent
to which the event is to be delivered.
QUERY
inline int target() const;
Returns the ID number of the agent to
which the event it to be delivered.
inline OTC_Event const& event() const;
EXECUTION
void execute();
Delivers the event to the agent. If the
event cannot be delivered, a warning
message is displayed using the logger and
the event destroyed by calling its
destroy() member function.
SEE ALSO
OTC_JobQueue, OTC_Dispatcher, OTC_EVAgent, OTC_Event
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED