#define TIMER_HANDLED

Abstract base class to deal with timer-style handlers

Documentation

Abstract base class to deal with timer-style handlers.

To define a new timer, subclass this function and define handle:

class MyTimer : public TimerHandler { public: MyTimer(MyAgentClass *a) : AgentTimerHandler() { a_ = a; } virtual double expire(Event *e); protected: MyAgentClass *a_; };

Then define expire.

Often MyTimer will be a friend of MyAgentClass, or expire() will only call a function of MyAgentClass.

See tcp-rbp.{cc,h} for a real example.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de