Go to the documentation of this file. 1 #ifndef SimTK_SimTKCOMMON_EVENT_REPORTER_H_
2 #define SimTK_SimTKCOMMON_EVENT_REPORTER_H_
62 virtual void handleEvent(
const State& state)
const = 0;
84 virtual Real getNextEventTime(
const State& state,
bool includeCurrentTime)
const = 0;
98 class TriggeredEventReporterImpl;
115 virtual Real getValue(
const State&)
const = 0;
127 Stage getRequiredStage()
const;
129 TriggeredEventReporterImpl* impl;
140 class PeriodicEventReporterImpl;
142 Real getNextEventTime(
const State& state,
bool includeCurrentTime)
const override;
155 Real getEventInterval()
const;
161 void setEventInterval(
Real eventInterval);
163 PeriodicEventReporterImpl* impl;
168 #endif // SimTK_SimTKCOMMON_EVENT_REPORTER_H_
This object is intended to contain all state information for a SimTK::System, except topological info...
Definition: State.h:280
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
This class is used to communicate between the System and an Integrator regarding the properties of a ...
Definition: Event.h:209
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:224
PeriodicEventReporter is a subclass of ScheduledEventReporter which generates a series of uniformly s...
Definition: EventReporter.h:138
ScheduledEventReporter is a subclass of EventReporter for events that occur at a particular time that...
Definition: EventReporter.h:72
TriggeredEventReporter is a subclass of EventReporter for events that occur when some condition is sa...
Definition: EventReporter.h:96
This class is basically a glorified enumerated type, type-safe and range checked but permitting conve...
Definition: Stage.h:66
An EventReporter is an object that defines an event that can occur within a system.
Definition: EventReporter.h:53
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:606