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

DtFixedWingPatrolBetweenController is a controller that models patrolling between waypoint behavior for fixed-wing entities. More...

Inheritance diagram for DtFixedWingPatrolBetweenController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtFixedWingPatrolBetweenController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtFixedWingPatrolBetweenController ()
 destructor
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void processPatrolBetweenTask (DtSimMessage *msg)
virtual const DtStringfirstWaypoint () const
virtual void setFirstWaypoint (const DtString &waypoint)
virtual const DtStringsecondWaypoint () const
virtual void setSecondWaypoint (const DtString &waypoint)
virtual void registerTaskMsgCallbacks ()
 Overrides this so it can register its interest in patrolBetween commands.
virtual void doFinishing ()
 Override this so we can switch to the other waypoint when we arrive instead of completing the task.

Static Public Member Functions

static void patrolBetweenCallback (DtSimMessage *msg, void *usrData)
 Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of patrol between tasks.
static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

 DtFixedWingPatrolBetweenController ()
 Default constructor; should not be called.
 DtFixedWingPatrolBetweenController (const DtFixedWingPatrolBetweenController &orig)
 copy constructor; shallow; does not copy the ports.
const
DtFixedWingPatrolBetweenController
operator= (const DtFixedWingPatrolBetweenController &orig)
 assignment operator; see comments on copy constructor!

Detailed Description

DtFixedWingPatrolBetweenController is a controller that models patrolling between waypoint behavior for fixed-wing entities.

End User Description: The entity moves to the first point, then the second, then the first, etc., until retasked.

Uses Descriptor Type: DtFixedWingPilotControllerDescriptor


Constructor & Destructor Documentation

(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; should not be called.

Here because the compiler will generate an unprotected one otherwise.

copy constructor; shallow; does not copy the ports.


Member Function Documentation

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:
DtFixedWingPatrolBetweenControllerType

Reimplemented from DtFixedWingMoveToController.

static void DtFixedWingPatrolBetweenController::patrolBetweenCallback ( DtSimMessage msg,
void *  usrData 
) [static]

Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of patrol between tasks.

virtual const DtString& DtFixedWingPatrolBetweenController::firstWaypoint ( ) const [virtual]
virtual void DtFixedWingPatrolBetweenController::setFirstWaypoint ( const DtString waypoint) [virtual]
virtual void DtFixedWingPatrolBetweenController::setSecondWaypoint ( const DtString waypoint) [virtual]
static DtSimComponent* DtFixedWingPatrolBetweenController::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.

Reimplemented from DtFixedWingMoveToController.

Overrides this so it can register its interest in patrolBetween commands.

Reimplemented from DtFixedWingMoveToController.

Override this so we can switch to the other waypoint when we arrive instead of completing the task.

Reimplemented from DtFixedWingMoveToController.

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

assignment operator; see comments on copy constructor!


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)