#include <simlpy/Event.h>


Public Member Functions | |
| Event (Entity *source, const Time &t) | |
| Constructor. | |
| virtual | ~Event () |
| Virtual destructor. | |
| virtual bool | handle ()=0 |
| This virtual method allows a derived class to call the handler for its appropriate Entity, thereby enabling the Entity to distinguish the event by overloading on type. | |
| Entity * | source () |
| The Entity that created this event. | |
| const Time & | time () const |
| |
| bool | operator< (const Event &other) const |
| Compare two Events by schedule times. | |
Protected Attributes | |
| Entity * | m_source |
| The Entity that emitted this Event. | |
| Time | m_time |
| The time at which this Event should be processed. | |
All events inherit this base class, which allows them to be treated uniformly for queueing and dispatching.
Definition at line 48 of file Event.h.
| bool Event::operator< | ( | const Event & | other | ) | const [inline] |
1.5.4