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

Protected Member Functions | |
| virtual DtEnvironmentProcessPublisher * | _createPublisher (const DtEntityIdentifier &id=DtEntityIdentifier::nullId()) |
| virtual DtEnvironmentProcessRepository * | _createSR () const |
Protected Member Functions inherited from makVrf::DtSimObjectNetInterface | |
| bool | runFullyThreaded () const |
| const DtStateData * | vrfObject () const |
| DtStateData * | nextFrameVrfObject () |
| virtual const DtStateRepository * | networkState () const |
Protected Attributes | |
| bool | myPublisherUserSupplied |
| DtEnvironmentProcessPublisher * | myEnvironmentalPublisher |
| bool | myPublishObject |
Protected Attributes inherited from makVrf::DtSimObjectNetInterface | |
| DtStateData * | mySimObject |
| DtVrlinkNetworkInterface * | myObjectManager |
| DtStateRepository * | myNetworkState |
| bool | myNeedsNetworkSetup |
| DtNetInterfaceParallelLock | myLock |
Static Protected Attributes | |
| static double | theHeartbeatVariance |
Static Protected Attributes inherited from makVrf::DtSimObjectNetInterface | |
| static DtSimObjectNetInterfaceFactory * | theFactory |
| static DtNonVrfUUIDResolver * | theNonVrfUUIDResolver |
Private Member Functions | |
| DtSimLocalEnvironmentalNetInterface () | |
| DtSimLocalEnvironmentalNetInterface (const DtSimLocalEnvironmentalNetInterface &orig) | |
| const DtSimLocalEnvironmentalNetInterface & | operator= (const DtSimLocalEnvironmentalNetInterface &orig) |
Additional Inherited Members | |
Static Public Attributes inherited from makVrf::DtSimObjectNetInterface | |
| static tbb::spin_rw_mutex | thePublisherCreationMutex |
| static tbb::spin_rw_mutex | thePublisherTickMutex |
|
private |
default constructor
|
private |
| makVrf::DtSimLocalEnvironmentalNetInterface::DtSimLocalEnvironmentalNetInterface | ( | DtStateData * | vrfObject, |
| DtVrlinkNetworkInterface * | mgr, | ||
| bool | publishObject = true |
||
| ) |
read/writable constructor
|
virtual |
destructor; calls destroyPublisher()
|
private |
|
virtual |
Override of base class init(), calls createPublisher().
Reimplemented from makVrf::DtSimObjectNetInterface.
Reimplemented in makVrf::DtWeatherLocalNetInterface, and makVrf::DtCloudLayerLocalNetInterface.
|
pure virtual |
Return type string for publisher that can be refered to in ope files (see "vrfNetIfTypes.h")
Implements makVrf::DtSimObjectNetInterface.
Implemented in makVrf::DtGlobalEnvironmentLocalNetInterface, makVrf::DtSimLocalControlObjectNetInterface, makVrf::DtWeatherLocalNetInterface, makVrf::DtMetocServiceLocalNetInterface, makVrf::DtSimLocalTacticalSmokeNetInterface, makVrf::DtCloudLayerLocalNetInterface, makVrf::DtLocalEngineeringObjectNetInterface, and makVrf::DtSimLocalControlObjectWithPropertiesNetInterface.
|
virtual |
Forces an update of the publisher.
Reimplemented from makVrf::DtSimObjectNetInterface.
Reimplemented in makVrf::DtSimLocalControlObjectNetInterface.
|
virtual |
Override of base class onTick() Checks if VR-Forces-specific data has changed. If it has, sets the object changed flag. Calls updatePublisher().
Implements makVrf::DtSimObjectNetInterface.
Reimplemented in makVrf::DtWeatherLocalNetInterface, makVrf::DtLocalExtendedPropertiesNetInterface< DtSimLocalControlObjectNetInterface, DtControlObjectRepository >, makVrf::DtMetocServiceLocalNetInterface, and makVrf::DtSimLocalControlObjectNetInterface.
|
virtual |
A true return indicates that the publisher currently used by the interface was supplied by the user rather than created by init().
|
pure virtual |
This will copy from the local state repository to the specific type of publisher created in deriving classes.
Implemented in makVrf::DtGlobalEnvironmentLocalNetInterface, makVrf::DtLocalExtendedPropertiesNetInterface< DtSimLocalControlObjectNetInterface, DtControlObjectRepository >, makVrf::DtMetocServiceLocalNetInterface, makVrf::DtWeatherLocalNetInterface, makVrf::DtSimLocalControlObjectNetInterface, makVrf::DtSimLocalTacticalSmokeNetInterface, and makVrf::DtCloudLayerLocalNetInterface.
|
virtual |
Called by init() to create a VR-Link publisher, deriving classes create the type of publisher needed for that entity type.
Reimplemented in makVrf::DtWeatherLocalNetInterface, makVrf::DtSimLocalControlObjectNetInterface, makVrf::DtMetocServiceLocalNetInterface, and makVrf::DtCloudLayerLocalNetInterface.
|
virtual |
Returns true if this interface wants to create a publisher. This cannot be done in parallel.
Implements makVrf::DtSimObjectNetInterface.
Reimplemented in makVrf::DtSimLocalControlObjectNetInterface, and makVrf::DtCloudLayerLocalNetInterface.
|
virtual |
Called by the destructor (and also by setPublisher() in some cases, deletes a publisher.
Reimplemented in makVrf::DtWeatherLocalNetInterface, makVrf::DtSimLocalControlObjectNetInterface, makVrf::DtMetocServiceLocalNetInterface, and makVrf::DtCloudLayerLocalNetInterface.
|
virtual |
Returns the publisher used by this net interface.
Reimplemented in makVrf::DtMetocServiceLocalNetInterface, and makVrf::DtSimLocalControlObjectNetInterface.
|
virtual |
If the user needs to supply a publisher other than the one created by the network interface, this call call be used. If the myPublisher pointer is not null and it myPublisherUserSupplied flag is false then the interface will first destroy the current publisher; otherwise a warning is generated and false is returned. The interface's destructor will not destroy a user supplied publisher - that is the responsibility of the publisher's creator. If you need to change a user-supplied publisher to a different one, first call setPublisher with a value of 0 (Null). This will set the myPublisherUserSupplied flag to false.
|
virtual |
|
virtual |
Initializes parts of the network repository created by the publisher This needs to be done after the local state repository has been initialized. Details depend upon which type of publisher (and therefore network state repository) is actually created.
|
pure virtual |
Updates the UUID to be published to the network.
Implemented in makVrf::DtLocalExtendedPropertiesNetInterface< DtSimLocalControlObjectNetInterface, DtControlObjectRepository >, makVrf::DtSimLocalControlObjectNetInterface, makVrf::DtMetocServiceLocalNetInterface, and makVrf::DtSimLocalTacticalSmokeNetInterface.
|
inlinevirtual |
Reimplemented from makVrf::DtSimObjectNetInterface.
|
inlinevirtual |
This network interface is for local entities.
Implements makVrf::DtSimObjectNetInterface.
|
virtual |
Returns the HLA object class handle of the published object.
Implements makVrf::DtSimObjectNetInterface.
Reimplemented in makVrf::DtMetocServiceLocalNetInterface.
|
static |
This function will return the objNetInterface passed in, cast to a DtSimLocalEntityNetInterface*, provided the objNetInterface is indeed an local entity network interface.
|
static |
Variance to use for setting heartbeat thresholds. The actual threshold used will be heartbeat +/- a random value up to the variance. The default value is 2.5s.
|
static |
|
protectedvirtual |
Override this functions to use a subclass of DtEnvironmentProcessPublisher.
Reimplemented in makVrf::DtGlobalEnvironmentLocalNetInterface, makVrf::DtWeatherLocalNetInterface, makVrf::DtCloudLayerLocalNetInterface, makVrf::DtSimLocalTacticalSmokeNetInterface, and makVrf::DtLocalEngineeringObjectNetInterface.
|
protectedvirtual |
Override this functions to use a subclass of DtEnvironmentProcessStateRepository.
Reimplemented in makVrf::DtSimLocalControlObjectNetInterface.
|
protected |
|
protected |
|
protected |
|
staticprotected |