VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtAggregateStateRepository Class Reference

A protocol independent representation of an aggregate. More...

+ Inheritance diagram for DtAggregateStateRepository:
+ Collaboration diagram for DtAggregateStateRepository:

Public Types

enum  { AGGREGATE_SR_MARKING_TEXT_LENGTH =31 }
 Aggregate state PDU marking is 31 bytes long. More...
 
- Public Types inherited from DtStateRepository
typedef std::map< DtString,
DtStateRepositoryExtension * > 
DtStateRepositoryExtensionMap
 

Public Member Functions

 DtAggregateStateRepository ()
 default constructor More...
 
virtual ~DtAggregateStateRepository ()
 destructor More...
 
 DtAggregateStateRepository (const DtAggregateStateRepository &orig)
 copy constructor More...
 
DtAggregateStateRepositoryoperator= (const DtAggregateStateRepository &orig)
 assignment operator More...
 
virtual DtStateRepositoryclone (bool copy=false) const
 Return a copy/empty object of the same type as this. More...
 
virtual void setAggregateID (const DtEntityIdentifier &id)
 Set/Get the aggregate's identifier. Calls down to base class. More...
 
virtual const DtEntityIdentifieraggregateID () const
 
virtual void setForceId (DtForceType force)
 Set/Get the force type. More...
 
virtual DtForceType forceId () const
 
virtual void setAggregateState (DtAggregateState value)
 Set/Get the aggregate state. More...
 
virtual DtAggregateState aggregateState () const
 
virtual void setAggregateType (const DtEntityType &type)
 Set/Get the aggregate type. Calls down to base class. More...
 
virtual const DtEntityTypeaggregateType () const
 
virtual void setFormation (DtAggregateFormation value)
 Set/Get the formation. More...
 
virtual DtAggregateFormation formation () const
 
virtual void setMarkingCharacterSet (DtCharacterSet value)
 Set/Get marking character set. More...
 
virtual DtCharacterSet markingCharacterSet () const
 
virtual void setMarkingText (DtU8 *copyFrom)
 Set/Get marking text. More...
 
virtual void setMarkingText (const DtString &text)
 
virtual void getMarkingText (DtU8 *copyTo) const
 
virtual const char * markingText () const
 
virtual void setDimensions (const DtVector32 &dims)
 Set/Get the dimensions. More...
 
virtual const DtVector32dimensions () const
 
const
DtGlobalObjectDesignatorList
entities () const
 Return the list of published entities in the aggregate. More...
 
DtGlobalObjectDesignatorListentities ()
 
DtGlobalObjectDesignatorListsubAggregates ()
 Return the list of published subaggregates in the aggregate. More...
 
const
DtGlobalObjectDesignatorList
subAggregates () const
 
virtual bool setNumberOfDIS_Subaggregates (int newNumberOfAggregates)
 Set/Get the number of DIS sub-aggregates. More...
 
virtual int numberOfDIS_Subaggregates () const
 
virtual bool setNumberOfDIS_Entities (int newNumberOfEntities)
 Set/Get the number of DIS entities. More...
 
virtual int numberOfDIS_Entities () const
 
virtual bool setNumberOfSilentSubaggregates (int newNumberOfAggregates)
 Set/Get the number of silent aggregates. More...
 
virtual int numberOfSilentSubaggregates () const
 
virtual bool setNumberOfSilentEntities (int newNumberOfEntities)
 Set/Get the number of silent entities. More...
 
virtual int numberOfSilentEntities () const
 Returns the number of silent entity list items. More...
 
virtual bool setSubaggregateID (int index, const DtGlobalObjectDesignator &aggID)
 Set/Get a DIS sub-aggregate ID. More...
 
virtual bool getSubaggregateID (int index, DtGlobalObjectDesignator &aggID) const
 
virtual bool setEntityID (int index, const DtGlobalObjectDesignator &entID)
 Set/Get a DIS entity ID. More...
 
virtual bool getEntityID (int index, DtGlobalObjectDesignator &entID) const
 
virtual bool setSilentAggregateList (int index, const DtSilentAggregateList &aggList)
 Set/Get a silent aggregate list. More...
 
virtual bool getSilentAggregateList (int index, DtSilentAggregateList &aggList) const
 
virtual bool setSilentEntityList (int index, const DtSilentEntityList &entList)
 Set/Get a silent entity list. More...
 
virtual bool getSilentEntityList (int index, DtSilentEntityList &entList) const
 
virtual bool setNumberOfDatumRecords (int newNumberOfRecords)
 Set the number of variable datum records. More...
 
virtual int numberOfDatumRecords () const
 Get the number of variable datum records. More...
 
virtual bool setVariableDatumRecord (int index, const DtVariableDatumRecord &rec)
 Set/Get a variable datum record. More...
 
virtual bool getVariableDatumRecord (int index, DtVariableDatumRecord &rec) const
 
virtual DtVariableDatumRecordvariableDatumRecordRef (int index)
 Get a reference to a variable datum record. More...
 
virtual const
DtVariableDatumRecord
variableDatumRecordConstRef (int index) const
 Get a constant reference to a variable datum record. More...
 
virtual void printData () const
 Print the state data to the DtInfo Stream. More...
 
virtual void printDataToStream (std::ostream &stream) const
 Prints the state data to the stream. More...
 
- Public Member Functions inherited from DtBaseEntityStateRepository
 DtBaseEntityStateRepository ()
 default constructor More...
 
virtual ~DtBaseEntityStateRepository ()
 destructor More...
 
 DtBaseEntityStateRepository (const DtBaseEntityStateRepository &orig)
 copy constructor More...
 
DtBaseEntityStateRepositoryoperator= (const DtBaseEntityStateRepository &orig)
 assignment operator More...
 
void setTimeStampType (DtTimeStampType type)
 Set/Get flag indicating whether we're using absolute timestamps for dead reckoning. More...
 
DtTimeStampType timeStampType () const
 
virtual void setDisObjectManager (DtDisObjectManager *mgr)
 Set the HLA/DIS object manager. More...
 
virtual void setAmAsSeenByRemote (bool val)
 Mark this state repository as an AsSeenByRemote copy. More...
 
virtual const DtDcmbodyToGeoc (DtTime aTime) const
 Get the body to geocentric coordinate matrix. More...
 
virtual const DtDcmbodyToGeoc () const
 Get the body to geocentric coordinate matrix. More...
 
virtual const DtDcmrelativeBodyToHost (DtTime aTime) const
 Get the body to host DCM. More...
 
virtual const DtDcmrelativeBodyToHost () const
 Get the body to host DCM. More...
 
virtual void setEntityId (const DtEntityIdentifier &id)
 Set the entity's identifier. More...
 
virtual const DtEntityIdentifierentityId () const
 The entity's identifier. More...
 
virtual void setEntityType (const DtEntityType &type)
 Set the entity type. More...
 
virtual const DtEntityTypeentityType () const
 The entity type. More...
 
virtual void useDeadReckoner (DtDeadReckoner *dr)
 Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes. More...
 
virtual void useRelativeDeadReckoner (DtDeadReckoner *dr)
 Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes. More...
 
virtual void useDeadReckoner (bool yesNo=true)
 Create and use a new (private) dead-reckoner as our approximator. More...
 
virtual void useRelativeDeadReckoner (bool yesNo=true)
 Create and use a new (private) dead-reckoner as our approximator. More...
 
virtual DtDeadReckonerusingDeadReckoner ()
 If the ESR is using a dead reckoner, returns it. Else returns NULL. More...
 
virtual DtDeadReckonerusingRelativeDeadReckoner ()
 If the ESR is using a dead reckoner, returns it. Else returns NULL. More...
 
virtual void useSmoother (DtSmoother *sm)
 Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes. More...
 
virtual void useRelativeSmoother (DtSmoother *sm)
 Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes. More...
 
virtual void useSmoother (bool yesNo=true)
 Create and use a new (private) smoother as our approximator. More...
 
virtual void useRelativeSmoother (bool yesNo=true)
 Create and use a new (private) smoother as our approximator. More...
 
virtual DtSmootherusingSmoother ()
 If the ESR is using a smoother, returns it. Else returns NULL. More...
 
virtual DtSmootherusingRelativeSmoother ()
 If the ESR is using a smoother, returns it. Else returns NULL. More...
 
virtual DtThresholderthresholder ()
 Returns the SR's thresholder, which contains thresholds needed for encoding. More...
 
virtual const DtThresholderthresholder () const
 Returns a const reference the SR's thresholder, which contains thresholds needed for encoding. More...
 
virtual DtClockclock () const
 The clock being used for dead reckoning calculations. More...
 
virtual void setClock (DtClock *clock)
 Sets the clock being used for dead reckoning calculations. More...
 
void printDataToStream (std::ostream &str) const
 Prints the state data to the specified stream. More...
 
virtual void setTimeForSets (DtTime time)
 
virtual DtTime timeForSets () const
 
void computeSpatialFromRelativeSpatial ()
 If this unit has a host, update the esr to reflect the current state of the host. More...
 
DtBaseEntityStateRepositoryhostEsr () const
 Returns null if there isn't a host. More...
 
virtual void setAll (const DtVector &loc, const DtVector32 &vel, const DtTaitBryan &ori, const DtVector32 &acc, const DtVector32 &rotVel, DtTime t)
 Coherently set all DR parameters, thus avoiding DR computations associated with a partial set. More...
 
virtual void setAll (const DtVector &loc, const DtVector32 &vel, const DtTaitBryan &ori, const DtVector32 &acc, const DtVector32 &rotVel)
 Coherently set all DR parameters, thus avoiding DR computations associated with a partial set. More...
 
virtual void setLocation (const DtVector &location, DtTime aTime)
 Set the location of the center of mass in geocentric world coordinates at aTime. More...
 
virtual void setLocation (const DtVector &location)
 Set the location of the center of mass in geocentric world coordinates at current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVectorlocation (DtTime aTime) const
 The location in geocentric world coordinates at aTime. More...
 
virtual const DtVectorlocation () const
 The location in geocentric world coordinates at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVectorlastSetLocation () const
 Return the value last passed to setLocation, regardless of whether we have an approximator. More...
 
virtual void setVelocity (const DtVector32 &Velocity, DtTime aTime)
 Set the velocity in meters per second at aTime. More...
 
virtual void setVelocity (const DtVector32 &Velocity)
 The velocity in meters per second at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32velocity (DtTime aTime) const
 The velocity in meters per second at aTime. More...
 
virtual const DtVector32velocity () const
 The velocity at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32lastSetVelocity () const
 Return the value last passed to setVelocity, regardless of whether we have an approximator. More...
 
virtual void setAcceleration (const DtVector32 &Acceleration, DtTime aTime)
 Sets the acceleration at aTime. More...
 
virtual void setAcceleration (const DtVector32 &Acceleration)
 Sets the acceleration at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32acceleration (DtTime aTime) const
 Return the acceleration at aTime. More...
 
virtual const DtVector32acceleration () const
 The acceleration at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32lastSetAcceleration () const
 The value last passed to setAcceleration, regardless of whether we have an approximator. More...
 
virtual void setOrientation (const DtTaitBryan &orient, DtTime aTime)
 Set the orientation at aTime. More...
 
virtual void setOrientation (const DtTaitBryan &orient)
 Set the orientation at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtTaitBryanorientation (DtTime aTime) const
 The orientation at the passed time. More...
 
virtual const DtTaitBryanorientation () const
 The orientation at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtTaitBryanlastSetOrientation () const
 The value last passed to setOrientation, regardless of whether we have an approximator. More...
 
virtual void setRotationalVelocity (const DtVector32 &BodyRates, DtTime aTime)
 Set the rotational velocity of an entity at aTime. More...
 
virtual void setRotationalVelocity (const DtVector32 &BodyRates)
 Set the rotational velocity of an entity at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32rotationalVelocity (DtTime aTime) const
 The rotational velocity of an entity at aTime. More...
 
virtual const DtVector32rotationalVelocity () const
 The rotational velocity of an entity at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32lastSetRotationalVelocity () const
 Return the value last passed to setRotationalVelocity, regardless of whether we have an approximator. More...
 
virtual void setFrozen (bool on)
 Set entity frozen state. True indicates frozen. More...
 
virtual bool frozen () const
 The frozen state of an entity. More...
 
virtual void setAlgorithm (DtDeadReckonTypes alg)
 Set the dead reckoning algorithm. More...
 
virtual DtDeadReckonTypes algorithm () const
 The dead reckoning algorithm. More...
 
virtual void setRelativeLocation (const DtVector &location, DtTime aTime)
 Set the location of the center of mass in world coordinates at the given time. More...
 
virtual void setRelativeLocation (const DtVector &location)
 Set the location of the center of mass in world coordinates at the simTime as set by clock()->simTime(). More...
 
virtual const DtVectorrelativeLocation (DtTime aTime) const
 The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at the given time. More...
 
virtual const DtVectorrelativeLocation () const
 The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at simTime as set by clock()->simTime(). More...
 
virtual const DtVectorlastSetRelativeLocation () const
 Return the value last passed to setLocation, regardless of whether we have an approximator. More...
 
virtual void setRelativeVelocity (const DtVector32 &Velocity, DtTime aTime)
 Set the relative velocity of the entity in meters per second with respect to the host at aTime. More...
 
virtual void setRelativeVelocity (const DtVector32 &Velocity)
 Set the relative velocity of the entity in meters per second with respect to the host at simTime. More...
 
virtual const DtVector32relativeVelocity (DtTime aTime) const
 The relative velocity of the entity with respect to the host at aTime. More...
 
virtual const DtVector32relativeVelocity () const
 The relative velocity of the entity with respect to the host at simTime. More...
 
virtual const DtVector32lastSetRelativeVelocity () const
 Return the value last passed to setVelocity, regardless of whether we have an approximator. More...
 
virtual void setRelativeAcceleration (const DtVector32 &Acceleration, DtTime aTime)
 Set the relative acceleration of the entity with respect to the host at aTime. More...
 
virtual void setRelativeAcceleration (const DtVector32 &Acceleration)
 Set the relative acceleration of the entity with respect to the host at simTime. More...
 
virtual const DtVector32relativeAcceleration (DtTime aTime) const
 The relativeAcceleration of the entity with respect to the host at aTime. More...
 
virtual const DtVector32relativeAcceleration () const
 The relativeAcceleration of the entity with respect to the host at simTime. More...
 
virtual const DtVector32lastSetRelativeAcceleration () const
 Return the value last passed to setAcceleration, regardless of whether we have an approximator. More...
 
virtual void setRelativeOrientation (const DtTaitBryan &orient, DtTime aTime)
 Set the relative orientation of the entity with respect to the host. More...
 
virtual void setRelativeOrientation (const DtTaitBryan &orient)
 Set the relative orientation of the entity with respect to the host. More...
 
virtual const DtTaitBryanrelativeOrientation (DtTime aTime) const
 The relative orientation of the entity with respect to the host. More...
 
virtual const DtTaitBryanrelativeOrientation () const
 The relative orientation of the entity with respect to the host. More...
 
virtual const DtTaitBryanlastSetRelativeOrientation () const
 Return the value last passed to setOrientation, regardless of whether we have an approximator. More...
 
virtual void setRelativeRotationalVelocity (const DtVector32 &BodyRates, DtTime aTime)
 Set the relative rotational velocity. More...
 
virtual void setRelativeRotationalVelocity (const DtVector32 &BodyRates)
 Set the relative rotational velocity. More...
 
virtual const DtVector32relativeRotationalVelocity (DtTime aTime) const
 The relative rotational velocity. More...
 
virtual const DtVector32relativeRotationalVelocity () const
 The relative rotational velocity. More...
 
virtual const DtVector32lastSetRelativeRotationalVelocity () const
 Return the value last passed value to setRotationalVelocity, regardless of whether we have an approximator. More...
 
virtual void setRelativeFrozen (bool onOff)
 Set relative frozen. More...
 
virtual bool relativeFrozen () const
 Returns if the entity is frozen. More...
 
virtual void setRelativeAlgorithm (DtDeadReckonTypes alg)
 Set the dead reckoning algorithm. More...
 
virtual DtDeadReckonTypes relativeAlgorithm () const
 The dead reckoning algorithm. More...
 
virtual const
DtGlobalObjectDesignator
hostGlobalId () const
 Returns the globalID of the attached host. More...
 
virtual void setHostGlobalId (const DtGlobalObjectDesignator &id)
 Sets the globalId of the attached host. More...
 
virtual void clearHostGlobalId ()
 Unattaches this entity from its host. More...
 
virtual const DtNaturenature () const
 The nature of this entity to the host. More...
 
virtual void setNature (const DtNature newVal)
 Sets the nature of this entity to the host. More...
 
virtual const DtPositionpartPosition () const
 The Part Position this entity is preforming on the host. More...
 
virtual void setPartPosition (const DtPosition newVal)
 Sets the Part Position this entity is preforming on the host. More...
 
virtual const DtStationNamestationName () const
 The station name this entity is assigned to on the host. More...
 
virtual void setStationName (const DtStationName newVal)
 Sets the station name this entity is assigned to on the host. More...
 
virtual const DtU16stationNumber () const
 The station number this entity is assigned to on the host. More...
 
virtual void setStationNumber (const DtU16 newVal)
 Sets the station number this entity is assigned to on the host. More...
 
virtual const DtVectorrelativePosition () const
 The relative position on the host. More...
 
virtual void setRelativePosition (const DtVector &newVal)
 Set the relative position on the host. More...
 
virtual const DtFloat32range () const
 The range to the host. More...
 
virtual void setRange (const DtFloat32 newVal)
 Set the range to the host. More...
 
virtual const DtFloat32bearing () const
 The bearing to host. More...
 
virtual void setBearing (const DtFloat32 newVal)
 Set the bearing to host. More...
 
virtual void setApproximator (DtApproximator *approx)
 Get and set the approximator used to provide approximated position and orientation information for the entity. More...
 
virtual DtApproximatorapproximator () const
 Get and set the approximator used to provide approximated position and orientation information for the entity. More...
 
virtual void setRelativeApproximator (DtApproximator *approx)
 Get and set the approximator used to provide approximated position and orientation information for the entity. More...
 
virtual DtApproximatorrelativeApproximator () const
 Get and set the approximator used to provide approximated position and orientation information for the entity. More...
 
- Public Member Functions inherited from DtStateRepository
 DtStateRepository ()
 default constructor More...
 
 DtStateRepository (const DtStateRepository &orig)
 copy constructor More...
 
virtual ~DtStateRepository ()
 destructor More...
 
DtStateRepositoryoperator= (const DtStateRepository &orig)
 assignment operator More...
 
virtual void setGlobalId (const DtGlobalObjectDesignator &id)
 Get/Set global identifier, or name. More...
 
virtual const
DtGlobalObjectDesignator
globalId () const
 
virtual unsigned int numberOfAttributeRecords () const
 
virtual void setAttributeRecords (const DtAttributeRecordSet &records)
 The following functions are related to the extendability part of DIS 7. More...
 
virtual void setAttributeRecords (const DtStandardVariableRecordPtrVector &records)
 Replace the attribute record set with the records in the given vector. More...
 
virtual const
DtAttributeRecordSet
attributeRecordSet () const
 Return the attribute record set. More...
 
virtual DtAttributeRecordSetattributeRecordSet ()
 Return the attribute record set. More...
 
virtual const
DtStandardVariableRecordPtrVector
attributeRecords () const
 Return the attribute records Any changes to the returned record(s) will modify the records in the recordSet. More...
 
virtual const
DtStandardVariableRecordPtrVector
attributeRecords (unsigned int recordType) const
 Return the attribute records of the given type (all records if type is 0) Any changes to the returned record(s) will modify the records in the recordSet. More...
 
virtual DtStandardVariableRecordattributeRecord (unsigned int recordType) const
 Return the (first) attribute record of the given type (first record if type is 0) Any changes to the returned record will modify the record in the recordSet. More...
 
virtual int removeAttributeRecord (unsigned int recordType, bool removeAll=true)
 Remove and discard the first record of the given record type (if there is one) or all them. More...
 
virtual
DtStandardVariableRecordPtrVector
getAttributeRecords (unsigned int recordType, DtStandardVariableRecordPtrVector &vec) const
 Get the attribute records of the given type (all if type is 0) Any changes to the returned record(s) will modify the records in the recordSet. More...
 
virtual
DtStandardVariableRecordPtrVector
getAttributeRecords (DtStandardVariableRecordPtrVector &vec) const
 Get the attribute records Any changes to the returned record(s) will modify the records in the recordSet. More...
 
virtual void addAttributeRecord (DtStandardVariableRecord *record)
 Add a clone of given record to the attribute record set. More...
 
virtual void addAttributeRecord (std::auto_ptr< DtStandardVariableRecord > record)
 Add the given record to the attribute record set. More...
 
virtual void clearAttributeRecords ()
 Clear all records. More...
 
virtual
DtStateRepositoryExtension
stateRepositoryExtension (DtString srExtName) const
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More...
 
virtual std::vector< DtStringstateRepositoryExtensionNames () const
 Returns a set of the registered state repository extension names. More...
 
virtual void setStateRepositoryExtensions (std::map< DtString, DtStateRepositoryExtension * > extensions)
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More...
 
virtual const std::map
< DtString,
DtStateRepositoryExtension * > 
stateRepositoryExtensions () const
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More...
 

Static Public Member Functions

static DtAggregateStateRepositorycreate ()
 
- Static Public Member Functions inherited from DtBaseEntityStateRepository
static void setDefaultDeadReckoner (DtDeadReckoner *val)
 Static variable that sets the default dead reckoner if none is chosen. More...
 
static void setDefaultSmoother (DtSmoother *val)
 Static variable that sets the default smoother if none is chosen. By default this is DtSmoother. More...
 
static void setDefaultRelativeDeadReckoner (DtDeadReckoner *val)
 Static variable that sets the default relative dead reckoner if none is chosen. More...
 
static void setDefaultRelativeSmoother (DtSmoother *val)
 Static variable that sets the default relative smoother if none is chosen. More...
 
- Static Public Member Functions inherited from DtStateRepository
static bool addStateRepositoryExtension (DtString srExtName, DtSrExtCreatorFnc fnc)
 The following functions are for extending state repositories through State Repository Extension classes. More...
 

Protected Member Functions

DtAggregateStateRepositoryself () const
 Cast off const-ness for trivial internal change. More...
 
- Protected Member Functions inherited from DtBaseEntityStateRepository
DtBaseEntityStateRepositoryself () const
 Cast off const-ness for trivial internal change. More...
 

Protected Attributes

DtForceType myForceID
 
DtAggregateState myAggregateState
 
DtAggregateFormation myFormation
 
DtCharacterSet myMarkingCharSet
 
DtString myMarkingText
 
DtVector32 myDimensions
 
DtGlobalObjectDesignatorList myEntities
 
DtGlobalObjectDesignatorList mySubAggs
 
int myNumberOfSilentAggregateTypes
 
DtSilentAggregateListmySilentAggregates
 
int myNumberOfSilentEntityTypes
 
DtSilentEntityListmySilentEntities
 
int myNumberOfVariableDatumRecords
 
DtVariableDatumRecordmyVariableDatumRecords
 
DtVariableDatumRecord myDumRec
 
- Protected Attributes inherited from DtBaseEntityStateRepository
DtClockmyClock
 Clock to be used for dead reckoning calculations – it is set to the same clock used by the exConn. More...
 
DtApproximatormyApproximator
 Holds what's currently being used as our approximator. More...
 
DtApproximatormyRelativeApproximator
 
DtDeadReckonermyDeadReckoner
 Holds what was most recently passed to useDeadReckoner. More...
 
DtDeadReckonermyRelativeDeadReckoner
 
DtSmoothermySmoother
 Holds what was most recently passed to useSmoother. More...
 
DtSmoothermyRelativeSmoother
 
DtVector myLocation
 spatial attributes More...
 
DtVector32 myVelocity
 
DtVector32 myAcceleration
 
DtTaitBryan myOrientation
 
DtVector32 myRotationalVelocity
 
DtDeadReckonTypes myAlgorithm
 
bool myFrozen
 
DtVector myRelativeLocation
 relativeSpatial attributes More...
 
DtVector32 myRelativeVelocity
 
DtVector32 myRelativeAcceleration
 
DtTaitBryan myRelativeOrientation
 
DtVector32 myRelativeRotationalVelocity
 
DtDeadReckonTypes myRelativeAlgorithm
 
bool myRelativeFrozen
 
DtGlobalObjectDesignator myHostGlobalId
 isPartOf attributes Never set myHostGlobalId outside of the mutator function setHostGlobalId() this will invalidate myHostGlobalIdSetFlag which is used to determine if myHostGlobalId is valid, when it contains a 0:0:0 entityID. More...
 
bool myHostGlobalIdSetFlag
 
DtNature myNature
 
DtPosition myPartPosition
 
DtStationName myStationName
 
DtU16 myStationNumber
 
DtVector myRelativePosition
 
DtFloat32 myRange
 
DtFloat32 myBearing
 
DtDisObjectManagermyObjectManager
 others More...
 
bool myAmAsSeenByRemote
 This flag is checked by the spatial attribute accessors and if it's false, calls computeSpatialFromRelativeSpatial() More...
 
DtVector myLastSetLocation
 place holder variables for spatial data. More...
 
DtVector32 myLastSetVelocity
 
DtVector32 myLastSetAcceleration
 
DtTaitBryan myLastSetOrientation
 
DtVector32 myLastSetRotationalVelocity
 
DtVector myLastSetRelativeLocation
 place holder variables for relative spatial data. More...
 
DtVector32 myLastSetRelativeVelocity
 
DtVector32 myLastSetRelativeAcceleration
 
DtTaitBryan myLastSetRelativeOrientation
 
DtVector32 myLastSetRelativeRotationalVelocity
 
DtDcm myBodyToGeoc
 
bool myBodyToGeocDirty
 
DtDcm myRelativeBodyToHost
 
bool myRelativeBodyToHostDirty
 
DtTimeStampType myTimeStampType
 
DtEntityIdentifier myEntityId
 
DtEntityType myEntityType
 
DtThresholder myThresholder
 
DtTime myTimeForSets
 

Additional Inherited Members

- Public Attributes inherited from DtStateRepository
DtGlobalObjectDesignator myGlobalId
 
DtAttributeRecordSet myAttributeRecords
 
DtStandardVariableRecordPtrVector myReturnedRecords
 
DtStateRepositoryExtensionMap myStateRepositoryExtensionMap
 
- Static Public Attributes inherited from DtStateRepository
static std::map< DtString,
DtSrExtCreatorFnc
theStateRepositoryExtensionCreatorMap
 
- Static Protected Attributes inherited from DtBaseEntityStateRepository
static DtDeadReckonertheDfltDeadReckoner
 Static defaults. More...
 
static DtSmoothertheDfltSmoother
 
static DtDeadReckonertheDfltRelativeDeadReckoner
 
static DtSmoothertheDfltRelativeSmoother
 

Detailed Description

A protocol independent representation of an aggregate.

Instances of DtAggregateStateRepository are used to maintain the state of an aggregate. It provides an interface which covers the various features which define the state of an aggregate.

Member Enumeration Documentation

anonymous enum

Aggregate state PDU marking is 31 bytes long.

Enumerator
AGGREGATE_SR_MARKING_TEXT_LENGTH 

Constructor & Destructor Documentation

DtAggregateStateRepository::DtAggregateStateRepository ( )

default constructor

virtual DtAggregateStateRepository::~DtAggregateStateRepository ( )
virtual

destructor

DtAggregateStateRepository::DtAggregateStateRepository ( const DtAggregateStateRepository orig)

copy constructor

Member Function Documentation

virtual const DtEntityIdentifier& DtAggregateStateRepository::aggregateID ( ) const
virtual
virtual DtAggregateState DtAggregateStateRepository::aggregateState ( ) const
virtual
virtual const DtEntityType& DtAggregateStateRepository::aggregateType ( ) const
virtual
virtual DtStateRepository* DtAggregateStateRepository::clone ( bool  copy = false) const
virtual

Return a copy/empty object of the same type as this.

Reimplemented from DtBaseEntityStateRepository.

static DtAggregateStateRepository* DtAggregateStateRepository::create ( )
static
virtual const DtVector32& DtAggregateStateRepository::dimensions ( ) const
virtual
const DtGlobalObjectDesignatorList& DtAggregateStateRepository::entities ( ) const

Return the list of published entities in the aggregate.

DtGlobalObjectDesignatorList* DtAggregateStateRepository::entities ( )
virtual DtForceType DtAggregateStateRepository::forceId ( ) const
virtual
virtual DtAggregateFormation DtAggregateStateRepository::formation ( ) const
virtual
virtual bool DtAggregateStateRepository::getEntityID ( int  index,
DtGlobalObjectDesignator entID 
) const
virtual
virtual void DtAggregateStateRepository::getMarkingText ( DtU8 copyTo) const
virtual
virtual bool DtAggregateStateRepository::getSilentAggregateList ( int  index,
DtSilentAggregateList aggList 
) const
virtual
virtual bool DtAggregateStateRepository::getSilentEntityList ( int  index,
DtSilentEntityList entList 
) const
virtual
virtual bool DtAggregateStateRepository::getSubaggregateID ( int  index,
DtGlobalObjectDesignator aggID 
) const
virtual
virtual bool DtAggregateStateRepository::getVariableDatumRecord ( int  index,
DtVariableDatumRecord rec 
) const
virtual
virtual DtCharacterSet DtAggregateStateRepository::markingCharacterSet ( ) const
virtual
virtual const char* DtAggregateStateRepository::markingText ( ) const
virtual
virtual int DtAggregateStateRepository::numberOfDatumRecords ( ) const
virtual

Get the number of variable datum records.

virtual int DtAggregateStateRepository::numberOfDIS_Entities ( ) const
virtual
virtual int DtAggregateStateRepository::numberOfDIS_Subaggregates ( ) const
virtual
virtual int DtAggregateStateRepository::numberOfSilentEntities ( ) const
virtual

Returns the number of silent entity list items.

virtual int DtAggregateStateRepository::numberOfSilentSubaggregates ( ) const
virtual
DtAggregateStateRepository& DtAggregateStateRepository::operator= ( const DtAggregateStateRepository orig)

assignment operator

virtual void DtAggregateStateRepository::printData ( ) const
virtual

Print the state data to the DtInfo Stream.

Reimplemented from DtBaseEntityStateRepository.

virtual void DtAggregateStateRepository::printDataToStream ( std::ostream &  stream) const
virtual

Prints the state data to the stream.

Reimplemented from DtStateRepository.

DtAggregateStateRepository* DtAggregateStateRepository::self ( ) const
protected

Cast off const-ness for trivial internal change.

Non-virtual since can't override on return type.

virtual void DtAggregateStateRepository::setAggregateID ( const DtEntityIdentifier id)
virtual

Set/Get the aggregate's identifier. Calls down to base class.

virtual void DtAggregateStateRepository::setAggregateState ( DtAggregateState  value)
virtual

Set/Get the aggregate state.

virtual void DtAggregateStateRepository::setAggregateType ( const DtEntityType type)
virtual

Set/Get the aggregate type. Calls down to base class.

virtual void DtAggregateStateRepository::setDimensions ( const DtVector32 dims)
virtual

Set/Get the dimensions.

virtual bool DtAggregateStateRepository::setEntityID ( int  index,
const DtGlobalObjectDesignator entID 
)
virtual

Set/Get a DIS entity ID.

Returns false if the index is invalid. Can be done through entities() instead.

virtual void DtAggregateStateRepository::setForceId ( DtForceType  force)
virtual

Set/Get the force type.

virtual void DtAggregateStateRepository::setFormation ( DtAggregateFormation  value)
virtual

Set/Get the formation.

virtual void DtAggregateStateRepository::setMarkingCharacterSet ( DtCharacterSet  value)
virtual

Set/Get marking character set.

virtual void DtAggregateStateRepository::setMarkingText ( DtU8 copyFrom)
virtual

Set/Get marking text.

virtual void DtAggregateStateRepository::setMarkingText ( const DtString text)
virtual
virtual bool DtAggregateStateRepository::setNumberOfDatumRecords ( int  newNumberOfRecords)
virtual

Set the number of variable datum records.

Returns false if the number of records is too large. This will erase the contents of existing datum records.

virtual bool DtAggregateStateRepository::setNumberOfDIS_Entities ( int  newNumberOfEntities)
virtual

Set/Get the number of DIS entities.

Set returns false if the requested number is too large. Changing this number will erase all previous data. Can be done through entities() instead.

virtual bool DtAggregateStateRepository::setNumberOfDIS_Subaggregates ( int  newNumberOfAggregates)
virtual

Set/Get the number of DIS sub-aggregates.

Set returns false if the requested number is too large. Changing this number will erase all previous data. Can be done through subAggregates() instead.

virtual bool DtAggregateStateRepository::setNumberOfSilentEntities ( int  newNumberOfEntities)
virtual

Set/Get the number of silent entities.

Set returns false if the requested number is too large. Changing this number will erase all previous data.

virtual bool DtAggregateStateRepository::setNumberOfSilentSubaggregates ( int  newNumberOfAggregates)
virtual

Set/Get the number of silent aggregates.

Set returns false if the requested number is too large. Changing this number will erase all previous data.

virtual bool DtAggregateStateRepository::setSilentAggregateList ( int  index,
const DtSilentAggregateList aggList 
)
virtual

Set/Get a silent aggregate list.

Returns false if the index is invalid.

virtual bool DtAggregateStateRepository::setSilentEntityList ( int  index,
const DtSilentEntityList entList 
)
virtual

Set/Get a silent entity list.

Returns false if the index is invalid.

virtual bool DtAggregateStateRepository::setSubaggregateID ( int  index,
const DtGlobalObjectDesignator aggID 
)
virtual

Set/Get a DIS sub-aggregate ID.

Returns false if the index is invalid. Can be done through subAggregates() instead.

virtual bool DtAggregateStateRepository::setVariableDatumRecord ( int  index,
const DtVariableDatumRecord rec 
)
virtual

Set/Get a variable datum record.

Returns false if the index is invalid.

DtGlobalObjectDesignatorList* DtAggregateStateRepository::subAggregates ( )

Return the list of published subaggregates in the aggregate.

const DtGlobalObjectDesignatorList& DtAggregateStateRepository::subAggregates ( ) const
virtual const DtVariableDatumRecord& DtAggregateStateRepository::variableDatumRecordConstRef ( int  index) const
virtual

Get a constant reference to a variable datum record.

virtual DtVariableDatumRecord& DtAggregateStateRepository::variableDatumRecordRef ( int  index)
virtual

Get a reference to a variable datum record.

Member Data Documentation

DtAggregateState DtAggregateStateRepository::myAggregateState
protected
DtVector32 DtAggregateStateRepository::myDimensions
protected
DtVariableDatumRecord DtAggregateStateRepository::myDumRec
protected
DtGlobalObjectDesignatorList DtAggregateStateRepository::myEntities
protected
DtForceType DtAggregateStateRepository::myForceID
protected
DtAggregateFormation DtAggregateStateRepository::myFormation
protected
DtCharacterSet DtAggregateStateRepository::myMarkingCharSet
protected
DtString DtAggregateStateRepository::myMarkingText
protected
int DtAggregateStateRepository::myNumberOfSilentAggregateTypes
protected
int DtAggregateStateRepository::myNumberOfSilentEntityTypes
protected
int DtAggregateStateRepository::myNumberOfVariableDatumRecords
protected
DtSilentAggregateList* DtAggregateStateRepository::mySilentAggregates
protected
DtSilentEntityList* DtAggregateStateRepository::mySilentEntities
protected
DtGlobalObjectDesignatorList DtAggregateStateRepository::mySubAggs
protected
DtVariableDatumRecord* DtAggregateStateRepository::myVariableDatumRecords
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)