EventReporter Class Reference

An EventReporter is an object that defines an event that can occur within a system. More...

#include <EventReporter.h>

Inheritance diagram for EventReporter:
ScheduledEventReporter TriggeredEventReporter PeriodicEventReporter PeriodicPdbWriter PeriodicVmdReporter TextDataEventReporter VTKEventReporter

List of all members.

Public Member Functions

virtual ~EventReporter ()
virtual void handleEvent (const State &state) const =0
 This method is invoked to handle the event.

Detailed Description

An EventReporter is an object that defines an event that can occur within a system.

It is an abstract class. Subclasses define how to determine when the event occurs, and what happens when it does. You will not generally subclass EventReporter directly. Instead, subclass ScheduledEventReporter (for events that occur at a particular time that is know in advance) or TriggeredEventReporter (for events that occur when some condition is satisfied within the system). ScheduledEventReporter also has another subclass, PeriodicEventReporter, for the common situation of events that occur at regular intervals.

EventReporter is very similar to EventHandler, but differs in that it is not permitted to modify the state of the system. It can observe the system's behavior, but not alter it. This means that adding an EventReporter to a System is not considered a change to the physical system it represents.

Once you have created an EventReporter, you can add it to a System by calling getDefaultSubsystem().addEventReporter() on the System.


Constructor & Destructor Documentation

virtual ~EventReporter (  )  [virtual]

Member Function Documentation

virtual void handleEvent ( const State state  )  const [pure virtual]

This method is invoked to handle the event.

It is given a State which describes the system at the time when the event occurs.

Implemented in PeriodicPdbWriter, PeriodicVmdReporter, TextDataEventReporter, and VTKEventReporter.


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