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 | Protected Member Functions | Protected Attributes | Private Member Functions
makVrf::DtLocalStateComponentNetInterface Class Referenceabstract
Inheritance diagram for makVrf::DtLocalStateComponentNetInterface:
Inheritance graph
[legend]

Public Member Functions

 DtLocalStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtLocalStateComponentNetInterface ()
 
virtual bool isUnit () const
 
virtual bool isEntity () const
 
virtual bool isEnvironmental () const
 
virtual void onTick ()
 
virtual bool isLocal () const
 
bool publishObject () const
 
virtual bool shouldPublish () const
 
- Public Member Functions inherited from makVrf::DtStateComponentNetInterface
 DtStateComponentNetInterface (DtStateData *simObject, DtVrlinkNetworkInterface *objectManager, bool publishObject=true)
 
virtual ~DtStateComponentNetInterface ()
 
virtual bool init (const DtStateComponent *)
 
virtual void tick ()
 
- 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 wantsToCreatePublisher () const =0
 
virtual DtString type () const =0
 
virtual int maxNameLength () const
 
virtual void toBeRemoved ()
 
virtual void sendFinalPduOnDestruction (bool)
 
bool isValid () const
 
virtual void parallelTick ()
 
virtual void forceUpdate ()
 

Protected Member Functions

virtual void updatePublisher ()=0
 
virtual void lock ()
 
virtual void unlock ()
 
- Protected Member Functions inherited from makVrf::DtStateComponentNetInterface
virtual RTI::ObjectClassHandle objectClassHandle () const
 
- Protected Member Functions inherited from makVrf::DtSimObjectNetInterface
virtual void stateDataDestroyed ()
 
bool runFullyThreaded () const
 
const DtStateDatavrfObject () const
 
DtStateDatanextFrameVrfObject ()
 
virtual const DtStateRepositorynetworkState () const
 

Protected Attributes

bool myPublishObject
 
DtObjectPublishermyPublisher
 
boost::signals2::connection myComponentAddedConnection
 
boost::signals2::connection myComponentRemovedConnection
 
- Protected Attributes inherited from makVrf::DtStateComponentNetInterface
const DtStateComponentmyStateComponent
 
- Protected Attributes inherited from makVrf::DtSimObjectNetInterface
DtStateDatamySimObject
 
DtVrlinkNetworkInterfacemyObjectManager
 
DtStateRepositorymyNetworkState
 
bool myNeedsNetworkSetup
 
DtNetInterfaceParallelLock myLock
 
boost::signals2::connection mySimObjectRemovalConnection
 
tbb::mutex myDeleteGuardMutex
 
DtVrfCallbackQueue::CallbackInterface::Ptr myParallelContainer
 

Private Member Functions

 DtLocalStateComponentNetInterface ()
 
 DtLocalStateComponentNetInterface (const DtLocalStateComponentNetInterface &orig)
 
const
DtLocalStateComponentNetInterface
operator= (const DtLocalStateComponentNetInterface &orig)
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrf::DtSimObjectNetInterface
static void setNonVrfUUIDResolver (DtNonVrfUUIDResolver *)
 
static DtNonVrfUUIDResolvernonVrfUUIDResolver ()
 
static void addSimObjectNetInterfaceCreatorFcn (const DtString &type, DtSimObjectNetIfaceCreatorFcn fcn)
 
static void setFactory (DtSimObjectNetInterfaceFactory *factory)
 
static
DtSimObjectNetInterfaceFactory
factory ()
 
static DtSimObjectNetInterfacecreateNetInterface (const DtString &type, DtStateData *simObject, DtVrlinkNetworkInterface *, bool publishObject=true)
 
static int maxNameLengthForInterfaceType (const DtString &interfaceTypeString)
 
static void setNonVrfObjectsUUIDScheme (const DtString &)
 
static DtString nonVrfObjectsUUIDScheme ()
 
- 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 DtNonVrfUUIDResolvertheNonVrfUUIDResolver
 

Constructor & Destructor Documentation

makVrf::DtLocalStateComponentNetInterface::DtLocalStateComponentNetInterface ( )
private

default constructor

makVrf::DtLocalStateComponentNetInterface::DtLocalStateComponentNetInterface ( const DtLocalStateComponentNetInterface orig)
private

copy constructor

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

read/writable constructor Publish object flag indicate whether or not locally simulated objects should actually publish the object on the network. If flag is false, no PDUs/RPR interactions should be sent over the network for the object.

virtual makVrf::DtLocalStateComponentNetInterface::~DtLocalStateComponentNetInterface ( )
virtual

destructor

Member Function Documentation

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

assignment operator

virtual bool makVrf::DtLocalStateComponentNetInterface::isUnit ( ) const
inlinevirtual

Is this network interface for a local (true) or remote (false) object? Deriving network interfaces should implement this function to return the appropriate value.

Reimplemented from makVrf::DtStateComponentNetInterface.

virtual bool makVrf::DtLocalStateComponentNetInterface::isEntity ( ) const
inlinevirtual
virtual bool makVrf::DtLocalStateComponentNetInterface::isEnvironmental ( ) const
inlinevirtual
virtual void makVrf::DtLocalStateComponentNetInterface::onTick ( )
virtual
virtual bool makVrf::DtLocalStateComponentNetInterface::isLocal ( ) const
inlinevirtual
bool makVrf::DtLocalStateComponentNetInterface::publishObject ( ) const
inlinevirtual
virtual bool makVrf::DtLocalStateComponentNetInterface::shouldPublish ( ) const
virtual

Reimplemented in makVrf::DtIffLocalNetInterface.

virtual void makVrf::DtLocalStateComponentNetInterface::updatePublisher ( )
protectedpure virtual
virtual void makVrf::DtLocalStateComponentNetInterface::lock ( )
protectedvirtual

For those publishers that need to lock around tick.

virtual void makVrf::DtLocalStateComponentNetInterface::unlock ( )
protectedvirtual

Member Data Documentation

bool makVrf::DtLocalStateComponentNetInterface::myPublishObject
protected
DtObjectPublisher* makVrf::DtLocalStateComponentNetInterface::myPublisher
protected
boost::signals2::connection makVrf::DtLocalStateComponentNetInterface::myComponentAddedConnection
protected
boost::signals2::connection makVrf::DtLocalStateComponentNetInterface::myComponentRemovedConnection
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)