VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtMissileManeuverActComponent Class Reference

DtMissileManeuverActComponent is a kinematics-based model of a missile system that converts steering acceleration inputs into orientation, acceleration, velocity, and position. More...

Inheritance diagram for DtMissileManeuverActComponent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtMissileManeuverActComponent (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtMissileManeuverActComponent ()
 destructor
virtual bool init ()
 to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports.
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void tick ()
 Calculate new kinematic state.
virtual DtVector calculateAccelerationFromResistance ()
 Called after the missile has completed its burn to compute the deceleration (in local coordinates) due to air resistance.
virtual void updateRepository (const DtVector &position, const DtVector &velocity, const DtVector &acceleration, const DtTaitBryan &orientation)
 Updates state repository with newly calculated values.

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 the local port groups.
virtual bool createPorts ()
 Creates the input ports and adds them to the component.
virtual bool createPSR ()
 Creates myProcessState data member, and adds it to our process state repository manager.
 DtMissileManeuverActComponent ()
 default constructor; not implemented
 DtMissileManeuverActComponent (const DtMissileManeuverActComponent &orig)
 copy constructor; not implemented
const
DtMissileManeuverActComponent
operator= (const DtMissileManeuverActComponent &orig)
 assignment operator; not implemented

Protected Attributes

DtMissileStateRepositorymyMissileState
DtMissileFlightPSRmyProcessState
 Container for state data associated with this component.
Ports and Port Groups
DtInputPortGroupmyMissileControlPortGroup
 Input Port Group Name: missile-control
Input Port Group Description:
DtConstrainedAnalogInputPortmyThrustPort
 Input Port Name: thrust
Input Port Description:
Input Port Range: 0.
DtConstrainedAnalogInputPortmyManeuverAccelXPort
 Input Port Name: maneuver-accel-x
Input Port Description:
Input Port Range: -100000.
DtConstrainedAnalogInputPortmyManeuverAccelYPort
 Input Port Name: maneuver-accel-y
Input Port Description:
Input Port Range: -100000.
DtConstrainedAnalogInputPortmyManeuverAccelZPort
 Input Port Name: maneuver-accel-z
Input Port Description:
Input Port Range: -100000.
DtBooleanInputPortmySelfDestructPort
 Input Port Name: self-destruct
Input Port Description:
Input Port Range:
Input Port Default Value:
Input Group Parent: missile-control.

Detailed Description

DtMissileManeuverActComponent is a kinematics-based model of a missile system that converts steering acceleration inputs into orientation, acceleration, velocity, and position.

Uses Descriptor Type: DtComponentDescriptor


Constructor & Destructor Documentation

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

(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)

destructor

default constructor; not implemented

copy constructor; not implemented


Member Function Documentation

to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports.

Calls createPSR(), to create our myProcessSR member, which holds the checkpointable data associated with the process of flight.

Reimplemented from DtActuatorComponent.

virtual DtString DtMissileManeuverActComponent::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:
DtMissileManeuverActuatorType

Reimplemented from DtSimComponent.

virtual void DtMissileManeuverActComponent::tick ( ) [virtual]

Calculate new kinematic state.

Reimplemented from DtSimComponent.

Called after the missile has completed its burn to compute the deceleration (in local coordinates) due to air resistance.

virtual void DtMissileManeuverActComponent::updateRepository ( const DtVector position,
const DtVector velocity,
const DtVector acceleration,
const DtTaitBryan &  orientation 
) [virtual]

Updates state repository with newly calculated values.

static DtSimComponent* DtMissileManeuverActComponent::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 DtMissileManeuverActComponent::createPortGroups ( ) [protected, virtual]

Creates the local port groups.

Reimplemented from DtSimComponent.

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

Creates the input ports and adds them to the component.

Reimplemented from DtSimComponent.

virtual bool DtMissileManeuverActComponent::createPSR ( ) [protected, virtual]

Creates myProcessState data member, and adds it to our process state repository manager.

Passes in the name and type specified in the component descriptor (if they exist) to the DtVrfProcessStateRepository::createRepository factory method. If name and/or type is not specified, uses the appropriate default strings defined in procSRTypes.h.

const DtMissileManeuverActComponent& DtMissileManeuverActComponent::operator= ( const DtMissileManeuverActComponent orig) [protected]

assignment operator; not implemented


Member Data Documentation

Input Port Group Name: missile-control
Input Port Group Description:

Input Port Name: thrust
Input Port Description:
Input Port Range: 0.

to 1.
Input Port Default Value:
Input Group Parent: missile-control

Input Port Name: maneuver-accel-x
Input Port Description:
Input Port Range: -100000.

to 100000.
Input Port Default Value:
Input Group Parent: missile-control

Input Port Name: maneuver-accel-y
Input Port Description:
Input Port Range: -100000.

to 100000.
Input Port Default Value:
Input Group Parent: missile-control

Input Port Name: maneuver-accel-z
Input Port Description:
Input Port Range: -100000.

to 100000.
Input Port Default Value:
Input Group Parent: missile-control

Input Port Name: self-destruct
Input Port Description:
Input Port Range:
Input Port Default Value:
Input Group Parent: missile-control.

Container for state data associated with this component.

This state is saved and restored as part of a scenario (or checkpoint).


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)