Simbody
Public Member Functions

SimTK::DefaultSystemSubsystem Class Reference

This is a concrete Subsystem that is part of every System. It provides a variety of services for the System, such as maintaining lists of event handlers and reporters, and acting as a source of globally unique event IDs. More...

#include <System.h>

Inheritance diagram for SimTK::DefaultSystemSubsystem:

List of all members.

Public Member Functions

 DefaultSystemSubsystem (System &sys)
void addEventHandler (ScheduledEventHandler *handler)
void addEventHandler (TriggeredEventHandler *handler)
void addEventReporter (ScheduledEventReporter *handler) const
void addEventReporter (TriggeredEventReporter *handler) const
EventId createEventId (SubsystemIndex subsys, const State &state) const
void findSubsystemEventIds (SubsystemIndex subsys, const State &state, const Array_< EventId > &allEvents, Array_< EventId > &eventsForSubsystem) const

Detailed Description

This is a concrete Subsystem that is part of every System. It provides a variety of services for the System, such as maintaining lists of event handlers and reporters, and acting as a source of globally unique event IDs.

To obtain the default subsystem for a System, call getDefaultSubsystem() or updDefaultSubsystem() on it. Also, a System can be implicitly converted to a Subsystem, in which case it actually returns a reference to this Subsystem.


Constructor & Destructor Documentation

SimTK::DefaultSystemSubsystem::DefaultSystemSubsystem ( System sys) [explicit]

Member Function Documentation

void SimTK::DefaultSystemSubsystem::addEventHandler ( ScheduledEventHandler handler)
void SimTK::DefaultSystemSubsystem::addEventHandler ( TriggeredEventHandler handler)
void SimTK::DefaultSystemSubsystem::addEventReporter ( ScheduledEventReporter handler) const
void SimTK::DefaultSystemSubsystem::addEventReporter ( TriggeredEventReporter handler) const
EventId SimTK::DefaultSystemSubsystem::createEventId ( SubsystemIndex  subsys,
const State state 
) const
void SimTK::DefaultSystemSubsystem::findSubsystemEventIds ( SubsystemIndex  subsys,
const State state,
const Array_< EventId > &  allEvents,
Array_< EventId > &  eventsForSubsystem 
) const

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines