libecs::EventBase Class Reference
[The Model.]

EventBase. More...

#include <EventScheduler.hpp>

Inheritance diagram for libecs::EventBase:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 EventBase (TimeParam aTime)
void setTime (TimeParam aTime)
const Time getTime () const
const bool operator< (EventBaseCref rhs) const
const bool operator!= (EventBaseCref rhs) const


Detailed Description

EventBase.

A subclass must define three customization points;

void fire() { (1) do what this event is supposed to do. (2) setTime( next scheduled time of this event ); }

void update( EventCref anEvent ) { Given the last fired Event (anEvent) that this Event depends on,

(1) recalculate scheduled time (if necessary). (2) setTime( new scheduled time ). }

const bool isDependentOn( EventCref anEvent ) { Return true if this Event must be updated when the given Event (anEvent) fired. Otherwise return false; }


The documentation for this class was generated from the following file:
Generated on Fri Aug 31 18:44:15 2007 for E-CELL C++ libraries (libecs and libemc) 3.1.105 by  doxygen 1.5.3