41 #ifdef CHECK_MEMORY_LEAKS
43 #endif // CHECK_MEMORY_LEAKS
50 : currentTimeStep(-1), myEvents() {}
69 execTimeStep = currTimeStep;
71 Event newEvent =
Event(operation, execTimeStep);
82 if (currEvent.second == execTime || currEvent.second < execTime +
DELTA_T) {
83 Command* command = currEvent.first;
87 time = command->
execute(execTime);
97 WRITE_WARNING(
"Command returned negative repeat number; will be deleted.");
99 delete currEvent.first;
101 currEvent.second += time;
105 if (currEvent.second < execTime) {
108 delete currEvent.first;