#include <event.hpp>
Inheritance diagram for Event:

Public Types | |
|
typedef boost::shared_ptr< Event > | EventPtr |
| Smart pointer that clients should use. | |
Public Member Functions | |
| virtual | ~Event () |
| A destructor. | |
| virtual void | execute ()=0 |
| The code that gets executed for the event. | |
| SimTime | getFireTime () const |
| Get the time at which the event will fire. | |
| bool | inEventQueue () const |
| True if the event is currently pending in an event queue. | |
| bool | operator< (const Event &e) const |
| One event is less than another event if its fire time is smaller. | |
Protected Member Functions | |
| Event () | |
| A constructor. | |
Friends | |
| class | Simulator |
Individual sublcasses will override the execute function to do their scheduled action.
Definition at line 19 of file event.hpp.
| Event::~Event | ( | ) | [virtual] |
| virtual void Event::execute | ( | ) | [pure virtual] |
The code that gets executed for the event.
Subclasses can override this to define their own actions.
Implemented in AppEpochEvent, LayerRecvEvent, DummyEvent, SlottedMacSlotEvent, SendToLinkLayerEvent, SignalRecvEvent, RfidReaderAppReadEvent, RfidMacCycleEvent, and SignalEndEvent.
| SimTime Event::getFireTime | ( | ) | const [inline] |
| bool Event::inEventQueue | ( | ) | const [inline] |
1.4.7