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

DtAggregateTurnToHeadingController is a task controller responsible for executing DtTurnToHeading tasks. More...

Inheritance diagram for DtDisaggregatedTurnToHeadingController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtDisaggregatedTurnToHeadingController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtDisaggregatedTurnToHeadingController ()
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void registerTaskMsgCallbacks ()
 Registers task and set data request callbacks for following type: DtTurnToHeadingType.

Static Public Member Functions

static void turnToHeadingTaskCallback (DtSimMessage *msg, void *usr)
 Callback function for handling incoming turn to heading task message.
static void taskCompleteReportCallback (DtSimMessage *msg, void *usr)
 Calls onTaskComplete to process the message.
static DtSimComponent * creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

virtual void onTurnToHeadingTask (DtSimMessage *msg)
 Issues DtMoveIntoFormationTask to ourself, at current location, heading given in incoming DtTurnToHeadingTask, keeping existing formation, and not applying formation to subordinates.
virtual void onTaskComplete (DtSimMessage *msg)
 If tasked() is true and report is for a DtMoveIntoFormationTask type, calls taskComplete().

Private Member Functions

 DtDisaggregatedTurnToHeadingController (const DtDisaggregatedTurnToHeadingController &orig)
 not implemented
DtDisaggregatedTurnToHeadingController & operator= (const DtDisaggregatedTurnToHeadingController &orig)
 not implemented

Detailed Description

DtAggregateTurnToHeadingController is a task controller responsible for executing DtTurnToHeading tasks.

End User Description: DtAggregateMoveToController models an aggregate's turn-to <heading> behavior. The behavior is implemented by issuing a move-into-formation subtask to itself, at the current location, current formation, and the heading given in the task. The DtAggregateMoveIntoFormationController executes the subtask. The task is considered complete when the move-into-formation subtask completes.

This controller may only be configured as a part of an entity that has a vrf-aggregate-state-repository.

Uses Descriptor Type: DtComponentDescriptor


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)

not implemented


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

Implements DtTaskControllerComponent.

Registers task and set data request callbacks for following type: DtTurnToHeadingType.

Reimplemented from DtTaskControllerComponent.

static void DtDisaggregatedTurnToHeadingController::turnToHeadingTaskCallback ( DtSimMessage *  msg,
void *  usr 
) [static]

Callback function for handling incoming turn to heading task message.

Calls processTurnToHeadingTask to actually handle the message.

Parameters:
msgMessage containing a DtTurnToHeadingTask.
usrPointer to instance of this class.
static void DtDisaggregatedTurnToHeadingController::taskCompleteReportCallback ( DtSimMessage *  msg,
void *  usr 
) [static]

Calls onTaskComplete to process the message.

Parameters:
msgMessage containing a DtTaskCompleteReport.
usrPointer to an instance of this class.
static DtSimComponent* DtDisaggregatedTurnToHeadingController::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 void DtDisaggregatedTurnToHeadingController::onTurnToHeadingTask ( DtSimMessage *  msg) [protected, virtual]

Issues DtMoveIntoFormationTask to ourself, at current location, heading given in incoming DtTurnToHeadingTask, keeping existing formation, and not applying formation to subordinates.

Parameters:
msgMessage containing a DtTurnToHeadingTask.
virtual void DtDisaggregatedTurnToHeadingController::onTaskComplete ( DtSimMessage *  msg) [protected, virtual]

If tasked() is true and report is for a DtMoveIntoFormationTask type, calls taskComplete().

Parameters:
msgMessage containing a DtTaskCompleteReport.
DtDisaggregatedTurnToHeadingController& DtDisaggregatedTurnToHeadingController::operator= ( const DtDisaggregatedTurnToHeadingController &  orig) [private]

not implemented


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)