![]() |
VR-Forces Developer's Guide
|

Public Member Functions | |
| DtSimRemoteEntityNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objMgr, bool publishObject=true) | |
| virtual | ~DtSimRemoteEntityNetInterface () override |
| virtual bool | init () |
| virtual void | onTick () override |
| virtual void | updateFromReflectedObject ()=0 |
| virtual void | setupFromNetworkRepository () |
| virtual void | setReflectedObject (DtReflectedObject *reflectedObject) |
| virtual void | clearReflectedObject () |
| virtual void | toBeRemoved () override |
| virtual bool | isValidReflectedObject (DtReflectedObject *) const |
| virtual const DtReflectedObject * | reflectedObject () const |
| virtual DtReflectedObject * | reflectedObject () |
| virtual bool | isLocal () const override |
| virtual void | setUpdateReceived (bool updateReceived) |
| virtual bool | updateReceived () const |
| virtual void | updateUUIDIfNeeded () |
| virtual bool | wantsToCreatePublisher () const override |
| virtual RTI::ObjectClassHandle | objectClassHandle () const override |
Public Member Functions inherited from makVrf::DtSimEntityNetInterface | |
| DtSimEntityNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objMgr, bool publishObject=true) | |
| virtual | ~DtSimEntityNetInterface () override |
| virtual DtBaseEntityStateRepository * | baseEntityNetworkState () const |
| virtual bool | isEnvironmental () const override |
Public Member Functions inherited from makVrf::DtSimObjectNetInterface | |
| DtVrfCallbackQueue::CallbackInterface::Ptr | parallelContainer () |
| DtSimObjectNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject=true) | |
| virtual | ~DtSimObjectNetInterface () |
| virtual bool | init (const DtEntityIdentifier &id=DtEntityIdentifier()) |
| virtual bool | init (DtHlaObjectWithStateRep *obj, DtHlaObjectWithStateRep *extendedAttributes=nullptr) |
| virtual void | tick () |
| virtual bool | isUnit () const =0 |
| virtual bool | isEntity () const =0 |
| virtual DtString | type () const =0 |
| virtual int | maxNameLength () const |
| virtual bool | publishObject () const |
| virtual void | sendFinalPduOnDestruction (bool) |
| bool | isValid () const |
| virtual std::vector < DtGlobalObjectDesignator > | associatedGlobalObjectDesignators () const |
| virtual void | parallelTick () |
| virtual void | forceUpdate () |
Protected Member Functions | |
| virtual void | initializeRemoteStateComponents () |
Protected Member Functions inherited from makVrf::DtSimObjectNetInterface | |
| virtual void | stateDataDestroyed () |
| bool | runFullyThreaded () const |
| const DtStateData * | vrfObject () const |
| DtStateData * | nextFrameVrfObject () |
| virtual const DtStateRepository * | networkState () const |
Protected Attributes | |
| DtReflectedObject * | myReflectedObject |
| bool | myUpdateReceived |
| bool | myFirstNetworkUpdate = true |
Protected Attributes inherited from makVrf::DtSimEntityNetInterface | |
| DtDeadReckonTypes | myDeadReckoningAlgorithm |
Protected Attributes inherited from makVrf::DtSimObjectNetInterface | |
| DtStateData * | mySimObject |
| DtVrlinkNetworkInterface * | myObjectManager |
| DtStateRepository * | myNetworkState |
| bool | myNeedsNetworkSetup |
| DtNetInterfaceParallelLock | myLock |
| boost::signals2::connection | mySimObjectRemovalConnection |
| tbb::mutex | myDeleteGuardMutex |
| DtVrfCallbackQueue::CallbackInterface::Ptr | myParallelContainer |
Private Member Functions | |
| DtSimRemoteEntityNetInterface () | |
| DtSimRemoteEntityNetInterface (const DtSimRemoteEntityNetInterface &orig) | |
| const DtSimRemoteEntityNetInterface & | operator= (const DtSimRemoteEntityNetInterface &orig) |
Additional Inherited Members | |
Public Attributes inherited from makVrf::DtSimObjectNetInterface | |
| boost::signals2::signal< void()> | signal_networkInterfaceDeleted |
Static Public Attributes inherited from makVrf::DtSimObjectNetInterface | |
| static tbb::spin_rw_mutex | thePublisherCreationMutex |
| static tbb::spin_rw_mutex | thePublisherTickMutex |
Static Protected Attributes inherited from makVrf::DtSimObjectNetInterface | |
| static DtSimObjectNetInterfaceFactory * | theFactory |
| static DtNonVrfUUIDResolver * | theNonVrfUUIDResolver |
|
private |
default constructor
|
private |
| makVrf::DtSimRemoteEntityNetInterface::DtSimRemoteEntityNetInterface | ( | DtStateData * | simObject, |
| DtVrlinkNetworkInterface * | objMgr, | ||
| bool | publishObject = true |
||
| ) |
read/writable constructor
|
overridevirtual |
destructor; calls destroyPublisher()
|
private |
assignment operator; see note on copy constructor above
|
virtual |
override of base class init(). Registers for post update callbacks on reflected object.
|
overridevirtual |
override of base class onTick(), calls updateFromReflectedObject()
Implements makVrf::DtSimObjectNetInterface.
|
pure virtual |
this will copy from whatever type of reflected object and associated network state repository the deriving class uses to the local state repository
Implemented in makVrf::DtRemoteExtendedPropertiesNetInterface< DtVrfIndividualRemoteEntityNetInterface, DtExtEntityStateRepository >, makVrf::DtRemoteExtendedPropertiesNetInterface< DtVrfAggregateRemoteEntityNetInterface, DtExtAggregateStateRepository >, makVrf::DtSimAggregateRemoteEntityNetInterface, makVrf::DtSimIndividualRemoteEntityNetInterface, makVrf::DtVrfIndividualRemoteEntityNetInterface, and DtIndividualRemoteEntityNetInterfaceWithTemperature.
|
virtual |
initializes parts of the local repository from the network state rep. This needs to be done after the call to setReflectedObject()
|
virtual |
For local entities, a publisher can be created or supplied via a set<>Publisher call. For remote entities a reflected object is used instead, and must always be supplied (there is no create equivalent to the local entity network interface). This function also sets the network state repository pointer (myBaseNetworkState) to the repository created by this reflected object.
|
virtual |
|
overridevirtual |
Called when this object is removed.
Reimplemented from makVrf::DtSimObjectNetInterface.
|
virtual |
This method will return false if the reflected object type is not of DtReflectedEntity. Make sure to check the return value of this method as this is an invalid initialization if that occurs.
Reimplemented in makVrf::DtSimAggregateRemoteEntityNetInterface.
|
virtual |
|
virtual |
|
inlineoverridevirtual |
This network interface is for local entities.
Implements makVrf::DtSimObjectNetInterface.
|
virtual |
Setting update received to true will cause updateFromRemoteObject() to be called on the next tick.
|
virtual |
Check to see if an update has been received from the network.
|
static |
This function will return the objNetInterface passed in, cast to a DtSimRemoteEntityNetInterface*, provided the objNetInterface is indeed an remote entity network interface.
|
static |
|
static |
|
virtual |
Upon setting of reflected object see if UUID needs to be updated.
Reimplemented in makVrf::DtSimIndividualRemoteEntityNetInterface, and makVrf::DtSimAggregateRemoteEntityNetInterface.
|
inlineoverridevirtual |
Returns true if this interface wants to create a publisher. This cannot be done in parallel.
Implements makVrf::DtSimObjectNetInterface.
|
overridevirtual |
Returns the HLA object class handle of the reflected object.
Implements makVrf::DtSimObjectNetInterface.
|
protectedvirtual |
Reimplemented in makVrf::DtSimAggregateRemoteEntityNetInterface, and makVrf::DtSimIndividualRemoteEntityNetInterface.
|
protected |
Pointer to the VR-Link Reflected Object (may be a DtReflectedEntity, DtReflectedExtAggregate, etc. ).
|
protected |
Set to true by post-update callback; set to false after update has been processed.
|
protected |