![]() |
VR-Link API Documentation for HLA 1516
|
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 | setApproximator (DtApproximator *approx) |
| Get and set the approximator used to provide approximated position and orientation information for the entity. | |
| virtual DtApproximator * | approximator () const |
| virtual void | setRelativeApproximator (DtApproximator *approx) |
| virtual DtApproximator * | relativeApproximator () const |
| 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 DtVector &Velocity, DtTime aTime) |
| Set the velocity in meters per second at aTime. | |
| virtual void | setVelocity (const DtVector &Velocity) |
| The velocity in meters per second at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector & | velocity (DtTime aTime) const |
| The velocity in meters per second at aTime. | |
| virtual const DtVector & | velocity () const |
| The velocity at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector & | lastSetVelocity () const |
| Return the value last passed to setVelocity, regardless of whether we have an approximator. | |
| virtual void | setAcceleration (const DtVector &Acceleration, DtTime aTime) |
| Sets the acceleration at aTime. | |
| virtual void | setAcceleration (const DtVector &Acceleration) |
| Sets the acceleration at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector & | acceleration (DtTime aTime) const |
| Return the acceleration at aTime. | |
| virtual const DtVector & | acceleration () const |
| The acceleration at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector & | 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 DtVector &BodyRates, DtTime aTime) |
| Set the rotational velocity of an entity at aTime. | |
| virtual void | setRotationalVelocity (const DtVector &BodyRates) |
| Set the rotational velocity of an entity at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector & | rotationalVelocity (DtTime aTime) const |
| The rotational velocity of an entity at aTime. | |
| virtual const DtVector & | rotationalVelocity () const |
| The rotational velocity of an entity at the current simulation time, as set in clock()->simTime(). | |
| virtual const DtVector & | 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 DtVector &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 DtVector &Velocity) |
| Set the relative velocity of the entity in meters per second with respect to the host at simTime. | |
| virtual const DtVector & | relativeVelocity (DtTime aTime) const |
| The relative velocity of the entity with respect to the host at aTime. | |
| virtual const DtVector & | relativeVelocity () const |
| The relative velocity of the entity with respect to the host at simTime. | |
| virtual const DtVector & | lastSetRelativeVelocity () const |
| Return the value last passed to setVelocity, regardless of whether we have an approximator. | |
| virtual void | setRelativeAcceleration (const DtVector &Acceleration, DtTime aTime) |
| Set the relative acceleration of the entity with respect to the host at aTime. | |
| virtual void | setRelativeAcceleration (const DtVector &Acceleration) |
| Set the relative acceleration of the entity with respect to the host at simTime. | |
| virtual const DtVector & | relativeAcceleration (DtTime aTime) const |
| The relativeAcceleration of the entity with respect to the host at aTime. | |
| virtual const DtVector & | relativeAcceleration () const |
| The relativeAcceleration of the entity with respect to the host at simTime. | |
| virtual const DtVector & | 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 DtVector &BodyRates, DtTime aTime) |
| Set the relative rotational velocity. | |
| virtual void | setRelativeRotationalVelocity (const DtVector &BodyRates) |
| Set the relative rotational velocity. | |
| virtual const DtVector & | relativeRotationalVelocity (DtTime aTime) const |
| The relative rotational velocity. | |
| virtual const DtVector & | relativeRotationalVelocity () const |
| The relative rotational velocity. | |
| virtual const DtVector & | 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. | |
Protected Member Functions | |
| DtBaseEntityStateRepository * | self () const |
| Cast off const-ness for trivial internal change. | |
Protected Attributes | |
| DtClock * | myClock |
| Clock to be used for dead reckoning calculations -- it is set to the same clock used by the exConn. | |
| DtApproximator * | myApproximator |
| Holds what's currently being used as our approximator. | |
| DtApproximator * | myRelativeApproximator |
| DtDeadReckoner * | myDeadReckoner |
| Holds what was most recently passed to useDeadReckoner. | |
| DtDeadReckoner * | myRelativeDeadReckoner |
| DtSmoother * | mySmoother |
| Holds what was most recently passed to useSmoother. | |
| DtSmoother * | myRelativeSmoother |
| DtDeadReckoner * | myDfltDeadReckoner |
| Created and deleted by this ESR if needed. | |
| DtSmoother * | myDfltSmoother |
| DtDeadReckoner * | myDfltRelativeDeadReckoner |
| DtSmoother * | myDfltRelativeSmoother |
| DtVector | myLocation |
| spatial attributes | |
| DtVector | myVelocity |
| DtVector | myAcceleration |
| DtTaitBryan | myOrientation |
| DtVector | myRotationalVelocity |
| DtDeadReckonTypes | myAlgorithm |
| bool | myFrozen |
| DtVector | myRelativeLocation |
| relativeSpatial attributes | |
| DtVector | myRelativeVelocity |
| DtVector | myRelativeAcceleration |
| DtTaitBryan | myRelativeOrientation |
| DtVector | 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. | |
| bool | myHostGlobalIdSetFlag |
| DtNature | myNature |
| DtPosition | myPartPosition |
| DtStationName | myStationName |
| DtU16 | myStationNumber |
| DtVector | myRelativePosition |
| DtFloat32 | myRange |
| DtFloat32 | myBearing |
| DtHlaObjectManager * | myObjectManager |
| others | |
| bool | myAmAsSeenByRemote |
| This flag is checked by the spatial attribute accessors and if it's false, calls computeSpatialFromRelativeSpatial() | |
| DtVector | myLastSetLocation |
| place holder variables for spatial data. | |
| DtVector | myLastSetVelocity |
| DtVector | myLastSetAcceleration |
| DtTaitBryan | myLastSetOrientation |
| DtVector | myLastSetRotationalVelocity |
| DtVector | myLastSetRelativeLocation |
| place holder variables for relative spatial data. | |
| DtVector | myLastSetRelativeVelocity |
| DtVector | myLastSetRelativeAcceleration |
| DtTaitBryan | myLastSetRelativeOrientation |
| DtVector | myLastSetRelativeRotationalVelocity |
| DtDcm | myBodyToGeoc |
| bool | myBodyToGeocDirty |
| DtDcm | myRelativeBodyToHost |
| bool | myRelativeBodyToHostDirty |
| DtTimeStampType | myTimeStampType |
| DtEntityIdentifier | myEntityId |
| DtFederateId | myFederateId |
| Set by call to federateId. | |
| DtEntityType | myEntityType |
| DtThresholder | myThresholder |
| DtTime | myTimeForSets |
Friends | |
| class | DtBaseEntityDecoder |
| Used by DtBaseEntityDecoder to support absolute DR in HLA. | |
Instances of DtBaseEntityStateRepository are used to maintain basic state information needed by all kinds of entities.
default constructor
| virtual DtBaseEntityStateRepository::~DtBaseEntityStateRepository | ( | ) | [virtual] |
destructor
| DtBaseEntityStateRepository::DtBaseEntityStateRepository | ( | const DtBaseEntityStateRepository & | orig | ) |
copy constructor
| virtual const DtVector& DtBaseEntityStateRepository::acceleration | ( | DtTime | aTime | ) | const [virtual] |
Return the acceleration at aTime.
| virtual const DtVector& DtBaseEntityStateRepository::acceleration | ( | ) | const [virtual] |
The acceleration at the current simulation time, as set in clock()->simTime().
| virtual DtDeadReckonTypes DtBaseEntityStateRepository::algorithm | ( | ) | const [virtual] |
The dead reckoning algorithm.
| virtual DtApproximator* DtBaseEntityStateRepository::approximator | ( | ) | const [virtual] |
| virtual const DtFloat32& DtBaseEntityStateRepository::bearing | ( | ) | const [virtual] |
The bearing to host.
| virtual const DtDcm& DtBaseEntityStateRepository::bodyToGeoc | ( | DtTime | aTime | ) | const [virtual] |
Get the body to geocentric coordinate matrix.
| virtual const DtDcm& DtBaseEntityStateRepository::bodyToGeoc | ( | ) | const [virtual] |
Get the body to geocentric coordinate matrix.
| virtual void DtBaseEntityStateRepository::clearHostGlobalId | ( | ) | [virtual] |
Unattaches this entity from its host.
This function should be used instead of setHostGlobalId with an empty ID.
| virtual DtClock* DtBaseEntityStateRepository::clock | ( | ) | const [virtual] |
The clock being used for dead reckoning calculations.
This is usually configured and updated via the DtExerciseConn instance.
| virtual DtStateRepository* DtBaseEntityStateRepository::clone | ( | bool | copy = false | ) | const [virtual] |
Return a copy/empty object of the same type as this.
Implements DtStateRepository.
Reimplemented in DtAggregateStateRepository, DtEntityStateRepository, and MyEntityStateRep.
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.
| const DtEntityIdentifier & DtBaseEntityStateRepository::entityId | ( | ) | const [inline, virtual] |
The entity's identifier.
References myEntityId.
| const DtEntityType & DtBaseEntityStateRepository::entityType | ( | ) | const [inline, virtual] |
The entity type.
References myEntityType.
| const DtFederateId & DtBaseEntityStateRepository::federateId | ( | ) | const [inline, virtual] |
The federate ID (part of entity ID).
References DtEntityIdentifier::host(), myEntityId, myFederateId, DtSimulationAddress::setApplicationId(), DtSimulationAddress::setSiteId(), and DtEntityIdentifier::site().
| virtual bool DtBaseEntityStateRepository::frozen | ( | ) | const [virtual] |
The frozen state of an entity.
Reimplemented in DtEntityStateRepository.
Returns null if there isn't a host.
This func inspects the hostGlobalId member and returns the esr of that unit.
| virtual const DtGlobalObjectDesignator& DtBaseEntityStateRepository::hostGlobalId | ( | ) | const [virtual] |
Returns the globalID of the attached host.
| const DtVector & DtBaseEntityStateRepository::lastSetAcceleration | ( | ) | const [inline, virtual] |
The value last passed to setAcceleration, regardless of whether we have an approximator.
References myLastSetAcceleration.
| const DtVector & DtBaseEntityStateRepository::lastSetLocation | ( | ) | const [inline, virtual] |
Return the value last passed to setLocation, regardless of whether we have an approximator.
References myLastSetLocation.
| const DtTaitBryan & DtBaseEntityStateRepository::lastSetOrientation | ( | ) | const [inline, virtual] |
The value last passed to setOrientation, regardless of whether we have an approximator.
References myLastSetOrientation.
| const DtVector & DtBaseEntityStateRepository::lastSetRelativeAcceleration | ( | ) | const [inline, virtual] |
Return the value last passed to setAcceleration, regardless of whether we have an approximator.
References myLastSetRelativeAcceleration.
| const DtVector & DtBaseEntityStateRepository::lastSetRelativeLocation | ( | ) | const [inline, virtual] |
Return the value last passed to setLocation, regardless of whether we have an approximator.
References myLastSetRelativeLocation.
| const DtTaitBryan & DtBaseEntityStateRepository::lastSetRelativeOrientation | ( | ) | const [inline, virtual] |
Return the value last passed to setOrientation, regardless of whether we have an approximator.
References myLastSetRelativeOrientation.
| const DtVector & DtBaseEntityStateRepository::lastSetRelativeRotationalVelocity | ( | ) | const [inline, virtual] |
Return the value last passed value to setRotationalVelocity, regardless of whether we have an approximator.
relative Spatial
References myLastSetRelativeRotationalVelocity.
| const DtVector & DtBaseEntityStateRepository::lastSetRelativeVelocity | ( | ) | const [inline, virtual] |
Return the value last passed to setVelocity, regardless of whether we have an approximator.
References myLastSetRelativeVelocity.
| const DtVector & DtBaseEntityStateRepository::lastSetRotationalVelocity | ( | ) | const [inline, virtual] |
Return the value last passed to setRotationalVelocity, regardless of whether we have an approximator.
spatial
References myLastSetRotationalVelocity.
| const DtVector & DtBaseEntityStateRepository::lastSetVelocity | ( | ) | const [inline, virtual] |
Return the value last passed to setVelocity, regardless of whether we have an approximator.
References myLastSetVelocity.
| virtual const DtVector& DtBaseEntityStateRepository::location | ( | DtTime | aTime | ) | const [virtual] |
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 const DtVector& DtBaseEntityStateRepository::location | ( | ) | const [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 const DtNature& DtBaseEntityStateRepository::nature | ( | ) | const [virtual] |
The nature of this entity to the host.
| DtBaseEntityStateRepository& DtBaseEntityStateRepository::operator= | ( | const DtBaseEntityStateRepository & | orig | ) |
assignment operator
| virtual const DtTaitBryan& DtBaseEntityStateRepository::orientation | ( | DtTime | aTime | ) | const [virtual] |
The orientation at the passed time.
| virtual const DtTaitBryan& DtBaseEntityStateRepository::orientation | ( | ) | const [virtual] |
The orientation at the current simulation time, as set in clock()->simTime().
| virtual const DtPosition& DtBaseEntityStateRepository::partPosition | ( | ) | const [virtual] |
The Part Position this entity is preforming on the host.
| virtual void DtBaseEntityStateRepository::printData | ( | ) | const [virtual] |
Print the state data to the DtInfo stream.
Users should prefer to use printDataToStream() instead.
Implements DtStateRepository.
Reimplemented in DtEntityStateRepository, DtAggregateStateRepository, and MyEntityStateRep.
| void DtBaseEntityStateRepository::printDataToStream | ( | std::ostream & | str | ) | const [virtual] |
Prints the state data to the specified stream.
Reimplemented from DtStateRepository.
Reimplemented in DtEntityStateRepository, and DtAggregateStateRepository.
| virtual const DtFloat32& DtBaseEntityStateRepository::range | ( | ) | const [virtual] |
The range to the host.
| virtual const DtVector& DtBaseEntityStateRepository::relativeAcceleration | ( | DtTime | aTime | ) | const [virtual] |
The relativeAcceleration of the entity with respect to the host at aTime.
| virtual const DtVector& DtBaseEntityStateRepository::relativeAcceleration | ( | ) | const [virtual] |
The relativeAcceleration of the entity with respect to the host at simTime.
| virtual DtDeadReckonTypes DtBaseEntityStateRepository::relativeAlgorithm | ( | ) | const [virtual] |
The dead reckoning algorithm.
| virtual DtApproximator* DtBaseEntityStateRepository::relativeApproximator | ( | ) | const [virtual] |
| virtual const DtDcm& DtBaseEntityStateRepository::relativeBodyToHost | ( | DtTime | aTime | ) | const [virtual] |
Get the body to host DCM.
| virtual const DtDcm& DtBaseEntityStateRepository::relativeBodyToHost | ( | ) | const [virtual] |
Get the body to host DCM.
| virtual bool DtBaseEntityStateRepository::relativeFrozen | ( | ) | const [virtual] |
Returns if the entity is frozen.
| virtual const DtVector& DtBaseEntityStateRepository::relativeLocation | ( | DtTime | aTime | ) | const [virtual] |
The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at the given time.
| virtual const DtVector& DtBaseEntityStateRepository::relativeLocation | ( | ) | const [virtual] |
The relativeLocation of the entity with respect to the hostGlobalId() or "Host" at simTime as set by clock()->simTime().
| virtual const DtTaitBryan& DtBaseEntityStateRepository::relativeOrientation | ( | DtTime | aTime | ) | const [virtual] |
The relative orientation of the entity with respect to the host.
| virtual const DtTaitBryan& DtBaseEntityStateRepository::relativeOrientation | ( | ) | const [virtual] |
The relative orientation of the entity with respect to the host.
| virtual const DtVector& DtBaseEntityStateRepository::relativePosition | ( | ) | const [virtual] |
The relative position on the host.
| virtual const DtVector& DtBaseEntityStateRepository::relativeRotationalVelocity | ( | DtTime | aTime | ) | const [virtual] |
The relative rotational velocity.
| virtual const DtVector& DtBaseEntityStateRepository::relativeRotationalVelocity | ( | ) | const [virtual] |
The relative rotational velocity.
| virtual const DtVector& DtBaseEntityStateRepository::relativeVelocity | ( | DtTime | aTime | ) | const [virtual] |
The relative velocity of the entity with respect to the host at aTime.
| virtual const DtVector& DtBaseEntityStateRepository::relativeVelocity | ( | ) | const [virtual] |
The relative velocity of the entity with respect to the host at simTime.
| virtual const DtVector& DtBaseEntityStateRepository::rotationalVelocity | ( | DtTime | aTime | ) | const [virtual] |
The rotational velocity of an entity at aTime.
| virtual const DtVector& DtBaseEntityStateRepository::rotationalVelocity | ( | ) | const [virtual] |
The rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
| DtBaseEntityStateRepository* DtBaseEntityStateRepository::self | ( | ) | const [protected] |
Cast off const-ness for trivial internal change.
Non-virtual since can't override on return type.
Reimplemented in DtEntityStateRepository, and DtAggregateStateRepository.
| virtual void DtBaseEntityStateRepository::setAcceleration | ( | const DtVector & | Acceleration, |
| DtTime | aTime | ||
| ) | [virtual] |
Sets the acceleration at aTime.
| virtual void DtBaseEntityStateRepository::setAcceleration | ( | const DtVector & | Acceleration | ) | [virtual] |
Sets the acceleration at the current simulation time, as set in clock()->simTime().
| virtual void DtBaseEntityStateRepository::setAlgorithm | ( | DtDeadReckonTypes | alg | ) | [virtual] |
Set the dead reckoning algorithm.
| void DtBaseEntityStateRepository::setAmAsSeenByRemote | ( | bool | val | ) | [inline, virtual] |
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 void DtBaseEntityStateRepository::setApproximator | ( | DtApproximator * | approx | ) | [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. Caller of setApproximator has the responsibility to delete approx after the StateRep no longer needs it.
| virtual void DtBaseEntityStateRepository::setBearing | ( | const DtFloat32 | newVal | ) | [virtual] |
Set the bearing to host.
| virtual void DtBaseEntityStateRepository::setClock | ( | DtClock * | clock | ) | [virtual] |
Sets the clock being used for dead reckoning calculations.
This is usually configured and updated via the DtExerciseConn instance.
Reimplemented in DtEntityStateRepository.
| void DtBaseEntityStateRepository::setEntityId | ( | const DtEntityIdentifier & | id | ) | [inline, virtual] |
Set the entity's identifier.
References myEntityId.
| void DtBaseEntityStateRepository::setEntityType | ( | const DtEntityType & | type | ) | [inline, virtual] |
Set the entity type.
References myEntityType.
| void DtBaseEntityStateRepository::setFederateId | ( | const DtFederateId & | id | ) | [inline, virtual] |
Set the federate ID (part of entity ID).
References myEntityId, DtEntityIdentifier::setHost(), and DtEntityIdentifier::setSite().
| virtual void DtBaseEntityStateRepository::setFrozen | ( | bool | on | ) | [virtual] |
Set entity frozen state. True indicates frozen.
Reimplemented in DtEntityStateRepository.
| virtual void DtBaseEntityStateRepository::setHlaObjectManager | ( | DtHlaObjectManager * | mgr | ) | [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 void DtBaseEntityStateRepository::setHostGlobalId | ( | const DtGlobalObjectDesignator & | id | ) | [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 void DtBaseEntityStateRepository::setLocation | ( | const DtVector & | location, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the location of the center of mass in geocentric world coordinates at aTime.
| virtual void DtBaseEntityStateRepository::setLocation | ( | const DtVector & | location | ) | [virtual] |
Set the location of the center of mass in geocentric world coordinates at current simulation time, as set in clock()->simTime().
| virtual void DtBaseEntityStateRepository::setNature | ( | const DtNature | newVal | ) | [virtual] |
Sets the nature of this entity to the host.
| virtual void DtBaseEntityStateRepository::setOrientation | ( | const DtTaitBryan & | orient, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the orientation at aTime.
| virtual void DtBaseEntityStateRepository::setOrientation | ( | const DtTaitBryan & | orient | ) | [virtual] |
Set the orientation at the current simulation time, as set in clock()->simTime().
| virtual void DtBaseEntityStateRepository::setPartPosition | ( | const DtPosition | newVal | ) | [virtual] |
Sets the Part Position this entity is preforming on the host.
| virtual void DtBaseEntityStateRepository::setRange | ( | const DtFloat32 | newVal | ) | [virtual] |
Set the range to the host.
| virtual void DtBaseEntityStateRepository::setRelativeAcceleration | ( | const DtVector & | Acceleration, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the relative acceleration of the entity with respect to the host at aTime.
| virtual void DtBaseEntityStateRepository::setRelativeAcceleration | ( | const DtVector & | Acceleration | ) | [virtual] |
Set the relative acceleration of the entity with respect to the host at simTime.
| virtual void DtBaseEntityStateRepository::setRelativeAlgorithm | ( | DtDeadReckonTypes | alg | ) | [virtual] |
Set the dead reckoning algorithm.
| virtual void DtBaseEntityStateRepository::setRelativeApproximator | ( | DtApproximator * | approx | ) | [virtual] |
| virtual void DtBaseEntityStateRepository::setRelativeFrozen | ( | bool | onOff | ) | [virtual] |
Set relative frozen.
| virtual void DtBaseEntityStateRepository::setRelativeLocation | ( | const DtVector & | location, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the location of the center of mass in world coordinates at the given time.
| virtual void DtBaseEntityStateRepository::setRelativeLocation | ( | const DtVector & | location | ) | [virtual] |
Set the location of the center of mass in world coordinates at the simTime as set by clock()->simTime().
| virtual void DtBaseEntityStateRepository::setRelativeOrientation | ( | const DtTaitBryan & | orient, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the relative orientation of the entity with respect to the host.
| virtual void DtBaseEntityStateRepository::setRelativeOrientation | ( | const DtTaitBryan & | orient | ) | [virtual] |
Set the relative orientation of the entity with respect to the host.
| virtual void DtBaseEntityStateRepository::setRelativePosition | ( | const DtVector & | newVal | ) | [virtual] |
Set the relative position on the host.
| virtual void DtBaseEntityStateRepository::setRelativeRotationalVelocity | ( | const DtVector & | BodyRates, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the relative rotational velocity.
| virtual void DtBaseEntityStateRepository::setRelativeRotationalVelocity | ( | const DtVector & | BodyRates | ) | [virtual] |
Set the relative rotational velocity.
| virtual void DtBaseEntityStateRepository::setRelativeVelocity | ( | const DtVector & | Velocity, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the relative velocity of the entity in meters per second with respect to the host at aTime.
| virtual void DtBaseEntityStateRepository::setRelativeVelocity | ( | const DtVector & | Velocity | ) | [virtual] |
Set the relative velocity of the entity in meters per second with respect to the host at simTime.
| virtual void DtBaseEntityStateRepository::setRotationalVelocity | ( | const DtVector & | BodyRates, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the rotational velocity of an entity at aTime.
| virtual void DtBaseEntityStateRepository::setRotationalVelocity | ( | const DtVector & | BodyRates | ) | [virtual] |
Set the rotational velocity of an entity at the current simulation time, as set in clock()->simTime().
| virtual void DtBaseEntityStateRepository::setStationName | ( | const DtStationName | newVal | ) | [virtual] |
Sets the station name this entity is assigned to on the host.
| virtual void DtBaseEntityStateRepository::setStationNumber | ( | const DtU16 | newVal | ) | [virtual] |
Sets the station number this entity is assigned to on the host.
| virtual void DtBaseEntityStateRepository::setTimeForSets | ( | DtTime | time | ) | [virtual] |
| void DtBaseEntityStateRepository::setTimeStampType | ( | DtTimeStampType | type | ) | [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 void DtBaseEntityStateRepository::setVelocity | ( | const DtVector & | Velocity, |
| DtTime | aTime | ||
| ) | [virtual] |
Set the velocity in meters per second at aTime.
| virtual void DtBaseEntityStateRepository::setVelocity | ( | const DtVector & | Velocity | ) | [virtual] |
The velocity in meters per second at the current simulation time, as set in clock()->simTime().
| virtual const DtStationName& DtBaseEntityStateRepository::stationName | ( | ) | const [virtual] |
The station name this entity is assigned to on the host.
| virtual const DtU16& DtBaseEntityStateRepository::stationNumber | ( | ) | const [virtual] |
The station number this entity is assigned to on the host.
| DtThresholder * DtBaseEntityStateRepository::thresholder | ( | ) | [inline, virtual] |
Returns the SR's thresholder, which contains thresholds needed for encoding.
References myThresholder.
| const DtThresholder & DtBaseEntityStateRepository::thresholder | ( | ) | const [inline, virtual] |
Returns a const reference the SR's thresholder, which contains thresholds needed for encoding.
References myThresholder.
| virtual DtTime DtBaseEntityStateRepository::timeForSets | ( | ) | const [virtual] |
| DtTimeStampType DtBaseEntityStateRepository::timeStampType | ( | ) | const [inline] |
References myTimeStampType.
| virtual void DtBaseEntityStateRepository::useDeadReckoner | ( | DtDeadReckoner * | dr | ) | [virtual] |
Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes.
Caller is responsible for deleting dr, but only after the StateRep no longer needs it.
| virtual void DtBaseEntityStateRepository::useDeadReckoner | ( | bool | yesNo = true | ) | [virtual] |
Create and use a new (private) dead-reckoner as our approximator.
| virtual void DtBaseEntityStateRepository::useRelativeDeadReckoner | ( | DtDeadReckoner * | dr | ) | [virtual] |
Tells the DtBaseEntity to use dr as its DtApproximator, and to notify it when DR algorithm changes.
Caller is responsible for deleting dr, but only after the StateRep no longer needs it.
| virtual void DtBaseEntityStateRepository::useRelativeDeadReckoner | ( | bool | yesNo = true | ) | [virtual] |
Create and use a new (private) dead-reckoner as our approximator.
| virtual void DtBaseEntityStateRepository::useRelativeSmoother | ( | DtSmoother * | sm | ) | [virtual] |
Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes.
Caller is responsible for deleting sm, but only after the StateRep no longer needs it.
| virtual void DtBaseEntityStateRepository::useRelativeSmoother | ( | bool | yesNo = true | ) | [virtual] |
Create and use a new (private) smoother as our approximator.
| virtual void DtBaseEntityStateRepository::useSmoother | ( | DtSmoother * | sm | ) | [virtual] |
Tells the ESR to use sm as its approximator, and to notify it when DR algorithm changes.
Caller is responsible for deleting sm, but only after the StateRep no longer needs it.
| virtual void DtBaseEntityStateRepository::useSmoother | ( | bool | yesNo = true | ) | [virtual] |
Create and use a new (private) smoother as our approximator.
| virtual DtDeadReckoner* DtBaseEntityStateRepository::usingDeadReckoner | ( | ) | [virtual] |
If the ESR is using a dead reckoner, returns it. Else returns NULL.
| virtual DtDeadReckoner* DtBaseEntityStateRepository::usingRelativeDeadReckoner | ( | ) | [virtual] |
If the ESR is using a dead reckoner, returns it. Else returns NULL.
| virtual DtSmoother* DtBaseEntityStateRepository::usingRelativeSmoother | ( | ) | [virtual] |
If the ESR is using a smoother, returns it. Else returns NULL.
| virtual DtSmoother* DtBaseEntityStateRepository::usingSmoother | ( | ) | [virtual] |
If the ESR is using a smoother, returns it. Else returns NULL.
| virtual const DtVector& DtBaseEntityStateRepository::velocity | ( | DtTime | aTime | ) | const [virtual] |
The velocity in meters per second at aTime.
| virtual const DtVector& DtBaseEntityStateRepository::velocity | ( | ) | const [virtual] |
The velocity at the current simulation time, as set in clock()->simTime().
friend class DtBaseEntityDecoder [friend] |
Used by DtBaseEntityDecoder to support absolute DR in HLA.
DtVector DtBaseEntityStateRepository::myAcceleration [protected] |
bool DtBaseEntityStateRepository::myAmAsSeenByRemote [protected] |
This flag is checked by the spatial attribute accessors and if it's false, calls computeSpatialFromRelativeSpatial()
Referenced by setAmAsSeenByRemote().
Holds what's currently being used as our approximator.
DtFloat32 DtBaseEntityStateRepository::myBearing [protected] |
DtDcm DtBaseEntityStateRepository::myBodyToGeoc [protected] |
bool DtBaseEntityStateRepository::myBodyToGeocDirty [protected] |
DtClock* DtBaseEntityStateRepository::myClock [protected] |
Clock to be used for dead reckoning calculations -- it is set to the same clock used by the exConn.
Holds what was most recently passed to useDeadReckoner.
Created and deleted by this ESR if needed.
DtSmoother* DtBaseEntityStateRepository::myDfltSmoother [protected] |
Referenced by entityId(), federateId(), setEntityId(), and setFederateId().
Referenced by entityType(), and setEntityType().
DtFederateId DtBaseEntityStateRepository::myFederateId [mutable, protected] |
Set by call to federateId.
Referenced by federateId().
bool DtBaseEntityStateRepository::myFrozen [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.
bool DtBaseEntityStateRepository::myHostGlobalIdSetFlag [protected] |
Referenced by lastSetAcceleration().
place holder variables for spatial data.
Needed since the accessors compute world coords for carried units.
Referenced by lastSetLocation().
Referenced by lastSetOrientation().
Referenced by lastSetRelativeAcceleration().
place holder variables for relative spatial data.
Not sure if needed but for consistency with spatial data, here ya go.
Referenced by lastSetRelativeLocation().
Referenced by lastSetRelativeOrientation().
Referenced by lastSetRelativeRotationalVelocity().
Referenced by lastSetRelativeVelocity().
Referenced by lastSetRotationalVelocity().
Referenced by lastSetVelocity().
DtVector DtBaseEntityStateRepository::myLocation [protected] |
spatial attributes
DtNature DtBaseEntityStateRepository::myNature [protected] |
others
created and delete somewhere else;
DtFloat32 DtBaseEntityStateRepository::myRange [protected] |
bool DtBaseEntityStateRepository::myRelativeBodyToHostDirty [protected] |
bool DtBaseEntityStateRepository::myRelativeFrozen [protected] |
relativeSpatial attributes
DtSmoother* DtBaseEntityStateRepository::mySmoother [protected] |
Holds what was most recently passed to useSmoother.
DtU16 DtBaseEntityStateRepository::myStationNumber [protected] |
Referenced by thresholder().
DtTime DtBaseEntityStateRepository::myTimeForSets [protected] |
Referenced by setTimeStampType(), and timeStampType().
DtVector DtBaseEntityStateRepository::myVelocity [protected] |