![]() |
VR-Link API Documentation for HLA Evolved
|
class DtReflectedObject: More...
Inheritance diagram for DtReflectedObject:
Collaboration diagram for DtReflectedObject:Public Types | |
| typedef DtStateRepository *(* | DtBaseStateRepCreator )() |
| Function prototype for functions that create DtStateRepositories. | |
Public Member Functions | |
| DtReflectedObject (DtExerciseConn *conn, DtStateRepository *stateRep) | |
| Primary constructor. | |
| DtReflectedObject (DtHlaObject *obj, DtExerciseConn *conn, DtBaseStateRepCreator creator) | |
| Older constructor. | |
| DtReflectedObject (const DtObjectId &id, const DtGlobalObjectDesignator &des, DtExerciseConn *conn, DtBaseStateRepCreator creator) | |
| Older constructor. | |
| virtual | ~DtReflectedObject () |
| destructor | |
| virtual DtStateRepository * | stateRep () const |
| Returns a pointer to the StateRepository - through which you can inspect current state information. | |
| virtual DtStateRepository * | sr () const |
| Synonym for stateRep(). | |
| virtual DtHlaStateDecoder * | decoder () |
| Returns a pointer to the Decoder being used to decode state messages into our SR. | |
| virtual DtHlaObjectWithStateRep * | hlaObject () const |
| Get the entity's hlaObject (DtHlaObjectWithStateRep is derived from DtHlaObject). | |
| virtual const DtObjectId & | objectId () const |
| Get the HLA object's id. | |
| virtual const DtObjectId & | id () const |
| Get the HLA object's id (local ID). | |
| virtual const DtObjectId & | localId () const |
| Get the HLA object's id (local ID). | |
| virtual const DtString & | name () const |
| Get the HLA object name. | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| Get the HLA object's global object designator - the object name in HLA. | |
| virtual const DtString & | lastProducingFederate () const |
| Get the name of the last federate that produced a reflected update. | |
| virtual DtTime | lastSimTimeUpdated () const |
| Returns the value of simulation time at the time an update was last received for the entity. | |
| virtual DtTime | lastReceivedTimeStamp () const |
| Returns the value of the time send in the last Update received for this entity. | |
| virtual void | baseAddPostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object state callback registration/deregistration. | |
| virtual void | baseRemovePostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual DtReflectedObject * | nextObj () const |
| Get the next remote object. | |
| virtual DtReflectedObject * | prevObj () const |
| Get the previous remote object. | |
| virtual DtReflectedObject * | wrapNextObj () const |
| Get the next remote object. | |
| virtual DtReflectedObject * | wrapPrevObj () const |
| Get the previous remote object. | |
| void | setHlaObject (DtHlaObject *obj, DtHlaStateDecoder *decoder=NULL) |
| Start reflecting this object, using this decoder. | |
| virtual void | setNoHlaObject (const DtObjectId &id, const DtGlobalObjectDesignator &des) |
| Used to set up a proxy DtReflectedEntity - one that is not actually managing a real reflected HLA object. | |
| void | detachHlaObject () |
| Ends managing of current HLA object. | |
| virtual void | requestUpdate () |
| Request that the owner of this entity send an attribute update. | |
Public Member Functions inherited from DtListedObj | |
| DtListedObj () | |
| Constructor. | |
| virtual | ~DtListedObj () |
| Destructor. | |
| void * | next () const |
| Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list. | |
| void * | prev () const |
| void * | wrapNext () const |
| Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit the end (beginning). | |
| void * | wrapPrev () const |
Protected Member Functions | |
| DtReflectedObject (const DtReflectedObject &orig) | |
| copy constructor – Not Implemented | |
| DtReflectedObject & | operator= (const DtReflectedObject &orig) |
| assignment operator – Not Implemented | |
| virtual void | processPostUpdateCallbacks () |
| Process the post update callbacks. | |
Static Protected Member Functions | |
| static void | requestUpdatePostDrainCb (void *usr) |
| Calls requestUpdate. | |
| static void | processPostUpdateCallbacksCb (const DtStateMsg &stateMsg, DtHlaObject *obj, void *usr) |
| Callback from HlaObject to process post update callbacks. | |
Protected Attributes | |
| DtExerciseConn * | myExConn |
| DtHlaObjectWithStateRep * | myHlaObj |
| DtStateRepository * | myStateRep |
| DtHlaStateDecoder * | myDecoder |
| bool | myRequestCbRegistered |
| DtIntrusiveList | myStateUpdateCallbacks |
| DtObjectId | myId |
| DtString | myName |
Protected Attributes inherited from DtListedObj | |
| DtList * | myList |
| DtListItem * | myItem |
class DtReflectedObject:
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (i.e. this is not a full simulation running on this machine).
| typedef DtStateRepository*(* DtReflectedObject::DtBaseStateRepCreator)() |
Function prototype for functions that create DtStateRepositories.
| DtReflectedObject::DtReflectedObject | ( | DtExerciseConn * | conn, |
| DtStateRepository * | stateRep | ||
| ) |
Primary constructor.
| DtReflectedObject::DtReflectedObject | ( | DtHlaObject * | obj, |
| DtExerciseConn * | conn, | ||
| DtBaseStateRepCreator | creator | ||
| ) |
Older constructor.
Use the primary constructor followed by setHlaObject instead.
| DtReflectedObject::DtReflectedObject | ( | const DtObjectId & | id, |
| const DtGlobalObjectDesignator & | des, | ||
| DtExerciseConn * | conn, | ||
| DtBaseStateRepCreator | creator | ||
| ) |
Older constructor.
Use the primary constructor followed by setNoHlaObject instead.
|
virtual |
destructor
|
protected |
copy constructor – Not Implemented
|
virtual |
Object state callback registration/deregistration.
|
virtual |
|
virtual |
Returns a pointer to the Decoder being used to decode state messages into our SR.
| void DtReflectedObject::detachHlaObject | ( | ) |
Ends managing of current HLA object.
NON Virtual – Called in DTOR
|
virtual |
Get the HLA object's global object designator - the object name in HLA.
|
inlinevirtual |
Get the entity's hlaObject (DtHlaObjectWithStateRep is derived from DtHlaObject).
References myHlaObj.
|
virtual |
Get the HLA object's id (local ID).
Referenced by localId().
|
virtual |
Get the name of the last federate that produced a reflected update.
HLA Evolved only. May require additional RTI configuration to be populated.
|
virtual |
Returns the value of the time send in the last Update received for this entity.
|
virtual |
Returns the value of simulation time at the time an update was last received for the entity.
|
inlinevirtual |
Get the HLA object's id (local ID).
References id().
|
virtual |
Get the HLA object name.
|
inlinevirtual |
Get the next remote object.
References DtListedObj::next().
|
virtual |
Get the HLA object's id.
|
protected |
assignment operator – Not Implemented
|
inlinevirtual |
Get the previous remote object.
References DtListedObj::prev().
|
protectedvirtual |
Process the post update callbacks.
|
staticprotected |
Callback from HlaObject to process post update callbacks.
|
virtual |
Request that the owner of this entity send an attribute update.
|
staticprotected |
Calls requestUpdate.
| void DtReflectedObject::setHlaObject | ( | DtHlaObject * | obj, |
| DtHlaStateDecoder * | decoder = NULL |
||
| ) |
Start reflecting this object, using this decoder.
If decoder is NULL, we get one from the FOM Mapper. The decoder is deleted by the DtReflectedObject destructor. Usually called by derived class constructor.
|
virtual |
Used to set up a proxy DtReflectedEntity - one that is not actually managing a real reflected HLA object.
|
inlinevirtual |
Synonym for stateRep().
References myStateRep.
|
inlinevirtual |
Returns a pointer to the StateRepository - through which you can inspect current state information.
References myStateRep.
|
inlinevirtual |
Get the next remote object.
Will cycle back to the first remote object.
References DtListedObj::wrapNext().
|
inlinevirtual |
Get the previous remote object.
Will cycle back to the last remote object.
References DtListedObj::wrapPrev().
|
protected |
|
protected |
|
protected |
Referenced by hlaObject().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by DtReflectedActiveSonarBeam::activeSonarBeamRep(), DtReflectedActiveSonar::activeSonarRep(), DtReflectedAdditionalPassiveActivities::additionalPassiveActivitiesRep(), DtReflectedAggregate::aggregateStateRep(), DtReflectedArealObject::aosr(), DtReflectedArealObject::arealObjectRep(), DtReflectedAggregate::asr(), DtReflectedAdditionalPassiveActivities::asr(), DtReflectedActiveSonar::asr(), DtReflectedEmitterBeam::beamRep(), DtReflectedActiveSonarBeam::bsr(), DtReflectedEmitterBeam::bsr(), DtReflectedDesignator::designatorRep(), DtReflectedDIGuyObject::dIGuyObjectStateRep(), DtReflectedDIGuyObject::dsr(), DtReflectedDesignator::dsr(), DtReflectedEmitterSystem::emitterSysRep(), DtReflectedEntity::entityStateRep(), DtReflectedEnvironmentProcess::environmentProcessStateRep(), DtReflectedEnvironmentProcess::epsr(), DtReflectedEntity::esr(), DtReflectedEmitterSystem::esr(), DtReflectedFederate::federateRep(), DtReflectedFederate::fsr(), DtReflectedGriddedData::gdsr(), DtReflectedGriddedData::gridDataRep(), DtReflectedIff::iffRep(), DtReflectedIff::iffStateRep(), DtReflectedIff::isr(), DtReflectedLinearObject::linearObjectRep(), DtReflectedLinearObject::losr(), DtReflectedPointObject::pointObjectRep(), DtReflectedPointObject::posr(), DtReflectedPropulsionNoise::propulsionNoiseRep(), DtReflectedPropulsionNoise::psr(), DtReflectedRadioReceiver::receiverRep(), DtReflectedRadioReceiver::rsr(), sr(), stateRep(), DtReflectedRadioTransmitter::transmitterRep(), DtReflectedRadioTransmitter::tsr(), DtReflectedUnderwaterAcoustics::underwaterAcousticsStateRep(), and DtReflectedUnderwaterAcoustics::usr().
|
protected |