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

DtAggregateOccupancyDirectorController is an occupancy controller that handles occupancy (embarkation) requests for an aggregate entity. More...

Inheritance diagram for DtDisaggregatedOccupancyDirectorController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtDisaggregatedOccupancyDirectorController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtDisaggregatedOccupancyDirectorController ()
 destructor
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void processRequestEmbarkationInformation (DtSimMessage *msg)
virtual bool init ()
 Calls setRadio()

Static Public Member Functions

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

Protected Member Functions

virtual DtString embarkableParent (const DtString &object) const
 Returns the parent that this object can embark on.
virtual void processDisembarkObjectCallback (DtSimMessage *msg)
 Processes DtIfDisembarkObject if address to this object and it is a disembarkAll type message.
virtual void sendTask (const DtSimTask &task, const DtString &to)

Static Protected Member Functions

static void disembarkObjectCallback (DtSimMessage *msg, void *usr)
 Callback for responding to DtIfDisembarkObject messages.

Detailed Description

DtAggregateOccupancyDirectorController is an occupancy controller that handles occupancy (embarkation) requests for an aggregate entity.

End User Description: The DtAggregateOccupancyDirector is an extended form of DtOccupancyDirectorController that overrides how requests for embarkation information are handled.

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

Developer Description: Forwards all requests to lead subordinate.

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)

destructor


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

Implements DtTaskControllerComponent.

static DtSimComponent* DtDisaggregatedOccupancyDirectorController::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.

Calls setRadio()

Reimplemented from DtControllerComponent.

virtual DtString DtDisaggregatedOccupancyDirectorController::embarkableParent ( const DtString object) const [protected, virtual]

Returns the parent that this object can embark on.

If the requested object is a pseudo aggregate, the entity will actually embark on the "leader" of the pseudo aggregate

static void DtDisaggregatedOccupancyDirectorController::disembarkObjectCallback ( DtSimMessage msg,
void *  usr 
) [static, protected]

Callback for responding to DtIfDisembarkObject messages.

Processes DtIfDisembarkObject if address to this object and it is a disembarkAll type message.

virtual void DtDisaggregatedOccupancyDirectorController::sendTask ( const DtSimTask task,
const DtString to 
) [protected, virtual]

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)