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
DtExampleEmbeddedSystemLocalNetInterface Class Reference

Local network interface for example embedded system objects. Handles network communication for locally simulated embedded systems, managing state synchronization between local components and network publication.

Inheritance diagram for DtExampleEmbeddedSystemLocalNetInterface:
Inheritance graph
[legend]

Public Member Functions

 DtExampleEmbeddedSystemLocalNetInterface (makVrf::DtStateData *simObject, makVrf::DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtExampleEmbeddedSystemLocalNetInterface ()
 
virtual bool init (const makVrf::DtStateComponent *stateComponent)
 
virtual DtString type () const
 
virtual bool wantsToCreatePublisher () const
 
virtual bool isLocal () const
 
- Public Member Functions inherited from makVrf::DtLocalStateComponentNetInterface
 DtLocalStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtLocalStateComponentNetInterface () override
 
virtual bool isUnit () const override
 
virtual bool isEntity () const override
 
virtual bool isEnvironmental () const override
 
virtual void onTick () override
 
virtual bool publishObject () const override
 
virtual bool shouldPublish () const
 
- Public Member Functions inherited from makVrf::DtStateComponentNetInterface
 DtStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtStateComponentNetInterface () override
 
virtual void tick () 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 int maxNameLength () const
 
virtual void toBeRemoved ()
 
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 DtSimObjectNetInterface * creator (makVrf::DtStateData *vrfObject, makVrf::DtVrlinkNetworkInterface *mgr, bool publishObject)
 
- 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 updatePublisher ()
 
virtual DtObjectPublisher * createPublisher (const makVrf::DtExampleEmbeddedSystemStateComponent *stateComponent)
 
- Protected Member Functions inherited from makVrf::DtLocalStateComponentNetInterface
virtual void lock ()
 
virtual void unlock ()
 
- Protected Member Functions inherited from makVrf::DtStateComponentNetInterface
virtual RTI::ObjectClassHandle objectClassHandle () const override
 
- 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

const
makVrf::DtExampleEmbeddedSystemStateComponent * 
myExEmbeddedSystemComponent
 
- Protected Attributes inherited from makVrf::DtLocalStateComponentNetInterface
bool myPublishObject
 
DtObjectPublisher * myPublisher
 
boost::signals2::connection myComponentAddedConnection
 
boost::signals2::connection myComponentRemovedConnection
 
- Protected Attributes inherited from makVrf::DtStateComponentNetInterface
const DtStateComponent * myStateComponent
 
- 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

 DtExampleEmbeddedSystemLocalNetInterface ()
 
 DtExampleEmbeddedSystemLocalNetInterface (const DtSimObjectNetInterface &orig)
 
const
DtExampleEmbeddedSystemLocalNetInterface & 
operator= (const DtSimObjectNetInterface &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

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

Constructor for local network interface.

Parameters
simObjectVRF state data object containing embedded system data
objectManagerVR-Link network interface manager
publishObjectWhether locally simulated objects should publish to network
virtual DtExampleEmbeddedSystemLocalNetInterface::~DtExampleEmbeddedSystemLocalNetInterface ( )
virtual

Virtual destructor for proper cleanup.

DtExampleEmbeddedSystemLocalNetInterface::DtExampleEmbeddedSystemLocalNetInterface ( )
private

Default constructor - not implemented.

DtExampleEmbeddedSystemLocalNetInterface::DtExampleEmbeddedSystemLocalNetInterface ( const DtSimObjectNetInterface &  orig)
private

Copy constructor - not implemented.

Member Function Documentation

virtual bool DtExampleEmbeddedSystemLocalNetInterface::init ( const makVrf::DtStateComponent *  stateComponent)
virtual

Initializes the state component for this interface.

Parameters
stateComponentThe state component to initialize with
Returns
true if initialization succeeded, false otherwise

Reimplemented from makVrf::DtStateComponentNetInterface.

virtual DtString DtExampleEmbeddedSystemLocalNetInterface::type ( ) const
virtual

Returns the type identifier for this network interface. Overridden to provide custom type identification.

Returns
Type string constant for this interface

Implements makVrf::DtSimObjectNetInterface.

static DtSimObjectNetInterface* DtExampleEmbeddedSystemLocalNetInterface::creator ( makVrf::DtStateData *  vrfObject,
makVrf::DtVrlinkNetworkInterface *  mgr,
bool  publishObject 
)
static

Factory creator method for instantiating local network interfaces.

Parameters
vrfObjectVRF state data object for the new interface
mgrVR-Link network interface manager
publishObjectWhether the new object should be published
Returns
Pointer to newly created network interface
virtual bool DtExampleEmbeddedSystemLocalNetInterface::wantsToCreatePublisher ( ) const
virtual

Indicates whether this interface wants to create a publisher.

Returns
true if a publisher should be created

Implements makVrf::DtSimObjectNetInterface.

virtual bool DtExampleEmbeddedSystemLocalNetInterface::isLocal ( ) const
inlinevirtual

Indicates this is a local network interface.

Returns
Always returns true for local interfaces

Reimplemented from makVrf::DtLocalStateComponentNetInterface.

virtual void DtExampleEmbeddedSystemLocalNetInterface::updatePublisher ( )
protectedvirtual

Copies data from the VRF state component into the VR-Link state repository. Called when local state needs to be published to the network.

Implements makVrf::DtLocalStateComponentNetInterface.

virtual DtObjectPublisher* DtExampleEmbeddedSystemLocalNetInterface::createPublisher ( const makVrf::DtExampleEmbeddedSystemStateComponent *  stateComponent)
protectedvirtual

Creates the publisher for this component.

Parameters
stateComponentThe state component to create a publisher for
Returns
Pointer to newly created object publisher
const DtExampleEmbeddedSystemLocalNetInterface& DtExampleEmbeddedSystemLocalNetInterface::operator= ( const DtSimObjectNetInterface &  orig)
private

Assignment operator - not implemented.

Member Data Documentation

const makVrf::DtExampleEmbeddedSystemStateComponent* DtExampleEmbeddedSystemLocalNetInterface::myExEmbeddedSystemComponent
protected

Pointer to the embedded system state component for accessing local state data.


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)