Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SimTK::ScheduledEventHandler Class Referenceabstract

ScheduledEventHandler is a subclass of EventHandler for events that occur at a particular time that is known in advance. More...

+ Inheritance diagram for SimTK::ScheduledEventHandler:

Public Member Functions

virtual ~ScheduledEventHandler ()
 
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::EventHandler
virtual ~EventHandler ()
 
virtual void handleEvent (State &state, Real accuracy, bool &shouldTerminate) const =0
 This method is invoked to handle the event. More...
 

Detailed Description

ScheduledEventHandler is a subclass of EventHandler 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.

Constructor & Destructor Documentation

virtual SimTK::ScheduledEventHandler::~ScheduledEventHandler ( )
virtual

Member Function Documentation

virtual Real SimTK::ScheduledEventHandler::getNextEventTime ( const State state,
bool  includeCurrentTime 
) const
pure virtual

Get the next time at which an event will occur.

Parameters
statethe current state of the system
includeCurrentTimeif 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::PeriodicEventHandler.


The documentation for this class was generated from the following file: