#include <EventReporter.h>
This allows you to very easily create event reporters with this behavior.
Public Member Functions | |
~PeriodicEventReporter () | |
Real | getNextEventTime (const State &state, bool includeCurrentTime) const |
Get the next time at which an event will occur. | |
PeriodicEventReporter (Real eventInterval) | |
Create a PeriodicEventReporter. | |
Real | getEventInterval () const |
Get the time interval at which events occur. | |
void | setEventInterval (Real eventInterval) |
Set the time interval at which events occur. |
PeriodicEventReporter | ( | Real | eventInterval | ) |
Create a PeriodicEventReporter.
eventInterval | the time interval at which events should occur. |
Real getNextEventTime | ( | const State & | state, | |
bool | includeCurrentTime | |||
) | const [virtual] |
Get the next time at which an event will occur.
state | the current state of the system | |
includeCurrentTime | if true, return the next event whose time is >= the current time. If false, only return events after (not at) the current time. |
Implements ScheduledEventReporter.
Real getEventInterval | ( | ) | const |
Get the time interval at which events occur.
void setEventInterval | ( | Real | eventInterval | ) |
Set the time interval at which events occur.