![]() |
VR-Link API Documentation for DIS
|
Instances of DtReflectedObjectList are lists of instances of classes derived from DtReflectedObject. More...
Inheritance diagram for DtReflectedObjectList:
Collaboration diagram for DtReflectedObjectList:Public Member Functions | |
| DtReflectedObjectList (DtExerciseConn *exConn) | |
| Constructor. | |
| virtual | ~DtReflectedObjectList () |
| destructor Warning: makes non-virtual call to removeAndDelete | |
| virtual void | initializeAttributePduKindsOfInterest (const std::set< DtPduKind > &pduKinds) |
| This initializes which PDU kinds will be processed when receiving an Attribute PDU. | |
| virtual DtReflectedObject * | firstObj () const |
| Get the first/last object in the list. | |
| virtual DtReflectedObject * | lastObj () const |
| virtual int | count () const |
| Get number of objects. | |
| virtual DtReflectedObject * | lookupObj (const DtBaseHashKey &key) const |
| Search for an object. | |
| virtual DtExerciseConn * | exerciseConn () const |
| Get my exerciseConn. | |
| virtual void | addObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object added callback registration/deregistration. | |
| virtual void | removeObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | addObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object removed callback registration/deregistration. | |
| virtual void | removeObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | print () const |
| Print the SRs of all objects. | |
| virtual void | setTimeoutProcessing (bool onOff) |
| Set whether or not timeout processing occurs. | |
| virtual void | setTimeoutInterval (DtTime time) |
| Set/Get the remote object timeout period. | |
| virtual DtTime | timeoutInterval () |
| virtual void | setDiscoveryCondition (DtDiscoveryCondition fn, void *usr) |
| Set the checker function which will determine when an object gets discovered and put into the ref. | |
| virtual void | clearDiscoveryCondition () |
| Unregisters the checker function set in setDiscoverCondition. | |
| virtual void | removeAndDelete (DtReflectedObject *obj, char *msg=NULL) |
| Remove the remote object from the list if found and delete it. | |
| virtual void | removeObject (DtReflectedObject *obj) |
| This is the same as removeAndDelete, it exists to maintain equality with HLA objects. | |
Protected Member Functions | |
| virtual DtReflectedObject * | newReflectedObj (const DtStateMsg &msg)=0 |
| Create a new object from a state message. | |
| virtual DtReflectedObject * | processStateMessage (const DtStateMsg &msg) |
| Process an incoming state message. | |
| virtual void | doTimeouts () |
| Remove any remote objects which have not been updated during the timeout period. | |
| virtual void | objectAdded (DtReflectedObject *object) |
| Called after a remote object has been added to the list. | |
| virtual bool | shouldBeTimedOut (DtReflectedObject *object) |
| Returns whether or not the object should be timed out. | |
| void | emptyLists () |
| Empty the object list and the timeout list. | |
| void | emptyCallbackLists () |
| virtual void | processObjectAdditionCallbacks (DtReflectedObject *object) |
| Process object addition/removal callbacks. | |
| virtual void | processObjectRemovalCallbacks (DtReflectedObject *object) |
| virtual const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *msg)=0 |
| Get a hash key from a state message. | |
| virtual DtBaseHashKey * | hashKeyFromAttributeRecordSet (const DtAttributeRecordSet &recordSet) |
| Get a hash key from an attribute record set. | |
| virtual int | acceptPdu (const DtStateMsg &) const |
| Determines if a PDU should be processed or not. | |
| virtual bool | readyToAdd (DtReflectedObject *obj) |
| Returns true if the obj is ready to be added to myObjectList; calls myDiscoveryCondition from within. | |
| virtual void | processAttributePduCb (DtAttributeInteraction *inter) |
| virtual void | processAttributePduRecordSet (const DtAttributeRecordSet &recordSet, const DtSimulationAddress &simAddr, DtReflectedObject *obj=0) |
| virtual void | processAttributePduWaitListCb (DtReflectedObject *obj) |
| virtual void | deleteRecordSetBySimulationAddressMap (DtRecordSetBySimulationAddressMap &recordSetMap, const DtSimulationAddress &simAddr=DtSimulationAddress()) const |
Static Protected Member Functions | |
| static void | doTimeoutsPostDrainCb (void *usr) |
| Calls doTimeouts. | |
| static void | processAttributePduCb (DtAttributeInteraction *inter, void *usr) |
| static void | processAttributePduWaitListCb (DtReflectedObject *obj, void *userData) |
Private Member Functions | |
| DtReflectedObjectList (const DtReflectedObjectList &orig) | |
| copy constructor – not implemented | |
| DtReflectedObjectList & | operator= (const DtReflectedObjectList &orig) |
| assignment operator – not implemented | |
Instances of DtReflectedObjectList are lists of instances of classes derived from DtReflectedObject.
A DtReflectedObjectList manages the comings and goings of its reflected objects based on discoveries and removes received from the exercise connection.
| DtReflectedObjectList::DtReflectedObjectList | ( | DtExerciseConn * | exConn | ) |
Constructor.
|
virtual |
destructor Warning: makes non-virtual call to removeAndDelete
|
private |
copy constructor – not implemented
|
protectedvirtual |
Determines if a PDU should be processed or not.
Right now, this function returns 1.
Reimplemented in DtReflectedAdditionalPassiveActivitiesList, DtReflectedActiveSonarList, DtReflectedPropulsionNoiseList, DtReflectedDesignatorList, DtReflectedDirectedEnergyFireList, DtReflectedArealObjectList, DtReflectedLinearObjectList, and DtReflectedPointObjectList.
|
virtual |
Object added callback registration/deregistration.
|
virtual |
Object removed callback registration/deregistration.
|
virtual |
Unregisters the checker function set in setDiscoverCondition.
If there is none set, this has no effect.
|
virtual |
Get number of objects.
|
protectedvirtual |
|
protectedvirtual |
Remove any remote objects which have not been updated during the timeout period.
Gets called automatically by a postDrainCallback registered by the constructor. Users should not need to call this.
|
staticprotected |
Calls doTimeouts.
|
protected |
|
protected |
Empty the object list and the timeout list.
Non-virtual since meant to be called from destructor. Warning: makes non-virtual call to removeAndDelete
|
virtual |
Get my exerciseConn.
|
virtual |
Get the first/last object in the list.
|
protectedvirtual |
Get a hash key from an attribute record set.
|
protectedpure virtual |
Get a hash key from a state message.
Implemented in DtReflectedEntityList, DtReflectedEmitterSystemList, DtReflectedIffList, DtReflectedAdditionalPassiveActivitiesList, DtReflectedActiveSonarList, DtReflectedDesignatorList, DtReflectedDirectedEnergyFireList, DtReflectedRadioTransmitterList, DtReflectedArealObjectList, DtReflectedLinearObjectList, DtReflectedPointObjectList, DtReflectedAggregateList, DtReflectedRadioReceiverList, DtReflectedGriddedDataList, DtReflectedEnvironmentProcessList, DtReflectedPropulsionNoiseList, and DtReflectedUnderwaterAcousticsList.
|
virtual |
This initializes which PDU kinds will be processed when receiving an Attribute PDU.
|
virtual |
|
virtual |
Search for an object.
|
protectedpure virtual |
Create a new object from a state message.
Implemented in DtReflectedEntityList, DtReflectedIffList, DtReflectedEmitterSystemList, DtReflectedAggregateList, DtReflectedRadioTransmitterList, DtReflectedRadioReceiverList, DtReflectedGriddedDataList, DtReflectedUnderwaterAcousticsList, DtReflectedEnvironmentProcessList, DtReflectedPropulsionNoiseList, DtReflectedAdditionalPassiveActivitiesList, DtReflectedActiveSonarList, DtReflectedDesignatorList, DtReflectedDirectedEnergyFireList, DtReflectedArealObjectList, DtReflectedLinearObjectList, and DtReflectedPointObjectList.
|
protectedvirtual |
Called after a remote object has been added to the list.
Defaults to do nothing. Subclasses can override this function to add functionality on addition.
Reimplemented in DtReflectedEntityList, DtReflectedEmitterSystemList, DtReflectedIffList, DtReflectedAdditionalPassiveActivitiesList, DtReflectedActiveSonarList, DtReflectedDesignatorList, DtReflectedDirectedEnergyFireList, DtReflectedAggregateList, DtReflectedArealObjectList, DtReflectedLinearObjectList, DtReflectedPointObjectList, DtReflectedRadioTransmitterList, DtReflectedPropulsionNoiseList, DtReflectedRadioReceiverList, DtReflectedGriddedDataList, DtReflectedEnvironmentProcessList, and DtReflectedUnderwaterAcousticsList.
|
private |
assignment operator – not implemented
|
virtual |
Print the SRs of all objects.
Reimplemented in DtReflectedAdditionalPassiveActivitiesList, DtReflectedActiveSonarList, DtReflectedDesignatorList, DtReflectedUnderwaterAcousticsList, DtReflectedDirectedEnergyFireList, DtReflectedPropulsionNoiseList, DtReflectedArealObjectList, DtReflectedLinearObjectList, and DtReflectedPointObjectList.
|
staticprotected |
|
protectedvirtual |
Reimplemented in DtReflectedEmitterSystemList.
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
Process object addition/removal callbacks.
|
protectedvirtual |
|
protectedvirtual |
Process an incoming state message.
Reimplemented in DtReflectedEntityList, DtReflectedEmitterSystemList, DtReflectedIffList, DtReflectedAdditionalPassiveActivitiesList, DtReflectedActiveSonarList, DtReflectedAggregateList, DtReflectedDesignatorList, DtReflectedRadioTransmitterList, DtReflectedRadioReceiverList, DtReflectedDirectedEnergyFireList, DtReflectedGriddedDataList, DtReflectedEnvironmentProcessList, DtReflectedArealObjectList, DtReflectedLinearObjectList, and DtReflectedPointObjectList.
|
protectedvirtual |
Returns true if the obj is ready to be added to myObjectList; calls myDiscoveryCondition from within.
|
virtual |
Remove the remote object from the list if found and delete it.
Prints a message on deletion if specified.
Reimplemented in DtReflectedIffList, DtReflectedAdditionalPassiveActivitiesList, DtReflectedActiveSonarList, DtReflectedDesignatorList, DtReflectedDirectedEnergyFireList, DtReflectedArealObjectList, DtReflectedLinearObjectList, and DtReflectedPointObjectList.
|
virtual |
This is the same as removeAndDelete, it exists to maintain equality with HLA objects.
|
virtual |
|
virtual |
|
virtual |
Set the checker function which will determine when an object gets discovered and put into the ref.
obj. list.
|
virtual |
Set/Get the remote object timeout period.
|
virtual |
Set whether or not timeout processing occurs.
Defaults to On.
|
protectedvirtual |
Returns whether or not the object should be timed out.
Assumes that timeout processing is enabled.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |