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...
 
DtAggregateStateRepository & operator= (const DtAggregateStateRepository &orig)
 assignment operator More...
 
virtual DtStateRepository * clone (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 DtEntityIdentifier & aggregateID () 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 DtEntityType & aggregateType () 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 DtVector32 & dimensions () const
 
const
DtGlobalObjectDesignatorList & 
entities () const
 Return the list of published entities in the aggregate. More...
 
DtGlobalObjectDesignatorList * entities ()
 
DtGlobalObjectDesignatorList * subAggregates ()
 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 DtVariableDatumRecord & variableDatumRecordRef (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...
 
NETN Physical Entity Attribute modifiers and accessors.

Only supported in HLA Evolved.

virtual void setStatus (DtActiveStatusEnum status)
 Set Status. Status Indicates if this aggregate currently is being simulated or not. More...
 
virtual DtActiveStatusEnum status () const
 Get Status. More...
 
virtual void generateUniqueId ()
 Generate a random UUID for this object. This should only be called once. More...
 
virtual void setUniqueId (const DtVrlUuid &uniqueId)
 Set the Uuid for the object. More...
 
virtual const DtVrlUuid & uniqueId () const
 Get the Uuid for this object. More...
 
virtual void setSourceUnit (const DtVrlUuid &sourceUnit)
 Set the SourceUnit for this object. More...
 
virtual const DtVrlUuid & sourceUnit () const
 Get the SourceUnit for this object. More...
 
virtual void setCallsign (const std::wstring &callSign)
 Set the Callsign for this object. More...
 
virtual const std::wstring & callsign () const
 Get the Callsign for this object. More...
 
virtual void setActivity (const DtAggregateMissionEnum &activity)
 Set the Activity for this object. More...
 
virtual const
DtAggregateMissionEnum & 
activity () const
 Get the Activity for this object. More...
 
virtual void setEmbeddedUnitList (const std::vector< DtVrlUuid > &embeddedUnitList)
 Set the EmbeddedUnitList for this object. More...
 
virtual const std::vector
< DtVrlUuid > & 
embeddedUnitList () const
 Get the EmbeddedUnitList for this object. More...
 
virtual const std::string embeddedUnitListToString (std::string delimiter=", ") const
 Get vector-string representation of EmbeddedUnitList. More...
 
virtual void setSymbolId (const std::wstring &symbolIdentifier)
 Set the SymbolId for this object. More...
 
virtual const std::wstring & symbolId () const
 Get the SymbolId for this object. More...
 
virtual const DtPointTypeEnum & pointType () const
 Get the PointType enum value for Destination's PointVariantStruct discriminant. More...
 
virtual void setDestinationLocation (const DtVector &location)
 Set the Location vector alternative for Destination PointVariantStruct. More...
 
virtual const DtVector & destinationLocation () const
 Get the Location vector alternative for Destination PointVariantStruct. More...
 
virtual void setDestinationUuid (const DtVrlUuid &uuid)
 Set the UUID alternative for Destination PointVariantStruct. More...
 
virtual const DtVrlUuid & destinationUuid () const
 Get the UUID alternative for Destination PointVariantStruct. More...
 
virtual const DtPathTypeEnum & pathType () const
 Get the PathType enum value for Route's PathVariantStruct discriminant. More...
 
virtual void setRouteWaypoints (const std::vector< DtVector > &waypoints)
 Set the Waypoints vector alternative for Route's PathVariantStruct. More...
 
virtual const std::vector
< DtVector > & 
routeWaypoints () const
 Get the Waypoints vector alternative for Route PathVariantStruct. More...
 
virtual void setRouteUuid (const DtVrlUuid &uuid)
 Set the UUID alternative for Route PathVariantStruct. More...
 
virtual const DtVrlUuid & routeUuid () const
 Get the UUID alternative for Route PathVariantStruct. More...
 
virtual const std::string routeWaypointsToString (std::string delimiter=", ") const
 Get vector-string representation of Route Waypoints. More...
 
- Public Member Functions inherited from DtBaseEntityStateRepository
 DtBaseEntityStateRepository ()
 default constructor More...
 
virtual ~DtBaseEntityStateRepository ()
 destructor More...
 
 DtBaseEntityStateRepository (const DtBaseEntityStateRepository &orig)
 copy constructor More...
 
DtBaseEntityStateRepository & operator= (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 bool isAmAsSeenByRemote () const
 
virtual const DtDcm & bodyToGeoc (DtTime aTime) const
 Get the body to geocentric coordinate matrix. More...
 
virtual const DtDcm & bodyToGeoc () const
 Get the body to geocentric coordinate matrix. More...
 
virtual const DtDcm & relativeBodyToHost (DtTime aTime) const
 Get the body to host DCM. More...
 
virtual const DtDcm & relativeBodyToHost () const
 Get the body to host DCM. More...
 
virtual void setEntityId (const DtEntityIdentifier &id)
 Set the entity's identifier. More...
 
virtual const DtEntityIdentifier & entityId () const
 The entity's identifier. More...
 
virtual void setEntityType (const DtEntityType &type)
 Set the entity type. More...
 
virtual const DtEntityType & entityType () 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 DtDeadReckoner * usingDeadReckoner ()
 If the ESR is using a dead reckoner, returns it. Else returns NULL. More...
 
virtual DtDeadReckoner * usingRelativeDeadReckoner ()
 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 DtSmoother * usingSmoother ()
 If the ESR is using a smoother, returns it. Else returns NULL. More...
 
virtual DtSmoother * usingRelativeSmoother ()
 If the ESR is using a smoother, returns it. Else returns NULL. More...
 
virtual DtThresholder * thresholder ()
 Returns the SR's thresholder, which contains thresholds needed for encoding. More...
 
virtual const DtThresholder & thresholder () const
 Returns a const reference the SR's thresholder, which contains thresholds needed for encoding. More...
 
virtual DtClock * clock () 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...
 
bool isTransferredEntity () const
 Set to true if this entity has changed owners via ownership transfer. More...
 
void setIsTransferredEntity (bool isTransferred)
 Returns true if this entity has changed owners via ownership transfer. More...
 
DtBaseEntityStateRepository * hostEsr () 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 DtVector & location (DtTime aTime) const
 The location in geocentric world coordinates at aTime. More...
 
virtual const DtVector & location () const
 The location in geocentric world coordinates at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector & lastSetLocation () 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 DtVector32 & velocity (DtTime aTime) const
 The velocity in meters per second at aTime. More...
 
virtual const DtVector32 & velocity () const
 The velocity at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32 & lastSetVelocity () 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 DtVector32 & acceleration (DtTime aTime) const
 Return the acceleration at aTime. More...
 
virtual const DtVector32 & acceleration () const
 The acceleration at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32 & lastSetAcceleration () 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 DtTaitBryan & orientation (DtTime aTime) const
 The orientation at the passed time. More...
 
virtual const DtTaitBryan & orientation () const
 The orientation at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtTaitBryan & lastSetOrientation () 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 DtVector32 & rotationalVelocity (DtTime aTime) const
 The rotational velocity of an entity at aTime. More...
 
virtual const DtVector32 & rotationalVelocity () const
 The rotational velocity of an entity at the current simulation time, as set in clock()->simTime(). More...
 
virtual const DtVector32 & lastSetRotationalVelocity () 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 DtVector & relativeLocation (DtTime aTime) const
 The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at the given time. More...
 
virtual const DtVector & relativeLocation () const
 The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at simTime as set by clock()->simTime(). More...
 
virtual const DtVector & lastSetRelativeLocation () 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 DtVector32 & relativeVelocity (DtTime aTime) const
 The relative velocity of the entity with respect to the host at aTime. More...
 
virtual const DtVector32 & relativeVelocity () const
 The relative velocity of the entity with respect to the host at simTime. More...
 
virtual const DtVector32 & lastSetRelativeVelocity () 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 DtVector32 & relativeAcceleration (DtTime aTime) const
 The relativeAcceleration of the entity with respect to the host at aTime. More...
 
virtual const DtVector32 & relativeAcceleration () const
 The relativeAcceleration of the entity with respect to the host at simTime. More...
 
virtual const DtVector32 & lastSetRelativeAcceleration () 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 DtTaitBryan & relativeOrientation (DtTime aTime) const
 The relative orientation of the entity with respect to the host. More...
 
virtual const DtTaitBryan & relativeOrientation () const
 The relative orientation of the entity with respect to the host. More...
 
virtual const DtTaitBryan & lastSetRelativeOrientation () 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 DtVector32 & relativeRotationalVelocity (DtTime aTime) const
 The relative rotational velocity. More...
 
virtual const DtVector32 & relativeRotationalVelocity () const
 The relative rotational velocity. More...
 
virtual const DtVector32 & lastSetRelativeRotationalVelocity () 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 DtNature & nature () 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 DtPosition & partPosition () 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 DtStationName & stationName () 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 DtU16 & stationNumber () 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 DtVector & relativePosition () const
 The relative position on the host. More...
 
virtual void setRelativePosition (const DtVector &newVal)
 Set the relative position on the host. More...
 
virtual const DtFloat32 & range () const
 The range to the host. More...
 
virtual void setRange (const DtFloat32 newVal)
 Set the range to the host. More...
 
virtual const DtFloat32 & bearing () 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 DtApproximator * approximator () 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 DtApproximator * relativeApproximator () 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...
 
DtStateRepository & operator= (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 DtAttributeRecordSet & attributeRecordSet ()
 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 DtStandardVariableRecord * attributeRecord (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::unique_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< DtString > stateRepositoryExtensionNames () 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 DtAggregateStateRepository * create ()
 
- 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

DtAggregateStateRepository * self () const
 Cast off const-ness for trivial internal change. More...
 
- Protected Member Functions inherited from DtBaseEntityStateRepository
DtBaseEntityStateRepository * self () 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
 
DtSilentAggregateList * mySilentAggregates
 
int myNumberOfSilentEntityTypes
 
DtSilentEntityList * mySilentEntities
 
int myNumberOfVariableDatumRecords
 
DtVariableDatumRecord * myVariableDatumRecords
 
DtVariableDatumRecord myDumRec
 
bool myGeneratedUuid
 
DtVrlUuid myUuid
 
DtActiveStatusEnum myStatus
 
DtVrlUuid mySourceUnit
 
std::vector< DtVrlUuid > myEmbeddedUnitList
 
std::wstring myCallsign
 
DtAggregateMissionEnum myActivity
 
std::wstring mySymbolId
 
DtPointVariantStruct myDestination
 
DtPathVariantStruct myRoute
 
- Protected Attributes inherited from DtBaseEntityStateRepository
DtClock * myClock
 Clock to be used for dead reckoning calculations – it is set to the same clock used by the exConn. More...
 
DtApproximator * myApproximator
 Holds what's currently being used as our approximator. More...
 
DtApproximator * myRelativeApproximator
 
DtDeadReckoner * myDeadReckoner
 Holds what was most recently passed to useDeadReckoner. More...
 
DtDeadReckoner * myRelativeDeadReckoner
 
DtSmoother * mySmoother
 Holds what was most recently passed to useSmoother. More...
 
DtSmoother * myRelativeSmoother
 
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
 
DtDisObjectManager * myObjectManager
 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
 
bool myIsTransferredEntity
 Tracks whether this entity is a transferred entity (DIS 7 PDU Status bit 0) More...
 
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 DtDeadReckoner * theDfltDeadReckoner
 Static defaults. More...
 
static DtSmoother * theDfltSmoother
 
static DtDeadReckoner * theDfltRelativeDeadReckoner
 
static DtSmoother * theDfltRelativeSmoother
 

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 DtAggregateMissionEnum& DtAggregateStateRepository::activity ( ) const
virtual

Get the Activity for this object.

virtual const DtEntityIdentifier& DtAggregateStateRepository::aggregateID ( ) const
virtual
virtual DtAggregateState DtAggregateStateRepository::aggregateState ( ) const
virtual
virtual const DtEntityType& DtAggregateStateRepository::aggregateType ( ) const
virtual
virtual const std::wstring& DtAggregateStateRepository::callsign ( ) const
virtual

Get the Callsign for this object.

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 DtVector& DtAggregateStateRepository::destinationLocation ( ) const
virtual

Get the Location vector alternative for Destination PointVariantStruct.

virtual const DtVrlUuid& DtAggregateStateRepository::destinationUuid ( ) const
virtual

Get the UUID alternative for Destination PointVariantStruct.

virtual const DtVector32& DtAggregateStateRepository::dimensions ( ) const
virtual
virtual const std::vector<DtVrlUuid>& DtAggregateStateRepository::embeddedUnitList ( ) const
virtual

Get the EmbeddedUnitList for this object.

virtual const std::string DtAggregateStateRepository::embeddedUnitListToString ( std::string  delimiter = ", ") const
virtual

Get vector-string representation of EmbeddedUnitList.

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 void DtAggregateStateRepository::generateUniqueId ( )
virtual

Generate a random UUID for this object. This should only be called once.

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 const DtPathTypeEnum& DtAggregateStateRepository::pathType ( ) const
virtual

Get the PathType enum value for Route's PathVariantStruct discriminant.

virtual const DtPointTypeEnum& DtAggregateStateRepository::pointType ( ) const
virtual

Get the PointType enum value for Destination's PointVariantStruct discriminant.

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.

virtual const DtVrlUuid& DtAggregateStateRepository::routeUuid ( ) const
virtual

Get the UUID alternative for Route PathVariantStruct.

virtual const std::vector<DtVector>& DtAggregateStateRepository::routeWaypoints ( ) const
virtual

Get the Waypoints vector alternative for Route PathVariantStruct.

virtual const std::string DtAggregateStateRepository::routeWaypointsToString ( std::string  delimiter = ", ") const
virtual

Get vector-string representation of Route Waypoints.

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::setActivity ( const DtAggregateMissionEnum &  activity)
virtual

Set the Activity for this object.

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::setCallsign ( const std::wstring &  callSign)
virtual

Set the Callsign for this object.

virtual void DtAggregateStateRepository::setDestinationLocation ( const DtVector &  location)
virtual

Set the Location vector alternative for Destination PointVariantStruct.

Also sets PointType to Location.

virtual void DtAggregateStateRepository::setDestinationUuid ( const DtVrlUuid &  uuid)
virtual

Set the UUID alternative for Destination PointVariantStruct.

Also sets PointType to UUID.

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

Set/Get the dimensions.

virtual void DtAggregateStateRepository::setEmbeddedUnitList ( const std::vector< DtVrlUuid > &  embeddedUnitList)
virtual

Set the EmbeddedUnitList for this object.

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 void DtAggregateStateRepository::setRouteUuid ( const DtVrlUuid &  uuid)
virtual

Set the UUID alternative for Route PathVariantStruct.

Also sets PathType to UUID.

virtual void DtAggregateStateRepository::setRouteWaypoints ( const std::vector< DtVector > &  waypoints)
virtual

Set the Waypoints vector alternative for Route's PathVariantStruct.

Also sets PathType to Waypoints.

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 void DtAggregateStateRepository::setSourceUnit ( const DtVrlUuid &  sourceUnit)
virtual

Set the SourceUnit for this object.

virtual void DtAggregateStateRepository::setStatus ( DtActiveStatusEnum  status)
virtual

Set Status. Status Indicates if this aggregate currently is being simulated or not.

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 void DtAggregateStateRepository::setSymbolId ( const std::wstring &  symbolIdentifier)
virtual

Set the SymbolId for this object.

virtual void DtAggregateStateRepository::setUniqueId ( const DtVrlUuid &  uniqueId)
virtual

Set the Uuid for the object.

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

Set/Get a variable datum record.

Returns false if the index is invalid.

virtual const DtVrlUuid& DtAggregateStateRepository::sourceUnit ( ) const
virtual

Get the SourceUnit for this object.

virtual DtActiveStatusEnum DtAggregateStateRepository::status ( ) const
virtual

Get Status.

DtGlobalObjectDesignatorList* DtAggregateStateRepository::subAggregates ( )

Return the list of published subaggregates in the aggregate.

const DtGlobalObjectDesignatorList& DtAggregateStateRepository::subAggregates ( ) const
virtual const std::wstring& DtAggregateStateRepository::symbolId ( ) const
virtual

Get the SymbolId for this object.

virtual const DtVrlUuid& DtAggregateStateRepository::uniqueId ( ) const
virtual

Get the Uuid for this object.

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

DtAggregateMissionEnum DtAggregateStateRepository::myActivity
protected
DtAggregateState DtAggregateStateRepository::myAggregateState
protected
std::wstring DtAggregateStateRepository::myCallsign
protected
DtPointVariantStruct DtAggregateStateRepository::myDestination
protected
DtVector32 DtAggregateStateRepository::myDimensions
protected
DtVariableDatumRecord DtAggregateStateRepository::myDumRec
protected
std::vector<DtVrlUuid> DtAggregateStateRepository::myEmbeddedUnitList
protected
DtGlobalObjectDesignatorList DtAggregateStateRepository::myEntities
protected
DtForceType DtAggregateStateRepository::myForceID
protected
DtAggregateFormation DtAggregateStateRepository::myFormation
protected
bool DtAggregateStateRepository::myGeneratedUuid
protected
DtCharacterSet DtAggregateStateRepository::myMarkingCharSet
protected
DtString DtAggregateStateRepository::myMarkingText
protected
int DtAggregateStateRepository::myNumberOfSilentAggregateTypes
protected
int DtAggregateStateRepository::myNumberOfSilentEntityTypes
protected
int DtAggregateStateRepository::myNumberOfVariableDatumRecords
protected
DtPathVariantStruct DtAggregateStateRepository::myRoute
protected
DtSilentAggregateList* DtAggregateStateRepository::mySilentAggregates
protected
DtSilentEntityList* DtAggregateStateRepository::mySilentEntities
protected
DtVrlUuid DtAggregateStateRepository::mySourceUnit
protected
DtActiveStatusEnum DtAggregateStateRepository::myStatus
protected
DtGlobalObjectDesignatorList DtAggregateStateRepository::mySubAggs
protected
std::wstring DtAggregateStateRepository::mySymbolId
protected
DtVrlUuid DtAggregateStateRepository::myUuid
protected
DtVariableDatumRecord* DtAggregateStateRepository::myVariableDatumRecords
protected

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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)