VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtVrfAggregateStateRepository Class Reference
Inheritance diagram for DtVrfAggregateStateRepository:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtVrfAggregateStateRepository (DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 DtVrfAggregateStateRepository (const DtVrfAggregateStateRepository &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
const
DtVrfAggregateStateRepository
operator= (const DtVrfAggregateStateRepository &orig)
virtual ~DtVrfAggregateStateRepository ()
virtual
DtSimObjectStateRepository
clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
 Clone.
virtual bool init ()
 must be called before any other member functions are called (including assignment operator)
virtual DtString type () const
 Returns the string type of the repository, as defined in vrfSRTypes.h.
virtual DtFormationStateformationState () const
virtual void setFormation (DtAggregateFormation formation)
virtual DtAggregateFormation formation () const
virtual bool formationNameSpecified () const
virtual double formationHalfLength ()
 Returns the half-length of the current formation.
virtual const int vrfMovingObjectStateRepositorySubType () const
 Returns DtVrfMovingObjectStateRepositorySubTypeAggregate.
virtual const int aggregateStateRepositorySubType () const
 Returns DtVrfAggregateStateRepositorySubTypeBase.
virtual void getSelf (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 Overridden to to handle pre-version 3.8 order of battle files.
virtual bool aggregatedExtent (DtExtent &extent)
virtual bool computeExtentFromParameters (const DtString &formationName, DtExtent &extent)
virtual void setParameterEntry (DtVrfObjectParameters *parameterEntry)
 If a clone has been created, this call will return the cloned entry as a const pointer, else returns the original pointer.
virtual void setFormationName (const DtString &name)
 The name of the current formation.
virtual DtString formationName () const
 The name of the current formation.
virtual void setAggregateState (enum DtAggregateState state)
 DIS/RPR FOM Aggregate mode (DtOtherAggregateState, DtAggregated, DtDisaggregated).
virtual enum DtAggregateState aggregateState () const
 DIS/RPR FOM Aggregate mode (DtOtherAggregateState, DtAggregated, DtDisaggregated).

Static Public Member Functions

static DtVrfObjectStateRepositorycreator (const DtString &name, DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, DtReaderWriterRegistry *parentRegistry)
 Returns newly created instance of this class.
static
DtVrfAggregateStateRepository
isVrfAggregateStateRepository (DtSimObjectStateRepository *repository)
 Returns a the pointer the repository, if the repository passed in is of type DtVrfAggregateStateRepository, NULL if not.
static const
DtVrfAggregateStateRepository
isVrfAggregateStateRepository (const DtSimObjectStateRepository *repository)

Protected Member Functions

 DtVrfAggregateStateRepository ()
 default constructor cannot be used
virtual void createFormationState ()
virtual bool computeExtent (const DtAggregateObjectParameters &parameterEntry, const DtString &formationName, DtExtent &extent)
virtual std::list< DtVectorgenerateFormationPositions (const DtVrfObjectParameters &parameterEntry, DtFormation &formation)
virtual bool getFormation (const DtString &formationName, const DtAggregateObjectParameters &parameterEntry, DtFormation &formation)
virtual void preGetSelf ()
 Overridden to handle pre-3.12 order-of-battle file format.
virtual void postGetSelf ()
 Hook function called immediately following getSelf().

Protected Attributes

DtRwFormationType myFormation
DtRwString myFormationName
DtFormationStatemyFormationState
DtRwAggregateState myAggregateState
DtExtent myCachedExtent
bool myCachedExtentIsValid

Constructor & Destructor Documentation

default constructor cannot be used

DtVrfAggregateStateRepository::DtVrfAggregateStateRepository ( DtVrfObject vrfObject,
const DtObjectType objectType,
DtVrfObjectParameters parameters,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)
DtVrfAggregateStateRepository::DtVrfAggregateStateRepository ( const DtVrfAggregateStateRepository orig,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)

Member Function Documentation

const DtVrfAggregateStateRepository& DtVrfAggregateStateRepository::operator= ( const DtVrfAggregateStateRepository orig)
virtual DtSimObjectStateRepository* DtVrfAggregateStateRepository::clone ( const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
) const [virtual]

Clone.

Reimplemented from DtVrfMovingObjectStateRepository.

must be called before any other member functions are called (including assignment operator)

Reimplemented from DtVrfObjectStateRepository.

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

Returns the string type of the repository, as defined in vrfSRTypes.h.

Reimplemented from DtVrfMovingObjectStateRepository.

virtual void DtVrfAggregateStateRepository::setFormation ( DtAggregateFormation  formation) [virtual]
virtual DtAggregateFormation DtVrfAggregateStateRepository::formation ( ) const [virtual]
virtual void DtVrfAggregateStateRepository::setFormationName ( const DtString name) [virtual]

The name of the current formation.

Setting the formation name also sets myFormation. If the string formation name matches one of the defined formation enumerations (i.e. "Vee", "Line", etc), then myFormation is set to the corresponding enumeration. Otherwise, it is set to DtOtherAggregateFormation.

The name of the current formation.

Setting the formation name also sets myFormation. If the string formation name matches one of the defined formation enumerations (i.e. "Vee", "Line", etc), then myFormation is set to the corresponding enumeration. Otherwise, it is set to DtOtherAggregateFormation.

virtual void DtVrfAggregateStateRepository::setAggregateState ( enum DtAggregateState  state) [virtual]

DIS/RPR FOM Aggregate mode (DtOtherAggregateState, DtAggregated, DtDisaggregated).

Remote non-VR-Forces aggregates may have a mode of DtOtherAggregateState. VR-Forces aggregates may be in either a DtAggregated or DtDisaggregated state (and this may change mode over the course of the simulation).

virtual enum DtAggregateState DtVrfAggregateStateRepository::aggregateState ( ) const [virtual]

DIS/RPR FOM Aggregate mode (DtOtherAggregateState, DtAggregated, DtDisaggregated).

Remote non-VR-Forces aggregates may have a mode of DtOtherAggregateState. VR-Forces aggregates may be in either a DtAggregated or DtDisaggregated state (and this may change mode over the course of the simulation).

Returns:
The valueSpecified flag for myFormationName.

Returns the half-length of the current formation.

Returns DtVrfMovingObjectStateRepositorySubTypeAggregate.

Reimplemented from DtVrfMovingObjectStateRepository.

Returns DtVrfAggregateStateRepositorySubTypeBase.

virtual void DtVrfAggregateStateRepository::getSelf ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [virtual]

Overridden to to handle pre-version 3.8 order of battle files.

Reimplemented from DtVrfObjectStateRepository.

static DtVrfObjectStateRepository* DtVrfAggregateStateRepository::creator ( const DtString name,
DtVrfObject vrfObject,
const DtObjectType objectType,
DtVrfObjectParameters parameters,
DtReaderWriterRegistry parentRegistry 
) [static]

Returns newly created instance of this class.

Reimplemented from DtVrfMovingObjectStateRepository.

Returns a the pointer the repository, if the repository passed in is of type DtVrfAggregateStateRepository, NULL if not.

virtual bool DtVrfAggregateStateRepository::computeExtentFromParameters ( const DtString formationName,
DtExtent extent 
) [virtual]
virtual void DtVrfAggregateStateRepository::setParameterEntry ( DtVrfObjectParameters parameterEntry) [virtual]

If a clone has been created, this call will return the cloned entry as a const pointer, else returns the original pointer.

Reimplemented from DtVrfObjectStateRepository.

virtual void DtVrfAggregateStateRepository::createFormationState ( ) [protected, virtual]
virtual bool DtVrfAggregateStateRepository::computeExtent ( const DtAggregateObjectParameters parameterEntry,
const DtString formationName,
DtExtent extent 
) [protected, virtual]
virtual std::list<DtVector> DtVrfAggregateStateRepository::generateFormationPositions ( const DtVrfObjectParameters parameterEntry,
DtFormation formation 
) [protected, virtual]
virtual bool DtVrfAggregateStateRepository::getFormation ( const DtString formationName,
const DtAggregateObjectParameters parameterEntry,
DtFormation formation 
) [protected, virtual]
virtual void DtVrfAggregateStateRepository::preGetSelf ( ) [protected, virtual]

Overridden to handle pre-3.12 order-of-battle file format.

Allows 3.11 order-of-battle files containing aggregates to be read in. To be removed following 3.12 release.

Reimplemented from DtSimObjectStateRepository.

virtual void DtVrfAggregateStateRepository::postGetSelf ( ) [protected, virtual]

Hook function called immediately following getSelf().

Reimplemented from DtSimObjectStateRepository.


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)