Simbody
3.3
|
ScheduledEventReporter is a subclass of EventReporter for events that occur at a particular time that is known in advance. More...
#include <EventReporter.h>
Public Member Functions | |
virtual | ~ScheduledEventReporter () |
virtual Real | getNextEventTime (const State &state, bool includeCurrentTime) const =0 |
Get the next time at which an event will occur. More... | |
Public Member Functions inherited from SimTK::EventReporter | |
virtual | ~EventReporter () |
virtual void | handleEvent (const State &state) const =0 |
This method is invoked to handle the event. More... | |
ScheduledEventReporter is a subclass of EventReporter for events that occur at a particular time that is known in advance.
This includes events that occur multiple times. The only requirement is that, at any time, it must be able to report the next time at which an event will occur.
|
virtual |
|
pure 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. |
Implemented in SimTK::PeriodicEventReporter.