SGSubsystemGroup Class Reference

A group of FlightGear subsystems. More...

#include <subsystem_mgr.hxx>

Inheritance diagram for SGSubsystemGroup:
SGSubsystem SGReferenced

List of all members.

Public Member Functions

virtual void init ()
 Initialize the subsystem.
virtual void postinit ()
 Initialize parts that depend on other subsystems having been initialized.
virtual void reinit ()
 Reinitialize the subsystem.
virtual void bind ()
 Acquire the subsystem's property bindings.
virtual void unbind ()
 Release the subsystem's property bindings.
virtual void update (double delta_time_sec)
 Update the subsystem.
virtual void suspend ()
 Suspend operation of this subsystem.
virtual void resume ()
 Resume operation of this subsystem.
virtual bool is_suspended () const
 Test whether this subsystem is suspended.

Detailed Description

A group of FlightGear subsystems.

Definition at line 294 of file subsystem_mgr.hxx.


Member Function Documentation

void SGSubsystemGroup::bind (  )  [virtual]

Acquire the subsystem's property bindings.

This method should bind all properties that the subsystem publishes. It will be invoked after init, but before any invocations of update.

Reimplemented from SGSubsystem.

Definition at line 143 of file subsystem_mgr.cxx.

void SGSubsystemGroup::init ( void   )  [virtual]

Initialize the subsystem.

This method should set up the state of the subsystem, but should not bind any properties. Note that any dependencies on the state of other subsystems should be placed here rather than in the constructor, so that FlightGear can control the initialization order.

Reimplemented from SGSubsystem.

Definition at line 122 of file subsystem_mgr.cxx.

bool SGSubsystemGroup::is_suspended (  )  const [virtual]

Test whether this subsystem is suspended.

Returns:
true if the subsystem is suspended, false if it is not.

Reimplemented from SGSubsystem.

Definition at line 198 of file subsystem_mgr.cxx.

void SGSubsystemGroup::postinit (  )  [virtual]

Initialize parts that depend on other subsystems having been initialized.

This method should set up all parts that depend on other subsystems. One example is the scripting/Nasal subsystem, which is initialized last. So, if a subsystem wants to execute Nasal code in subsystem-specific configuration files, it has to do that in its postinit() method.

Reimplemented from SGSubsystem.

Definition at line 129 of file subsystem_mgr.cxx.

void SGSubsystemGroup::reinit (  )  [virtual]

Reinitialize the subsystem.

This method should cause the subsystem to reinitialize itself, and (normally) to reload any configuration files.

Reimplemented from SGSubsystem.

Definition at line 136 of file subsystem_mgr.cxx.

void SGSubsystemGroup::resume (  )  [virtual]

Resume operation of this subsystem.

This method instructs the subsystem to resume sim-time-depended operations. It is not an error for the resume method to be invoked when the subsystem is not suspended; the invocation should simply be ignored.

Reimplemented from SGSubsystem.

Definition at line 191 of file subsystem_mgr.cxx.

void SGSubsystemGroup::suspend (  )  [virtual]

Suspend operation of this subsystem.

This method instructs the subsystem to suspend sim-time-dependent operations until asked to resume. The update method will still be invoked so that the subsystem can take any non-time-dependent actions, such as updating the display.

It is not an error for the suspend method to be invoked when the subsystem is already suspended; the invocation should simply be ignored.

Reimplemented from SGSubsystem.

Definition at line 184 of file subsystem_mgr.cxx.

void SGSubsystemGroup::unbind (  )  [virtual]

Release the subsystem's property bindings.

This method should release all properties that the subsystem publishes. It will be invoked by FlightGear (not the destructor) just before the subsystem is removed.

Reimplemented from SGSubsystem.

Definition at line 150 of file subsystem_mgr.cxx.

void SGSubsystemGroup::update ( double  delta_time_sec  )  [virtual]

Update the subsystem.

FlightGear invokes this method every time the subsystem should update its state.

Parameters:
delta_time_sec The delta time, in seconds, since the last update. On first update, delta time will be 0.

Implements SGSubsystem.

Definition at line 158 of file subsystem_mgr.cxx.


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

Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1