![]() |
VR-Forces Developer's Guide
|
Instances of DtVrfStatusPublisher are used to send information about a VR-Forces simulation engine to remote front ends or other control applications.
Static Public Member Functions | |
| static void | statusRequestCallback (DtSimMessage *msg, void *usr) |
Public Attributes | |
| boost::signals2::signal< void()> | signal_statusHeartbeat |
Protected Member Functions | |
| virtual void | processSimObjectAdded (const DtLocalObject *) |
| virtual void | processSimObjectAboutToBeRemoved (const DtLocalObject *) |
| virtual void | processSimObjectConvertedToRemote (const DtObjectTransferredInformation &) |
| DtVrfStatusPublisher (const DtVrfStatusPublisher &orig) | |
| DtVrfStatusPublisher & | operator= (const DtVrfStatusPublisher &orig) |
Static Protected Member Functions | |
| static void | SimObjectAdded (const DtLocalObject *, void *usr) |
| static void | SimObjectAboutToBeRemoved (const DtLocalObject *, void *usr) |
| static void | SimObjectConvertedToRemote (const DtObjectTransferredInformation &, void *usr) |
Protected Attributes | |
| DtVrfMessageInterface * | myMessageIf |
| int | myHeartbeatInterval |
| DtSimulationAddress | myAddress |
| bool | myIsActive |
| bool | myCanSimulate |
| DtTime | myLastResponseTime |
| bool | myIsOldParameterDb |
| bool | myHasBeenModified |
| bool | mySendStatusOnChange |
| bool | myLoadedNewScenario |
| bool | myAlwaysSendStatusImmediately |
| DtLocalObjectManager * | myObjectManager |
| DtU32 | myScenarioStatusGeneration |
| DtIfStatus * | myStatus |
| tbb::spin_mutex | myStatusMutex |
| DtVrfStatusPublisher::DtVrfStatusPublisher | ( | DtVrfMessageInterface * | messageIf, |
| DtLocalObjectManager * | mgr | ||
| ) |
constructor
|
virtual |
destructor
|
protected |
copy constructor
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If set to true (default is false) always send status immediately on any change.
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
This value determines how often to send out a status message.
|
virtual |
|
virtual |
Get IP address of this backend.
|
virtual |
Get/Set our port number for file transferring.
|
virtual |
Get/Set our app id range max.
|
virtual |
|
virtual |
Get/Set control state (e.g. paused, running)
|
virtual |
|
virtual |
Clears out objects that are in the scenario.
|
virtual |
Ticked by the simulation manager.
|
virtual |
Process status request messages from other status managers.
|
static |
Handle status request messages from other status managers.
|
virtual |
If true, this backend has been loaded with a scenario.
|
virtual |
|
virtual |
Sets the scenario run id.
|
virtual |
|
virtual |
The following functions are obsolete.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
exercise start simulation time in seconds (defaults to 0.0).
|
virtual |
|
virtual |
simulation time (simulation time elapsed since start of simulation) in seconds (defaults to 0.0).
|
virtual |
|
virtual |
Simulation time the scenario is scheduled to run until. 0 means run until user presses pause.
|
virtual |
|
virtual |
simulation time at start of simulation (defaults to 0.0).
|
virtual |
|
virtual |
Set faster or slower than real-time operation (defaults to 1.0).
|
virtual |
|
virtual |
Only sent once. Will be set when the scenario is being loaded.
|
virtual |
|
virtual |
Accessor for whether the current load is by loading a scenario fragment (piece of a scenario) from a larger checkpoint save across multiple back-ends. The the close is issued because a scenario checkpoint from back-ends is being closed then this flag will be set to true as well.
|
virtual |
|
virtual |
Only sent once. Will be set when the scenario is being saved.
|
virtual |
|
virtual |
Will be set when a scenario is being imported.
|
virtual |
|
virtual |
Will be set when a scenario is being reinitialized.
|
virtual |
|
virtual |
Will be set when a back-end is hosting a dynamic terrain server.
|
virtual |
|
virtual |
Will be set when a simulation object group is being created.
|
virtual |
|
virtual |
Only sent once. Will be set when the scenario is being closed.
|
virtual |
|
virtual |
Only sent once. Will be set when the scenario is being rolled back.
|
virtual |
|
virtual |
Only sent once. Will be set then, once set, unset to signal a new scenario has just been loaded.
|
virtual |
|
virtual |
Flag indicating whether parameter database is old file format or not.
Flag indicating if parameter database is current file format or not.
|
virtual |
|
virtual |
Flag indicating if resource manager is enabled. When setting, if flag is different, status is published immediately.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If true (default) will send status message when anything changes. If false, will set myHasBeenModified to true, and, if this is reset to true, will send message if if the myHasBeenModified flag is also true.
|
virtual |
Adds/removes local objects. This will not send out an immediate message.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Increment the scenario status generation and mirror the new value into the outgoing DtIfStatus. Call this whenever the scenario status content is about to change (i.e., before a non-heartbeat DtIfScenarioStatus is sent). Do NOT call for pure resends of unchanged state.
|
virtual |
The current scenario status generation. Stamp this value onto outgoing DtIfScenarioStatus messages before sending.
|
staticprotected |
Calls for when objects are added/removed. Update object kind/domain count in status message.
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protected |
assignment operator
| boost::signals2::signal<void ()> DtVrfStatusPublisher::signal_statusHeartbeat |
|
protected |
Status of this node.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |