![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtBaseEntityStateRepository are used to maintain basic state information needed by all kinds of entities. More...
Inheritance diagram for DtBaseEntityStateRepository:
Collaboration diagram for DtBaseEntityStateRepository:Public Member Functions | |
| DtBaseEntityStateRepository () | |
| default constructor | |
| virtual | ~DtBaseEntityStateRepository () |
| destructor | |
| DtBaseEntityStateRepository (const DtBaseEntityStateRepository &orig) | |
| copy constructor | |
| DtBaseEntityStateRepository & | operator= (const DtBaseEntityStateRepository &orig) |
| assignment operator | |
| virtual DtStateRepository * | clone (bool copy=false) const |
| Return a copy/empty object of the same type as this. | |
| void | setTimeStampType (DtTimeStampType type) |
| Set/Get flag indicating whether we're using absolute timestamps for dead reckoning. | |
| DtTimeStampType | timeStampType () const |
| virtual void | setHlaObjectManager (DtHlaObjectManager *mgr) |
| Set the HLA/DIS object manager. | |
| virtual void | setAmAsSeenByRemote (bool val) |
| Mark this state repository as an AsSeenByRemote copy. | |
| virtual const DtDcm & | bodyToGeoc (DtTime aTime) const |
| Get the body to geocentric coordinate matrix. | |
| virtual const DtDcm & | bodyToGeoc () const |
| Get the body to geocentric coordinate matrix. | |
| virtual const DtDcm & | relativeBodyToHost (DtTime aTime) const |
| Get the body to host DCM. | |
| virtual const DtDcm & | relativeBodyToHost () const |
| Get the body to host DCM. | |
| virtual void | setEntityId (const DtEntityIdentifier &id) |
| Set the entity's identifier. | |
| virtual const DtEntityIdentifier & | entityId () const |
| The entity's identifier. | |
| virtual void | setEntityType (const DtEntityType &type) |
| Set the entity type. | |
| virtual const DtEntityType & | entityType () const |
| The entity type. | |
| virtual void | setFederateId (const DtFederateId &id) |
| Set the federate ID (part of entity ID). | |
| virtual const DtFederateId & | federateId () const |
| The federate ID (part of entity ID). | |
| virtual void | useDeadReckoner (DtDeadReckoner *dr) |
| Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes. | |
| virtual void | useRelativeDeadReckoner (DtDeadReckoner *dr) |
| Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes. | |
| virtual void | useDeadReckoner (bool yesNo=true) |
| Create and use a new (private) dead-reckoner as our approximator. | |
| virtual void | useRelativeDeadReckoner (bool yesNo=true) |
| Create and use a new (private) dead-reckoner as our approximator. | |
| virtual DtDeadReckoner * | usingDeadReckoner () |
| If the ESR is using a dead reckoner, returns it. Else returns NULL. | |
| virtual DtDeadReckoner * | usingRelativeDeadReckoner () |
| If the ESR is using a dead reckoner, returns it. Else returns NULL. | |
| virtual void | useSmoother (DtSmoother *sm) |
| Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes. | |
| virtual void | useRelativeSmoother (DtSmoother *sm) |
| Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes. | |
| virtual void | useSmoother (bool yesNo=true) |
| Create and use a new (private) smoother as our approximator. | |
| virtual void | useRelativeSmoother (bool yesNo=true) |
| Create and use a new (private) smoother as our approximator. | |
| virtual DtSmoother * | usingSmoother () |
| If the ESR is using a smoother, returns it. Else returns NULL. | |
| virtual DtSmoother * | usingRelativeSmoother () |
| If the ESR is using a smoother, returns it. Else returns NULL. | |
| virtual DtThresholder * | thresholder () |
| Returns the SR's thresholder, which contains thresholds needed for encoding. | |
| virtual const DtThresholder & | thresholder () const |
| Returns a const reference the SR's thresholder, which contains thresholds needed for encoding. | |
| virtual DtClock * | clock () const |
| The clock being used for dead reckoning calculations. | |
| virtual void | setClock (DtClock *clock) |
| Sets the clock being used for dead reckoning calculations. | |
| virtual void | printData () const |
| Print the state data to the DtInfo stream. | |
| void | printDataToStream (std::ostream &str) const |
| Prints the state data to the specified stream. | |
| 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. | |
| DtBaseEntityStateRepository * | hostEsr () const |
| Returns null if there isn't a host. | |
Spatial Attributes | |
TSPI (Time, Space, and Position Information). Velocity, acceleration, and location in Geocentric World Coordinates. Orientation is represented as a DtTaitBryan which is a set of three Euler Angles in Geocentric World Coordinates. RotationalVelocity is in the Units Body Coordinates. These attributes are mandatory fields for DIS and the RPR FOM, however some fields may not be available through some FOM Mappers. Also, various spatial attributes may be affected if the entity is attached to another entity via the IsPartOf attributes.
| |
| virtual void | setLocation (const DtVector &location, DtTime aTime) |
| Set the location of the center of mass in geocentric world coordinates at aTime. | |
| 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(). | |
| virtual const DtVector & | location (DtTime aTime) const |
| The location in geocentric world coordinates at aTime. | |
| virtual const DtVector & | location () const |
| The location in geocentric world coordinates at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector & | lastSetLocation () const |
| Return the value last passed to setLocation, regardless of whether we have an approximator. | |
| virtual void | setVelocity (const DtVector32 &Velocity, DtTime aTime) |
| Set the velocity in meters per second at aTime. | |
| virtual void | setVelocity (const DtVector32 &Velocity) |
| The velocity in meters per second at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector32 & | velocity (DtTime aTime) const |
| The velocity in meters per second at aTime. | |
| virtual const DtVector32 & | velocity () const |
| The velocity at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector32 & | lastSetVelocity () const |
| Return the value last passed to setVelocity, regardless of whether we have an approximator. | |
| virtual void | setAcceleration (const DtVector32 &Acceleration, DtTime aTime) |
| Sets the acceleration at aTime. | |
| virtual void | setAcceleration (const DtVector32 &Acceleration) |
| Sets the acceleration at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector32 & | acceleration (DtTime aTime) const |
| Return the acceleration at aTime. | |
| virtual const DtVector32 & | acceleration () const |
| The acceleration at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector32 & | lastSetAcceleration () const |
| The value last passed to setAcceleration, regardless of whether we have an approximator. | |
| virtual void | setOrientation (const DtTaitBryan &orient, DtTime aTime) |
| Set the orientation at aTime. | |
| virtual void | setOrientation (const DtTaitBryan &orient) |
| Set the orientation at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtTaitBryan & | orientation (DtTime aTime) const |
| The orientation at the passed time. | |
| virtual const DtTaitBryan & | orientation () const |
| The orientation at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtTaitBryan & | lastSetOrientation () const |
| The value last passed to setOrientation, regardless of whether we have an approximator. | |
| virtual void | setRotationalVelocity (const DtVector32 &BodyRates, DtTime aTime) |
| Set the rotational velocity of an entity at aTime. | |
| virtual void | setRotationalVelocity (const DtVector32 &BodyRates) |
| Set the rotational velocity of an entity at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector32 & | rotationalVelocity (DtTime aTime) const |
| The rotational velocity of an entity at aTime. | |
| virtual const DtVector32 & | rotationalVelocity () const |
| The rotational velocity of an entity at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector32 & | lastSetRotationalVelocity () const |
| Return the value last passed to setRotationalVelocity, regardless of whether we have an approximator. | |
| virtual void | setFrozen (bool on) |
| Set entity frozen state. True indicates frozen. | |
| virtual bool | frozen () const |
| The frozen state of an entity. | |
| virtual void | setAlgorithm (DtDeadReckonTypes alg) |
| Set the dead reckoning algorithm. | |
| virtual DtDeadReckonTypes | algorithm () const |
| The dead reckoning algorithm. | |
Relative Spatial Attributes | |
Relative TSPI (Time, Space, and Position Information). These attributes are only used if this entity is part of another entity. At a minimum the hostGlobalId() attribute must be set to point to the entity which is hosting this entity. When this entity is part of another entity both the relative spatial attributes as well as the "normal" spatial attributes must be filled in. RelativeVelocity, RelativeAcceleration, and RelativeLocation in body coordinates, relative to a host entity. RelativeOrientataion is represented as a DtTaitBryan which is a set of three Euler angles in geocentric world coordinates. RelativeRotationalVelocity is in the units body coordinates and is the same as the Spatial attribute rotationalVelocity. These attributes are optional attributes for both DIS and the RPR FOM. | |
| virtual void | setRelativeLocation (const DtVector &location, DtTime aTime) |
| Set the location of the center of mass in world coordinates at the given time. | |
| 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(). | |
| virtual const DtVector & | relativeLocation (DtTime aTime) const |
| The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at the given time. | |
| virtual const DtVector & | relativeLocation () const |
| The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at simTime as set by clock()->simTime(). | |
| virtual const DtVector & | lastSetRelativeLocation () const |
| Return the value last passed to setLocation, regardless of whether we have an approximator. | |
| 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. | |
| virtual void | setRelativeVelocity (const DtVector32 &Velocity) |
| Set the relative velocity of the entity in meters per second with respect to the host at simTime. | |
| virtual const DtVector32 & | relativeVelocity (DtTime aTime) const |
| The relative velocity of the entity with respect to the host at aTime. | |
| virtual const DtVector32 & | relativeVelocity () const |
| The relative velocity of the entity with respect to the host at simTime. | |
| virtual const DtVector32 & | lastSetRelativeVelocity () const |
| Return the value last passed to setVelocity, regardless of whether we have an approximator. | |
| virtual void | setRelativeAcceleration (const DtVector32 &Acceleration, DtTime aTime) |
| Set the relative acceleration of the entity with respect to the host at aTime. | |
| virtual void | setRelativeAcceleration (const DtVector32 &Acceleration) |
| Set the relative acceleration of the entity with respect to the host at simTime. | |
| virtual const DtVector32 & | relativeAcceleration (DtTime aTime) const |
| The relativeAcceleration of the entity with respect to the host at aTime. | |
| virtual const DtVector32 & | relativeAcceleration () const |
| The relativeAcceleration of the entity with respect to the host at simTime. | |
| virtual const DtVector32 & | lastSetRelativeAcceleration () const |
| Return the value last passed to setAcceleration, regardless of whether we have an approximator. | |
| virtual void | setRelativeOrientation (const DtTaitBryan &orient, DtTime aTime) |
| Set the relative orientation of the entity with respect to the host. | |
| virtual void | setRelativeOrientation (const DtTaitBryan &orient) |
| Set the relative orientation of the entity with respect to the host. | |
| virtual const DtTaitBryan & | relativeOrientation (DtTime aTime) const |
| The relative orientation of the entity with respect to the host. | |
| virtual const DtTaitBryan & | relativeOrientation () const |
| The relative orientation of the entity with respect to the host. | |
| virtual const DtTaitBryan & | lastSetRelativeOrientation () const |
| Return the value last passed to setOrientation, regardless of whether we have an approximator. | |
| virtual void | setRelativeRotationalVelocity (const DtVector32 &BodyRates, DtTime aTime) |
| Set the relative rotational velocity. | |
| virtual void | setRelativeRotationalVelocity (const DtVector32 &BodyRates) |
| Set the relative rotational velocity. | |
| virtual const DtVector32 & | relativeRotationalVelocity (DtTime aTime) const |
| The relative rotational velocity. | |
| virtual const DtVector32 & | relativeRotationalVelocity () const |
| The relative rotational velocity. | |
| virtual const DtVector32 & | lastSetRelativeRotationalVelocity () const |
| Return the value last passed value to setRotationalVelocity, regardless of whether we have an approximator. | |
| virtual void | setRelativeFrozen (bool onOff) |
| Set relative frozen. | |
| virtual bool | relativeFrozen () const |
| Returns if the entity is frozen. | |
| virtual void | setRelativeAlgorithm (DtDeadReckonTypes alg) |
| Set the dead reckoning algorithm. | |
| virtual DtDeadReckonTypes | relativeAlgorithm () const |
| The dead reckoning algorithm. | |
Is Part Of Attributes | |
These attributes are used to indicate that this entity is attached to another entity (the host entity). The host entity is identified through a DtGlobalDesignator set in the setHostGlobalId() function. Once this function is set, the relative spatial attributes need to filled in. Entities can be attached to other entities in DIS and in RPR FOM 2 draft 17, but not in RPR FOM 1.0. Please see the RPR FOM GRIM, or IEEE-1278.1a for more information about the mechanics of entity attachment. These attributes are optional fields for DIS and the RPR FOM. | |
| virtual const DtGlobalObjectDesignator & | hostGlobalId () const |
| Returns the globalID of the attached host. | |
| virtual void | setHostGlobalId (const DtGlobalObjectDesignator &id) |
| Sets the globalId of the attached host. | |
| virtual void | clearHostGlobalId () |
| Unattaches this entity from its host. | |
| virtual const DtNature & | nature () const |
| The nature of this entity to the host. | |
| virtual void | setNature (const DtNature newVal) |
| Sets the nature of this entity to the host. | |
| virtual const DtPosition & | partPosition () const |
| The Part Position this entity is preforming on the host. | |
| virtual void | setPartPosition (const DtPosition newVal) |
| Sets the Part Position this entity is preforming on the host. | |
| virtual const DtStationName & | stationName () const |
| The station name this entity is assigned to on the host. | |
| virtual void | setStationName (const DtStationName newVal) |
| Sets the station name this entity is assigned to on the host. | |
| virtual const DtU16 & | stationNumber () const |
| The station number this entity is assigned to on the host. | |
| virtual void | setStationNumber (const DtU16 newVal) |
| Sets the station number this entity is assigned to on the host. | |
| virtual const DtVector & | relativePosition () const |
| The relative position on the host. | |
| virtual void | setRelativePosition (const DtVector &newVal) |
| Set the relative position on the host. | |
| virtual const DtFloat32 & | range () const |
| The range to the host. | |
| virtual void | setRange (const DtFloat32 newVal) |
| Set the range to the host. | |
| virtual const DtFloat32 & | bearing () const |
| The bearing to host. | |
| virtual void | setBearing (const DtFloat32 newVal) |
| Set the bearing to host. | |
| virtual void | setApproximator (DtApproximator *approx) |
| Get and set the approximator used to provide approximated position and orientation information for the entity. | |
| virtual DtApproximator * | approximator () const |
| Get and set the approximator used to provide approximated position and orientation information for the entity. | |
| virtual void | setRelativeApproximator (DtApproximator *approx) |
| Get and set the approximator used to provide approximated position and orientation information for the entity. | |
| virtual DtApproximator * | relativeApproximator () const |
| Get and set the approximator used to provide approximated position and orientation information for the entity. | |
Public Member Functions inherited from DtStateRepository | |
| DtStateRepository () | |
| default constructor | |
| DtStateRepository (const DtStateRepository &orig) | |
| copy constructor | |
| virtual | ~DtStateRepository () |
| destructor | |
| DtStateRepository & | operator= (const DtStateRepository &orig) |
| assignment operator | |
| virtual void | setGlobalId (const DtString &id) |
| Get/Set global identifier, or name. | |
| virtual const DtString & | globalId () const |
| virtual void | setLocalId (const DtObjectId &id) |
| Get/Set local identifier, or handle. | |
| virtual const DtObjectId & | localId () const |
| virtual bool | publishesAttribute (const RTI::AttributeHandle &val) const |
| Returns true if the attribute is published. | |
| virtual void | setAttributeByHandle (const RTI::AttributeHandle &attrHdl, const char *attrValue, unsigned size) |
| Set the attribute with the given handle. | |
| virtual const char * | getAttributeByHandle (const RTI::AttributeHandle &attrHdl, unsigned &size) const |
| Get a pointer to attribute value for the attribute with the given handle. | |
| virtual void | setAttributeByName (const DtString &attrName, const char *attrValue, unsigned size, DtHlaObject *hlaObj) |
| Set the attribute with the given name. Note that in order to do this you must provide a DtHlaObject. | |
| virtual const char * | getAttributeByName (const DtString &attrName, unsigned &size, DtHlaObject *hlaObj) const |
| Get a pointer to attribute value for the attribute with the given name. | |
| virtual const char * | getAttributeByHandleIfUpdated (const RTI::AttributeHandle &attrHdl, unsigned &size) const |
| Get a pointer to attribute value for the attribute with the given handle, but only if it's been updated since the last time we read it. | |
Static Public Member Functions | |
| static void | setDefaultDeadReckoner (DtDeadReckoner *val) |
| Static variable that sets the default dead reckoner if none is chosen. | |
| static void | setDefaultSmoother (DtSmoother *val) |
| Static variable that sets the default smoother if none is chosen. By default this is DtSmoother. | |
| static void | setDefaultRelativeDeadReckoner (DtDeadReckoner *val) |
| Static variable that sets the default relative dead reckoner if none is chosen. | |
| static void | setDefaultRelativeSmoother (DtSmoother *val) |
| Static variable that sets the default relative smoother if none is chosen. | |
Protected Member Functions | |
| DtBaseEntityStateRepository * | self () const |
| Cast off const-ness for trivial internal change. | |
Static Protected Attributes | |
| static DtDeadReckoner * | theDfltDeadReckoner |
| Static defaults. | |
| static DtSmoother * | theDfltSmoother |
| static DtDeadReckoner * | theDfltRelativeDeadReckoner |
| static DtSmoother * | theDfltRelativeSmoother |
Friends | |
| class | DtBaseEntityDecoder |
| Used by DtBaseEntityDecoder to support absolute DR in HLA. | |
Additional Inherited Members | |
Public Attributes inherited from DtStateRepository | |
| DtString | myGlobalId |
| DtObjectId | myLocalId |
| std::map< RTI::AttributeHandle, DtGenericAttributeInfo * > | myAttributesByHandle |
| Attributes by handle. | |
Instances of DtBaseEntityStateRepository are used to maintain basic state information needed by all kinds of entities.
| DtBaseEntityStateRepository::DtBaseEntityStateRepository | ( | ) |
default constructor
|
virtual |
destructor
| DtBaseEntityStateRepository::DtBaseEntityStateRepository | ( | const DtBaseEntityStateRepository & | orig | ) |
copy constructor
|
virtual |
Return the acceleration at aTime.
|
virtual |
The acceleration at the current simulation time, as set in clock()->simTime().
|
virtual |
The dead reckoning algorithm.
|
virtual |
Get and set the approximator used to provide approximated position and orientation information for the entity.
If your approximator is a DtDeadReckoner, use useDeadReckoner instead of setApproximator. If it's a smoother, use useSmoother. The approximator is cloned by this class for memory management purposes. Caller is responsible for deleting the original approximator.
|
virtual |
The bearing to host.
Get the body to geocentric coordinate matrix.
|
virtual |
Get the body to geocentric coordinate matrix.
|
virtual |
Unattaches this entity from its host.
This function should be used instead of setHostGlobalId with an empty ID.
|
virtual |
The clock being used for dead reckoning calculations.
This is usually configured and updated via the DtExerciseConn instance.
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented from DtStateRepository.
Reimplemented in DtEntityStateRepository, DtAggregateStateRepository, and MyEntityStateRep.
| void DtBaseEntityStateRepository::computeSpatialFromRelativeSpatial | ( | ) |
If this unit has a host, update the esr to reflect the current state of the host.
Function is no-op if hostEsr() returns null.
|
inlinevirtual |
The entity's identifier.
References myEntityId.
|
inlinevirtual |
The entity type.
References myEntityType.
|
inlinevirtual |
The federate ID (part of entity ID).
References DtEntityIdentifier::host(), myEntityId, myFederateId, DtSimulationAddress::setApplicationId(), DtSimulationAddress::setSiteId(), and DtEntityIdentifier::site().
|
virtual |
The frozen state of an entity.
Reimplemented in DtEntityStateRepository.
| DtBaseEntityStateRepository* DtBaseEntityStateRepository::hostEsr | ( | ) | const |
Returns null if there isn't a host.
This func inspects the hostGlobalId member and returns the esr of that unit.
|
virtual |
Returns the globalID of the attached host.
|
inlinevirtual |
The value last passed to setAcceleration, regardless of whether we have an approximator.
References myLastSetAcceleration.
|
inlinevirtual |
Return the value last passed to setLocation, regardless of whether we have an approximator.
References myLastSetLocation.
|
inlinevirtual |
The value last passed to setOrientation, regardless of whether we have an approximator.
References myLastSetOrientation.
|
inlinevirtual |
Return the value last passed to setAcceleration, regardless of whether we have an approximator.
References myLastSetRelativeAcceleration.
|
inlinevirtual |
Return the value last passed to setLocation, regardless of whether we have an approximator.
References myLastSetRelativeLocation.
|
inlinevirtual |
Return the value last passed to setOrientation, regardless of whether we have an approximator.
References myLastSetRelativeOrientation.
|
inlinevirtual |
Return the value last passed value to setRotationalVelocity, regardless of whether we have an approximator.
relative Spatial
References myLastSetRelativeRotationalVelocity.
|
inlinevirtual |
Return the value last passed to setVelocity, regardless of whether we have an approximator.
References myLastSetRelativeVelocity.
|
inlinevirtual |
Return the value last passed to setRotationalVelocity, regardless of whether we have an approximator.
spatial
References myLastSetRotationalVelocity.
|
inlinevirtual |
Return the value last passed to setVelocity, regardless of whether we have an approximator.
References myLastSetVelocity.
The location in geocentric world coordinates at aTime.
The returned location will be computed using the relative location if hostGlobalId() is set. For more information see the Embark example.
|
virtual |
The location in geocentric world coordinates at the current simulation time, as set in clock()->simTime().
The returned location will be computed using the relative location if hostGlobalId() is set. For more information see the Embark example.
|
virtual |
The nature of this entity to the host.
| DtBaseEntityStateRepository& DtBaseEntityStateRepository::operator= | ( | const DtBaseEntityStateRepository & | orig | ) |
assignment operator
|
virtual |
The orientation at the passed time.
|
virtual |
The orientation at the current simulation time, as set in clock()->simTime().
|
virtual |
The Part Position this entity is preforming on the host.
|
virtual |
Print the state data to the DtInfo stream.
Users should prefer to use printDataToStream() instead.
Reimplemented from DtStateRepository.
Reimplemented in DtEntityStateRepository, DtAggregateStateRepository, and MyEntityStateRep.
|
virtual |
Prints the state data to the specified stream.
Reimplemented from DtStateRepository.
Reimplemented in DtEntityStateRepository, and DtAggregateStateRepository.
|
virtual |
The range to the host.
|
virtual |
The relativeAcceleration of the entity with respect to the host at aTime.
|
virtual |
The relativeAcceleration of the entity with respect to the host at simTime.
|
virtual |
The dead reckoning algorithm.
|
virtual |
Get and set the approximator used to provide approximated position and orientation information for the entity.
If your approximator is a DtDeadReckoner, use useDeadReckoner instead of setApproximator. If it's a smoother, use useSmoother. The approximator is cloned by this class for memory management purposes. Caller is responsible for deleting the original approximator.
Get the body to host DCM.
|
virtual |
Get the body to host DCM.
|
virtual |
Returns if the entity is frozen.
The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at the given time.
|
virtual |
The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at simTime as set by clock()->simTime().
|
virtual |
The relative orientation of the entity with respect to the host.
|
virtual |
The relative orientation of the entity with respect to the host.
|
virtual |
The relative position on the host.
|
virtual |
The relative rotational velocity.
|
virtual |
The relative rotational velocity.
|
virtual |
The relative velocity of the entity with respect to the host at aTime.
|
virtual |
The relative velocity of the entity with respect to the host at simTime.
|
virtual |
The rotational velocity of an entity at aTime.
|
virtual |
The rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
|
protected |
Cast off const-ness for trivial internal change.
Non-virtual since can't override on return type.
Reimplemented in DtEntityStateRepository, and DtAggregateStateRepository.
|
virtual |
Sets the acceleration at aTime.
|
virtual |
Sets the acceleration at the current simulation time, as set in clock()->simTime().
|
virtual |
Set the dead reckoning algorithm.
|
inlinevirtual |
Mark this state repository as an AsSeenByRemote copy.
Publishers maintain two instances of a state repository for every object published. This attribute is set by the publisher to mark this state repository instance as the asSeenByRemote instance. Developers should not set this. The function is used to compute dead reckoned values.
References myAmAsSeenByRemote.
|
virtual |
Get and set the approximator used to provide approximated position and orientation information for the entity.
If your approximator is a DtDeadReckoner, use useDeadReckoner instead of setApproximator. If it's a smoother, use useSmoother. The approximator is cloned by this class for memory management purposes. Caller is responsible for deleting the original approximator.
|
virtual |
Set the bearing to host.
|
virtual |
Sets the clock being used for dead reckoning calculations.
This is usually configured and updated via the DtExerciseConn instance.
Reimplemented in DtEntityStateRepository.
|
static |
Static variable that sets the default dead reckoner if none is chosen.
By default this is DtDeadReckoner
|
static |
Static variable that sets the default relative dead reckoner if none is chosen.
By default this is DtDeadReckoner
|
static |
Static variable that sets the default relative smoother if none is chosen.
By default this is DtSmoother
|
static |
Static variable that sets the default smoother if none is chosen. By default this is DtSmoother.
|
inlinevirtual |
|
inlinevirtual |
Set the entity type.
References myEntityType.
|
inlinevirtual |
Set the federate ID (part of entity ID).
References myEntityId, DtEntityIdentifier::setHost(), and DtEntityIdentifier::setSite().
|
virtual |
Set entity frozen state. True indicates frozen.
Reimplemented in DtEntityStateRepository.
|
virtual |
Set the HLA/DIS object manager.
This gets called in two places. If the ent is local it gets called in the DtEntityPublisher's constructor. If it's remote it gets called in the DtRelflectedEntity's constructor. Entities moving relative to other ents must know the other ents location etc. They can get that info from the other ents stateRep which can be found in the ObjectManager lists.
|
virtual |
Sets the globalId of the attached host.
This function should only be used to attach this entity to another entity, or change which entity it is attached to. If you wish to unattach this entity from its current host, you need to call clearHostGlobalId(). It is possible to attach to a host of ID "0:0:0" in DIS.
|
virtual |
Set the location of the center of mass in geocentric world coordinates at aTime.
|
virtual |
Set the location of the center of mass in geocentric world coordinates at current simulation time, as set in clock()->simTime().
|
virtual |
Sets the nature of this entity to the host.
|
virtual |
Set the orientation at aTime.
|
virtual |
Set the orientation at the current simulation time, as set in clock()->simTime().
|
virtual |
Sets the Part Position this entity is preforming on the host.
|
virtual |
Set the range to the host.
|
virtual |
Set the relative acceleration of the entity with respect to the host at aTime.
|
virtual |
Set the relative acceleration of the entity with respect to the host at simTime.
|
virtual |
Set the dead reckoning algorithm.
|
virtual |
Get and set the approximator used to provide approximated position and orientation information for the entity.
If your approximator is a DtDeadReckoner, use useDeadReckoner instead of setApproximator. If it's a smoother, use useSmoother. The approximator is cloned by this class for memory management purposes. Caller is responsible for deleting the original approximator.
|
virtual |
Set relative frozen.
|
virtual |
Set the location of the center of mass in world coordinates at the given time.
|
virtual |
Set the location of the center of mass in world coordinates at the simTime as set by clock()->simTime().
|
virtual |
Set the relative orientation of the entity with respect to the host.
|
virtual |
Set the relative orientation of the entity with respect to the host.
|
virtual |
Set the relative position on the host.
|
virtual |
Set the relative rotational velocity.
|
virtual |
Set the relative rotational velocity.
|
virtual |
Set the relative velocity of the entity in meters per second with respect to the host at aTime.
|
virtual |
Set the relative velocity of the entity in meters per second with respect to the host at simTime.
|
virtual |
Set the rotational velocity of an entity at aTime.
|
virtual |
Set the rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
|
virtual |
Sets the station name this entity is assigned to on the host.
|
virtual |
Sets the station number this entity is assigned to on the host.
|
virtual |
|
inline |
Set/Get flag indicating whether we're using absolute timestamps for dead reckoning.
This flag will be set to DtAbsolute by the decoders only if incoming state messages indicate that the sender is using absolute time stamps, AND our local exercise connection indicates that we are using absolute timestamping.
References myTimeStampType.
|
virtual |
Set the velocity in meters per second at aTime.
|
virtual |
The velocity in meters per second at the current simulation time, as set in clock()->simTime().
|
virtual |
The station name this entity is assigned to on the host.
|
virtual |
The station number this entity is assigned to on the host.
|
inlinevirtual |
Returns the SR's thresholder, which contains thresholds needed for encoding.
References myThresholder.
|
inlinevirtual |
Returns a const reference the SR's thresholder, which contains thresholds needed for encoding.
References myThresholder.
|
virtual |
|
inline |
References myTimeStampType.
|
virtual |
Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes.
The dead reckoner is cloned by this class for memory management purposes. Caller is responsible for deleting the original dead reckoner.
|
virtual |
Create and use a new (private) dead-reckoner as our approximator.
|
virtual |
Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes.
The dead reckoner is cloned by this class for memory management purposes. Caller is responsible for deleting the original dead reckoner.
|
virtual |
Create and use a new (private) dead-reckoner as our approximator.
|
virtual |
Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes.
The smoother is cloned by this class for memory management purposes. Caller is responsible for deleting the original smoother .
|
virtual |
Create and use a new (private) smoother as our approximator.
|
virtual |
Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes.
The smoother is cloned by this class for memory management purposes. Caller is responsible for deleting the original smoother.
|
virtual |
Create and use a new (private) smoother as our approximator.
|
virtual |
If the ESR is using a dead reckoner, returns it. Else returns NULL.
|
virtual |
If the ESR is using a dead reckoner, returns it. Else returns NULL.
|
virtual |
If the ESR is using a smoother, returns it. Else returns NULL.
|
virtual |
If the ESR is using a smoother, returns it. Else returns NULL.
|
virtual |
The velocity in meters per second at aTime.
|
virtual |
The velocity at the current simulation time, as set in clock()->simTime().
|
friend |
Used by DtBaseEntityDecoder to support absolute DR in HLA.
|
protected |
|
protected |
|
protected |
This flag is checked by the spatial attribute accessors and if it's false, calls computeSpatialFromRelativeSpatial()
Referenced by setAmAsSeenByRemote().
|
protected |
Holds what's currently being used as our approximator.
|
protected |
|
protected |
|
protected |
|
protected |
Clock to be used for dead reckoning calculations – it is set to the same clock used by the exConn.
|
protected |
Holds what was most recently passed to useDeadReckoner.
|
protected |
Referenced by entityId(), federateId(), setEntityId(), and setFederateId().
|
protected |
Referenced by entityType(), and setEntityType().
|
mutableprotected |
Set by call to federateId.
Referenced by federateId().
|
protected |
|
protected |
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.
|
protected |
|
protected |
Referenced by lastSetAcceleration().
|
protected |
place holder variables for spatial data.
Needed since the accessors compute world coords for carried units.
Referenced by lastSetLocation().
|
protected |
Referenced by lastSetOrientation().
|
protected |
Referenced by lastSetRelativeAcceleration().
|
protected |
place holder variables for relative spatial data.
Not sure if needed but for consistency with spatial data, here ya go.
Referenced by lastSetRelativeLocation().
|
protected |
Referenced by lastSetRelativeOrientation().
|
protected |
Referenced by lastSetRelativeRotationalVelocity().
|
protected |
Referenced by lastSetRelativeVelocity().
|
protected |
Referenced by lastSetRotationalVelocity().
|
protected |
Referenced by lastSetVelocity().
|
protected |
spatial attributes
|
protected |
|
protected |
others
created and delete somewhere else;
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
relativeSpatial attributes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Holds what was most recently passed to useSmoother.
|
protected |
|
protected |
|
protected |
Referenced by thresholder().
|
protected |
|
protected |
Referenced by setTimeStampType(), and timeStampType().
|
protected |
|
staticprotected |
Static defaults.
|
staticprotected |
|
staticprotected |
|
staticprotected |