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);

QUERY

inline int target() const;
inline OTC_Event const& event() const;

EXECUTION

void execute();

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