![]() |
VR-Forces Developer's Guide
|
Instances of DtIfStatus are sent out in response to a DtIfStatusRequest message and have boolean values to indicate if the application is capable of simulating entities and if it is in a loaded state. Also contains general status information about the simulation engine.
Content-Type: DtStatusMessageType

Public Types | |
| typedef std::map< DtU16, int > | ObjectCounts |
Public Member Functions | |
| DtIfStatus () | |
| virtual | ~DtIfStatus () override |
| DtIfStatus (const DtIfStatus &orig) | |
| DtIfStatus & | operator= (const DtIfStatus &orig) |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual DtTime | exerciseStartTime () const |
| virtual void | setExerciseStartTime (DtTime time) |
| virtual DtTime | simTime () const |
| virtual void | setSimTime (DtTime time) |
| virtual DtTime | simStartSimTime () const |
| virtual void | setSimStartSimTime (DtTime time) |
| virtual void | setRunUntilTime (double) |
| virtual double | runUntilTime () const |
| virtual double | timeMultiplier () const |
| virtual void | setTimeMultiplier (double timeMultiplier) |
| virtual int | controlState () const |
| virtual void | setControlState (int state) |
| virtual DtInetAddr | ipAddress () const |
| virtual void | setIpAddress (DtInetAddr ipAddr) |
| virtual unsigned int | port () const |
| virtual void | setPort (unsigned int port) |
| virtual int | appIdRangeMax () const |
| virtual void | setAppIdRangeMax (int) |
| virtual bool | isFinalStatusMsg () const |
| virtual void | setIsFinalStatusMsg (bool finalMsg) |
| virtual const DtUUID & | scenarioRunId () const |
| virtual void | setScenarioRunId (const DtUUID &) |
| virtual bool | isCurrentParameterDb () const |
| virtual void | setIsCurrentParameterDb (bool isCurrentParameterDb) |
| virtual bool | isResourceMonitorEnabled () const |
| virtual void | setIsResourceMonitorEnabled (bool isCurrentParameterDb) |
| virtual bool | isLoaded () const |
| virtual void | setIsLoaded (const bool loaded) |
| virtual bool | scenarioFragment () const |
| virtual void | setScenarioFragment (bool) |
| virtual int | netRepSize () const override |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) override |
| virtual bool | setToNet () override |
| virtual void | printDataToString (DtString &str) override |
| virtual bool | canSimulate () const |
| virtual void | setCanSimulate (const bool frontEnd) |
| bool | oldStyleStatus () const |
| virtual void | setIsTimeManaged (bool yesNo) |
| virtual bool | isTimeManaged () const |
| virtual void | addLocalObject (int kind, int domain) |
| virtual void | removeLocalObject (int kind, int domain) |
| virtual int | totalLocalObjects () const |
| const ObjectCounts & | objectCounts () const |
| virtual void | clear () |
| virtual unsigned int | simEngineId () const |
| virtual void | setSimEngineId (unsigned int id) |
| virtual void | setLoadingScenario (bool) |
| virtual bool | loadingScenario () const |
| virtual void | setSavingScenario (bool) |
| virtual bool | savingScenario () const |
| virtual void | setReinitializingScenario (bool) |
| virtual bool | reinitializingScenario () const |
| virtual void | setImportingScenario (bool) |
| virtual bool | importingScenario () const |
| virtual void | setHostingDynamicTerrainServer (bool) |
| virtual bool | hostingDynamicTerrainServer () const |
| virtual void | setCreatingSimulationObjectGroup (bool) |
| virtual bool | creatingSimulationObjectGroup () const |
| virtual void | setClosingScenario (bool) |
| virtual bool | closingScenario () const |
| virtual void | setRollingBackScenario (bool) |
| virtual bool | rollingBackScenario () const |
| virtual void | setLoadedNewScenario (bool) |
| virtual bool | loadedNewScenario () const |
| virtual DtU32 | scenarioCapabilities () const |
| virtual void | setScenarioCapabilities (DtU32 v) |
| virtual void | setScenarioCapability (DtU32 v, bool b) |
| virtual DtU32 | scenarioStatusGeneration () const |
| virtual void | setScenarioStatusGeneration (DtU32 gen) |
| virtual DtString | applicationType () const |
| virtual void | setApplicationType (const DtString &type) |
| const DtString & | scenarioName () const |
| const DtString & | terrainName () const |
| const DtString & | guiTerrainName () const |
Public Member Functions inherited from DtSimInterfaceContent | |
| virtual | ~DtSimInterfaceContent () |
| virtual bool | update (const DtSimInterfaceContent *data) |
| virtual char * | netRep () |
| virtual void | printContentType (DtString &str) |
| virtual void | setUseSessionId (bool yesNo) |
| virtual bool | useSessionId () const |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Static Public Member Functions inherited from DtSimInterfaceContent | |
| static DtSimInterfaceContent * | createInterfaceContent (int type) |
| static void | addInterfaceContentCreatorFcn (int type, DtInterfaceContentCreatorFcn fcn) |
| static void | setFactory (DtInterfaceContentFactory *factory) |
| static DtInterfaceContentFactory * | factory () |
| static void | registerContentTypePrinter (DtSimInterfaceContentTypePrinterFcn printFcn) |
Additional Inherited Members | |
Protected Member Functions inherited from DtSimInterfaceContent | |
| DtSimInterfaceContent () | |
| DtSimInterfaceContent (const DtSimInterfaceContent &orig) | |
| const DtSimInterfaceContent & | operator= (const DtSimInterfaceContent &orig) |
| virtual char * | createNetworkBuffer () |
Static Protected Attributes inherited from DtSimInterfaceContent | |
| static DtInterfaceContentFactory * | myFactory |
| static DtSimInterfaceContentTypePrinterFcn | theContentTypePrinterFcn |
| typedef std::map<DtU16, int> DtIfStatus::ObjectCounts |
| DtIfStatus::DtIfStatus | ( | ) |
default constructor
|
overridevirtual |
destructor
| DtIfStatus::DtIfStatus | ( | const DtIfStatus & | orig | ) |
copy constructor
| DtIfStatus& DtIfStatus::operator= | ( | const DtIfStatus & | orig | ) |
assignment operator
|
overridevirtual |
Returns the type of Interface Content; DtStatusMessageType.
Implements DtSimInterfaceContent.
|
overridevirtual |
Implements DtSimInterfaceContent.
|
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 start simulation time.
|
virtual |
|
virtual |
The simulation time at which the back-end will pause the simulation. If 0 will run until the user presses the pause button.
|
virtual |
|
virtual |
Set faster or slower than real-time operation (defaults to 1.0).
|
virtual |
|
virtual |
Current control state of backend Valid values are either DtRunControlType or DtPauseControlType.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Deals with locally published objects. Keys are stored as high char of kind and low char of domain with the count of each.
Deals with locally published objects. Keys are stored as high char of kind and low char of domain with the count of each.
|
virtual |
Deals with locally published objects. Keys are stored as high char of kind and low char of domain with the count of each.
|
inline |
Deals with locally published objects. Keys are stored as high char of kind and low char of domain with the count of each.
|
virtual |
Clears out object coutns.
|
virtual |
If used, the unique scenario run id.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If this flag is true, this backend has been loaded with a scenario. Note that a scenario can be loaded, however, it might not be able to be simulated on.
|
virtual |
The ID of the sim engine. This is a simple ID that differentiates on sim engine from another.
The ID of the sim engine. This is a simple ID that differentiates on sim engine from another.
|
virtual |
Set to true if in the process of loading a scenario.
|
virtual |
Set to true if in the process of loading a scenario.
|
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 |
Set to true if in the process of saving a scenario.
|
virtual |
Set to true if in the process of saving a scenario.
|
virtual |
Set to true if in the process of loading a scenario.
|
virtual |
Set to true if in the process of loading a scenario.
|
virtual |
Set to true if in the process of importing a scenario.
|
virtual |
Set to true if in the process of importing a scenario.
|
virtual |
Set to true if this back-end is hosting a dynamic terrain server.
|
virtual |
Set to true if this back-end is hosting a dynamic terrain server.
|
virtual |
Set to true if in the process of creating a simulation object group.
|
virtual |
Set to true if in the process of creating a simulation object group.
|
virtual |
Set to true if in the process of closing a scenario.
|
virtual |
Set to true if in the process of closing a scenario.
|
virtual |
Set to true if in the process of rolling back a scenario.
|
virtual |
Set to true if in the process of rolling back a scenario.
|
virtual |
Set to true if a new scenario has just been loaded.
|
virtual |
Set to true if a new scenario has just been loaded.
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
static |
|
virtual |
Returns true if the simulation is loaded and the user can simulate on this back-end. Reused boolean from older scenarios.
|
virtual |
|
inline |
|
virtual |
|
virtual |
|
virtual |
Indicates the capabilities of the VRF Sim based application sending this status message.
|
virtual |
Indicates the capabilities of the VRF Sim based application sending this status message.
|
virtual |
Indicates the capabilities of the VRF Sim based application sending this status message.
|
virtual |
Monotonically-increasing counter, mirrored from the most recent non-heartbeat DtIfScenarioStatus sent by this backend. Receivers use it to detect a missed non-heartbeat.
|
virtual |
Monotonically-increasing counter, mirrored from the most recent non-heartbeat DtIfScenarioStatus sent by this backend. Receivers use it to detect a missed non-heartbeat.
|
virtual |
A human readable string indicating the type of application that is sending the status message, such as "VR-Forces Sim Engine" or "VR-Engage Sim Engine".
|
virtual |
A human readable string indicating the type of application that is sending the status message, such as "VR-Forces Sim Engine" or "VR-Engage Sim Engine".
|
inline |
Deprecated – used for backwards compatibility. Now part of DtIfScenarioStatus message.
|
inline |
Deprecated – used for backwards compatibility. Now part of DtIfScenarioStatus message.
|
inline |
Deprecated – used for backwards compatibility. Now part of DtIfScenarioStatus message.
|
protected |
New versions of status message have a version. The high word is a signal that the version exists, and the low word is the actual version. If this information does not exist it is assumed to be an older status message
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Bitfield indicating at what level this sim engine participates with the scenario.
|
protected |
String indicating what application this sim engine is, for example "VR-Forces Sim" or "VR-Engage Sim".
|
protected |
|
protected |
This map contains the count of kind/domain of objects available. The key is two chars high char is kind and low char is domain. The value is the count of those items.
|
protected |
|
protected |
Deprecated – used for backwards compatability. Now part of DtIfScenarioStatus message.
|
protected |
|
protected |