VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
DtDefaultLandingGearController Class Reference

This component outputs controls for a fixed-wing entity's landing gear. More...

Inheritance diagram for DtDefaultLandingGearController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtDefaultLandingGearController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString& name,
virtual ~DtDefaultLandingGearController ()
 Destructor.
virtual bool init ()
 Init. Call immediately after construction.
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void tick ()
 This components simulation tick.

Static Public Member Functions

static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

virtual bool createPortGroups ()
 Creates and initializes port groups.
virtual bool createPorts ()
 Creates and initializes ports.

Protected Attributes

Ports and Port Groups

Output Port Name: landing-gear-down
Output Port Description: Outputs True when the gear should be down, and False when retraced.


Output Port Range: True/False

DtBooleanOutputPortmyLandingGearDownPort
DtFixedWingEntityStateRepositorymyFixedWingSR

Private Member Functions

 DtDefaultLandingGearController ()
 Not Implemented.
 DtDefaultLandingGearController (const DtDefaultLandingGearController &orig)
 Not Implemented.
DtDefaultLandingGearControlleroperator= (const DtDefaultLandingGearController &orig)
 Not Implemented.

Detailed Description

This component outputs controls for a fixed-wing entity's landing gear.

It checks the onGround() call in the DtFixedWingEntityStateRepository and when the entity is on the ground, outputs gear-down True, otherwise outputs false. Component OPD Name: "default-landing-gear-controller" Uses Descriptor Type: DtControllerDescriptor


Constructor & Destructor Documentation

Not Implemented.

Not Implemented.

DtDefaultLandingGearController::DtDefaultLandingGearController ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
)

(const DtString& name,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString& name, DtVrfObject* owner, DtSimManager* simManager, DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0)

Destructor.


Member Function Documentation

DtDefaultLandingGearController& DtDefaultLandingGearController::operator= ( const DtDefaultLandingGearController orig) [private]

Not Implemented.

Init. Call immediately after construction.

Reimplemented from DtControllerComponent.

virtual DtString DtDefaultLandingGearController::type ( ) const [virtual]

Returns a string identifies the class type of component.

Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.

Returns:
DtDefaultLandingGearControllerType

Reimplemented from DtControllerComponent.

virtual void DtDefaultLandingGearController::tick ( ) [virtual]

This components simulation tick.

Reimplemented from DtSimComponent.

static DtSimComponent* DtDefaultLandingGearController::creator ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
) [static]

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

Returns:
New instance of this class.
virtual bool DtDefaultLandingGearController::createPortGroups ( ) [protected, virtual]

Creates and initializes port groups.

Reimplemented from DtSimComponent.

virtual bool DtDefaultLandingGearController::createPorts ( ) [protected, virtual]

Creates and initializes ports.

Reimplemented from DtSimComponent.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)