ScheduledEventHandler Class Reference

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

#include <EventHandler.h>

Inheritance diagram for ScheduledEventHandler:
EventHandler PeriodicEventHandler MassCenterMotionRemover VelocityRescalingThermostat

List of all members.

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.

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 ~ScheduledEventHandler (  )  [virtual]

Member Function Documentation

virtual Real getNextEventTime ( const State state,
bool  includeCurrentTime 
) const [pure virtual]

Get the next time at which an event will occur.

Parameters:
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 PeriodicEventHandler.


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

Generated on Wed Dec 30 11:05:22 2009 for SimTKcore by  doxygen 1.6.1