#include <dsched.h>
Public Methods | |
| tevent (ntime_t itime, taction &iact) | |
| construct an event with the specified time and action. | |
| ntime_t | getTime () const |
| Obtain the time component of the event. | |
| taction & | getAction () const |
| Obtain the action component of the event. | |
| void | activate (tscheduler &scheduler) const |
| When the event time reaches, scheduler calls this member to trigger the event. | |
Class tevent represents a scheduled event, which is a pair of a scheduled time and an action. When simulation time reaches the event time, the scheduler triggers the event; the corresponding action is "activated" to perform the change.
Definition at line 74 of file dsched.h.
1.2.18