RepastHPC
2.3.1
|
The simulation schedule queue. More...
#include <Schedule.h>
Public Types | |
typedef boost::shared_ptr< Functor > | FunctorPtr |
Typedef of for the functors that get scheduled. | |
Public Member Functions | |
ScheduledEvent * | schedule_event (double at, FunctorPtr functor) |
Schedule the specified functor to execute once at the specified tick. More... | |
ScheduledEvent * | schedule_event (double start, double interval, FunctorPtr func) |
Schedules the specified functor to execute start at start, and at the specified interval thereafter. More... | |
void | execute () |
double | getCurrentTick () const |
Gets the current simulation tick. More... | |
double | getNextTick () const |
Gets the next tick at which the next events will be executed. More... | |
The simulation schedule queue.
This wraps a priority queue to schedule repast ScheduledEvents.
|
inline |
Gets the current simulation tick.
|
inline |
Gets the next tick at which the next events will be executed.
ScheduledEvent * repast::Schedule::schedule_event | ( | double | at, |
FunctorPtr | functor | ||
) |
Schedule the specified functor to execute once at the specified tick.
at | the tick to execute at |
functor | the functor to schedule |
ScheduledEvent * repast::Schedule::schedule_event | ( | double | start, |
double | interval, | ||
FunctorPtr | func | ||
) |
Schedules the specified functor to execute start at start, and at the specified interval thereafter.
start | |
interval | |
func |