PeriodicEventReporter Class Reference

#include <EventReporter.h>

Inheritance diagram for PeriodicEventReporter:

ScheduledEventReporter EventReporter List of all members.

Detailed Description

PeriodicEventReporter is a subclass of ScheduledEventReporter which generates a series of uniformly spaced events at regular intervals.

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.


Constructor & Destructor Documentation

~PeriodicEventReporter (  ) 

PeriodicEventReporter ( Real  eventInterval  ) 

Create a PeriodicEventReporter.

Parameters:
eventInterval the time interval at which events should occur.


Member Function Documentation

Real getEventInterval (  )  const

Get the time interval at which events occur.

Real getNextEventTime ( const State state,
bool  includeCurrentTime 
) const [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.

Implements ScheduledEventReporter.

void setEventInterval ( Real  eventInterval  ) 

Set the time interval at which events occur.


The documentation for this class was generated from the following file:
Generated on Thu Feb 28 01:34:36 2008 for SimTKcommon by  doxygen 1.4.7