VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrf::DtSimRemoteEnvironmentalNetInterface Class Reference
Inheritance diagram for makVrf::DtSimRemoteEnvironmentalNetInterface:
Inheritance graph
[legend]

Public Member Functions

 DtSimRemoteEnvironmentalNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject=true)
 
virtual ~DtSimRemoteEnvironmentalNetInterface () override
 
virtual bool init () override
 
virtual void onTick () override
 
virtual void updateFromReflectedObject ()
 
virtual DtReflectedObject * reflectedObject () const
 
virtual void setupFromNetworkRepository ()
 
virtual bool isValidReflectedObject (DtReflectedEnvironmentProcess *) const
 
virtual void setReflectedObject (DtReflectedEnvironmentProcess *reflectedObject)
 
virtual void clearReflectedObject ()
 
virtual void toBeRemoved () override
 
virtual bool isLocal () const override
 
virtual DtString type () const override
 
virtual void setUpdateReceived (bool updateReceived)
 
virtual bool updateReceived () const
 
virtual RTI::ObjectClassHandle objectClassHandle () const override
 
virtual bool wantsToCreatePublisher () const override
 
- Public Member Functions inherited from makVrf::DtSimEnvironmentalNetInterface
 DtSimEnvironmentalNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objMgr, bool publishObject=true)
 
virtual ~DtSimEnvironmentalNetInterface () override
 
virtual DtControlObjectRepository * controlObjectNetworkState () const
 
virtual
DtEnvironmentProcessRepository * 
environmentalNetworkState () const
 
virtual bool isUnit () const override
 
virtual bool isEntity () const override
 
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 void setInQueue (bool b)
 
virtual bool init (DtHlaObjectWithStateRep *obj, DtHlaObjectWithStateRep *extendedAttributes=nullptr)
 
virtual void tick ()
 
virtual int maxNameLength () const
 
virtual bool publishObject () const
 
virtual void sendFinalPduOnDestruction (bool)
 
bool isValid () const
 
virtual std::vector
< DtGlobalObjectDesignator > 
associatedGlobalObjectDesignators () const
 
virtual DtString sidcFromSymbolIdentifier (const DtString &) const
 
virtual void parallelTick ()
 
virtual void forceUpdate ()
 

Static Public Member Functions

static
DtSimRemoteEnvironmentalNetInterface * 
isRemoteEnvironmentalNetInterface (const DtSimObjectNetInterface *objNetInterface)
 
static void reflectedObjectUpdateCallbackFunction (DtReflectedObject *obj, void *userData)
 
static DtSimObjectNetInterface * creator (DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject)
 
- Static Public Member Functions inherited from makVrf::DtSimEnvironmentalNetInterface
static
DtSimEnvironmentalNetInterface * 
isEnvironmentalNetInterface (const DtSimObjectNetInterface *objNetInterface)
 
- Static Public Member Functions inherited from makVrf::DtSimObjectNetInterface
static void setNonVrfUUIDResolver (DtNonVrfUUIDResolver *)
 
static DtNonVrfUUIDResolver * nonVrfUUIDResolver ()
 
static void addSimObjectNetInterfaceCreatorFcn (const DtString &type, DtSimObjectNetIfaceCreatorFcn fcn)
 
static void setFactory (DtSimObjectNetInterfaceFactory *factory)
 
static
DtSimObjectNetInterfaceFactory * 
factory ()
 
static DtSimObjectNetInterface * createNetInterface (const DtString &type, DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject=true)
 
static int maxNameLengthForInterfaceType (const DtString &interfaceTypeString)
 
static void AddSymbolIdentifierToSidcConversionFcn (const DtString &, SymbolIdentifierToSidcConversionFcn)
 
static DtString App6DToSidcConverter (const DtString &)
 
static void setNonVrfObjectsUUIDScheme (const DtString &)
 
static DtString nonVrfObjectsUUIDScheme ()
 

Protected Member Functions

virtual void updateLocalGeometry ()
 
virtual void updateLocalBoundingGeometry ()
 
virtual void updateLocalObjectState ()
 
virtual void updateLocalObjectType ()
 
virtual void updateLocalModelType ()
 
virtual void updateUUIDIfNeeded ()
 
virtual void updateSymbolId ()
 
virtual DtVrfStateComponent * getOrCreateVrfStateComponent (DtControlObjectRepository *netState)
 
virtual
DtStatePropertiesStateComponent * 
getOrCreateStatePropertiesStateComponent (DtControlObjectRepository *netState)
 
virtual void initializeRemoteStateComponents ()
 
- Protected Member Functions inherited from makVrf::DtSimObjectNetInterface
virtual DtString symbolIdentifierFromSidc (const DtString &sidc) const
 
virtual void stateDataDestroyed ()
 
bool runFullyThreaded () const
 
const DtStateData * vrfObject () const
 
DtStateData * nextFrameVrfObject ()
 
virtual const DtStateRepository * networkState () const
 

Protected Attributes

DtReflectedEnvironmentProcess * myReflectedObject
 
bool myUpdateReceived
 
bool myFirstNetworkUpdate = true
 
- Protected Attributes inherited from makVrf::DtSimObjectNetInterface
DtStateData * mySimObject
 
DtVrlinkNetworkInterface * myObjectManager
 
DtStateRepository * myNetworkState
 
bool myNeedsNetworkSetup
 
DtNetInterfaceParallelLock myLock
 
boost::signals2::connection mySimObjectRemovalConnection
 
tbb::mutex myDeleteGuardMutex
 
tbb::mutex::scoped_lock myDeleteGuardLock
 
DtVrfCallbackQueue::CallbackInterface::Ptr myParallelContainer
 
bool myInQueue = false
 

Private Member Functions

 DtSimRemoteEnvironmentalNetInterface ()
 
 DtSimRemoteEnvironmentalNetInterface (const DtSimRemoteEnvironmentalNetInterface &orig)
 
const
DtSimRemoteEnvironmentalNetInterface & 
operator= (const DtSimRemoteEnvironmentalNetInterface &orig)
 

Additional Inherited Members

- Public Types inherited from makVrf::DtSimObjectNetInterface
using SymbolIdentifierToSidcConversionFcn = boost::function< DtString(const DtString &)>
 
- 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 std::map< DtString,
SymbolIdentifierToSidcConversionFcn > 
theSymbolIdentifierToSidcConversionFcns
 
static
DtSimObjectNetInterfaceFactory * 
theFactory
 
static DtNonVrfUUIDResolver * theNonVrfUUIDResolver
 

Constructor & Destructor Documentation

makVrf::DtSimRemoteEnvironmentalNetInterface::DtSimRemoteEnvironmentalNetInterface ( )
private

default constructor

makVrf::DtSimRemoteEnvironmentalNetInterface::DtSimRemoteEnvironmentalNetInterface ( const DtSimRemoteEnvironmentalNetInterface &  orig)
private

copy constructor

makVrf::DtSimRemoteEnvironmentalNetInterface::DtSimRemoteEnvironmentalNetInterface ( DtStateData *  simObject,
DtVrlinkNetworkInterface *  ,
bool  publishObject = true 
)

read/writable contructor

virtual makVrf::DtSimRemoteEnvironmentalNetInterface::~DtSimRemoteEnvironmentalNetInterface ( )
overridevirtual

destructor

Member Function Documentation

const DtSimRemoteEnvironmentalNetInterface& makVrf::DtSimRemoteEnvironmentalNetInterface::operator= ( const DtSimRemoteEnvironmentalNetInterface &  orig)
private

assignment operator

virtual bool makVrf::DtSimRemoteEnvironmentalNetInterface::init ( )
overridevirtual

override of base class init(). Registers for post update callbacks on reflected object.

Reimplemented from makVrf::DtSimEnvironmentalNetInterface.

virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::onTick ( )
overridevirtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateFromReflectedObject ( )
virtual

this will copy from the reflected environment process and associated network state repository to the local state repository

Reimplemented in makVrf::DtEnvironmentConditionRemoteNetInterface, makVrf::DtRemoteTacticalSmokeNetInterface, and makVrf::DtRemoteExtendedPropertiesNetInterface< DtVrfRemoteEnvironmentalNetInterface, DtControlObjectRepository >.

virtual DtReflectedObject* makVrf::DtSimRemoteEnvironmentalNetInterface::reflectedObject ( ) const
virtual

returns the pointer to the VR-Link reflected entity being used to represent this remote entity

Reimplemented in makVrf::DtEnvironmentConditionRemoteNetInterface.

virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::setupFromNetworkRepository ( )
virtual

initializes parts of the local repository from the network state rep. This needs to be done after the call to setReflectedObject()

Reimplemented in makVrf::DtEnvironmentConditionRemoteNetInterface.

virtual bool makVrf::DtSimRemoteEnvironmentalNetInterface::isValidReflectedObject ( DtReflectedEnvironmentProcess *  ) const
virtual

This method will return false if the reflected object type is not of DtReflectedEnvironmentProcess. Make sure to check the return value of this method as this is an invalid initialization if that occurs.

virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::setReflectedObject ( DtReflectedEnvironmentProcess *  reflectedObject)
virtual

A reflected object must always be supplied. This function also sets the network state repository pointer (myBaseNetworkState) to the repository created by this reflected object.

virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::clearReflectedObject ( )
virtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::toBeRemoved ( )
overridevirtual

Called when this object is removed.

Reimplemented from makVrf::DtSimObjectNetInterface.

virtual bool makVrf::DtSimRemoteEnvironmentalNetInterface::isLocal ( ) const
inlineoverridevirtual

Is this network interface for a local (true) or remote (false) object? Local network interfaces should implement this function to return true. Remote network interfaces should implement this to return true.

Implements makVrf::DtSimObjectNetInterface.

virtual DtString makVrf::DtSimRemoteEnvironmentalNetInterface::type ( ) const
overridevirtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::setUpdateReceived ( bool  updateReceived)
virtual

Setting update received to true will cause updateFromRemoteObject() to be called on the next tick.

virtual bool makVrf::DtSimRemoteEnvironmentalNetInterface::updateReceived ( ) const
virtual

Check to see if an update has been received from the network.

virtual RTI::ObjectClassHandle makVrf::DtSimRemoteEnvironmentalNetInterface::objectClassHandle ( ) const
overridevirtual

Returns the HLA object class handle of the reflected object.

Implements makVrf::DtSimObjectNetInterface.

Reimplemented in makVrf::DtEnvironmentConditionRemoteNetInterface.

static DtSimRemoteEnvironmentalNetInterface* makVrf::DtSimRemoteEnvironmentalNetInterface::isRemoteEnvironmentalNetInterface ( const DtSimObjectNetInterface *  objNetInterface)
static

This function will return the objNetInterface passed in, cast to a DtSimIndividualRemoteEntityNetInterface*, provided the objNetInterface is indeed an individual remote entity network interface.

static void makVrf::DtSimRemoteEnvironmentalNetInterface::reflectedObjectUpdateCallbackFunction ( DtReflectedObject *  obj,
void *  userData 
)
static
static DtSimObjectNetInterface* makVrf::DtSimRemoteEnvironmentalNetInterface::creator ( DtStateData *  simObject,
DtVrlinkNetworkInterface *  ,
bool  publishObject 
)
static
virtual bool makVrf::DtSimRemoteEnvironmentalNetInterface::wantsToCreatePublisher ( ) const
inlineoverridevirtual

Returns true if this interface wants to create a publisher. This cannot be done in parallel.

Implements makVrf::DtSimObjectNetInterface.

virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateLocalGeometry ( )
protectedvirtual

put the data INTO the local state repository

Reimplemented in makVrf::DtRemoteTacticalSmokeNetInterface.

virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateLocalBoundingGeometry ( )
protectedvirtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateLocalObjectState ( )
protectedvirtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateLocalObjectType ( )
protectedvirtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateLocalModelType ( )
protectedvirtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateUUIDIfNeeded ( )
protectedvirtual

Upon setting of reflected object see if UUID needs to be updated.

virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::updateSymbolId ( )
protectedvirtual
virtual DtVrfStateComponent* makVrf::DtSimRemoteEnvironmentalNetInterface::getOrCreateVrfStateComponent ( DtControlObjectRepository *  netState)
protectedvirtual
virtual DtStatePropertiesStateComponent* makVrf::DtSimRemoteEnvironmentalNetInterface::getOrCreateStatePropertiesStateComponent ( DtControlObjectRepository *  netState)
protectedvirtual
virtual void makVrf::DtSimRemoteEnvironmentalNetInterface::initializeRemoteStateComponents ( )
protectedvirtual

Member Data Documentation

DtReflectedEnvironmentProcess* makVrf::DtSimRemoteEnvironmentalNetInterface::myReflectedObject
protected

Pointer to the VR-Link Reflected Object.

bool makVrf::DtSimRemoteEnvironmentalNetInterface::myUpdateReceived
protected

Set to true by post-update callback; set to false after update has been processed.

bool makVrf::DtSimRemoteEnvironmentalNetInterface::myFirstNetworkUpdate = true
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)