![]() |
VR-Forces 4.8 Class Documentation
|
Instances of DtBackend are created and maintained by a DtVrfBackendListener, and are containers for datum associated with a back-end. More...
Public Types | |
| enum | Status { Unknown = 0, NotLoaded = 1, NotReady, Loaded, Ready, Playing, Paused, Loading, Closing, Saving, RollingBackScenario, ImportingScenario } |
| typedef std::map< short, int > | ObjectCounts |
Public Member Functions | |
| DtBackend (const DtSimulationAddress &addr, const DtInetAddr &ipAddr, int port, int state, bool isLoaded, DtTime exerciseStartTime, DtTime simTime, double timeMultiplier, DtClock *clock) | |
| constructor More... | |
| DtBackend (const DtSimulationAddress &addr) | |
| DtBackend () | |
| DtBackend (const DtBackend &) | |
| virtual | ~DtBackend () |
| destructor More... | |
| DtBackend & | operator= (const DtBackend &) |
| virtual const DtSimulationAddress & | address () const |
| returns the simulation address More... | |
| virtual void | printStatus () |
| dumps member data to standard out More... | |
| virtual Status | status () const |
| Current status of the back-end based on various flag settings. More... | |
| virtual bool | isInSimulatableState () const |
| Returns true if the back-end is in a simulatable state. More... | |
| virtual bool | isSimulatableStatus (DtBackend::Status) const |
| Return true if the current status means the back-end can be simulated. More... | |
| virtual bool | isInTransitionStatus () const |
| Returns true if this is a transitional status (loading, saving, closing, etc) More... | |
| virtual bool | isTransitionStatus (DtBackend::Status) const |
| virtual DtInetAddr | inetAddress () const |
| accessor for inet address More... | |
| virtual void | setInetAddress (DtInetAddr address) |
| mutator for inet address More... | |
| virtual unsigned int | port () const |
| accessor for port number More... | |
| virtual void | setPort (unsigned int port) |
| mutator for port number More... | |
| virtual int | controlState () const |
| accessor for control state More... | |
| virtual void | setControlState (int controlState) |
| mutator for control state More... | |
| virtual void | setScenarioRunId (int) |
| If used, the unique id of this scenario run. More... | |
| virtual int | scenarioRunId () const |
| virtual DtU32 | scenarioCapabilities () const |
| Indicates the capabilities this VRF based application. More... | |
| virtual void | setScenarioCapabilities (const DtU32 &) |
| virtual void | setAppIdRangeMax (int) |
| If this backend can support more than 65536 entities, the maximum app id that the back-end can take (starting at the default app id) before it runs out of space to create entities. More... | |
| virtual int | appIdRangeMax () const |
| virtual bool | isLoaded () const |
| accessor for loaded state. More... | |
| virtual bool | isLoadedAndCanSimulate () const |
| virtual void | setIsLoaded (bool b) |
| mutator for loaded state More... | |
| virtual bool | canSimulate () const |
| Accessor for simulation state. More... | |
| virtual void | setCanSimulate (bool) |
| virtual bool | loadingScenario () const |
| Accessor for a scenario being loaded. More... | |
| virtual void | setLoadingScenario (bool) |
| virtual bool | savingScenario () const |
| Accessor for a scenario being saved. More... | |
| virtual void | setSavingScenario (bool) |
| virtual bool | importingScenario () const |
| Accessor for a scenario being imported. More... | |
| virtual void | setImportingScenario (bool) |
| virtual bool | reinitializingScenario () const |
| Accessor for a scenario being reinitialized. More... | |
| virtual void | setReinitializingScenario (bool) |
| virtual bool | hostingDynamicTerrainServer () const |
| Accessor hosting dynamic terrain server. More... | |
| virtual void | setHostingDynamicTerrainServer (bool) |
| virtual bool | creatingSimulationObjectGroup () const |
| Accessor for a simulation object group being creating. More... | |
| virtual void | setCreatingSimulationObjectGroup (bool) |
| virtual bool | closingScenario () const |
| Accessor for a scenario being closed. More... | |
| virtual void | setClosingScenario (bool) |
| virtual bool | rollingBackScenario () const |
| Accessor for a scenario being rolled back. More... | |
| virtual void | setRollingBackScenario (bool) |
| virtual bool | loadedNewScenario () const |
| Accessor for a new scenario just been loaded. More... | |
| virtual void | setLoadedNewScenario (bool) |
| virtual const DtTime & | lastResponseTime () const |
| accessor for last response time More... | |
| virtual void | setLastResponseTime (const DtTime &time) |
| mutator for last response time More... | |
| virtual double | frameRateMean () const |
| accessor for frame rate mean a negative value indicates that no data has been sent More... | |
| virtual void | setFrameRateMean (double frameRateMean) |
| virtual double | frameRateMedian () const |
| accessor for frame rate median a negative value indicates that no data has been sent More... | |
| virtual void | setFrameRateMedian (double frameRateMedian) |
| virtual double | frameRateStandardDeviation () const |
| accessor for frame rate standard deviation a negative value indicates that no data has been sent More... | |
| virtual void | setFrameRateStandardDeviation (double frameRateStandardDeviation) |
| virtual double | minFrameRate () const |
| accessor for minimum frame time a negative value indicates that no data has been sent More... | |
| virtual void | setMinFrameRate (double minFrameRate) |
| virtual double | maxFrameRate () const |
| accessor for max frame time a negative value indicates that no data has been sent More... | |
| virtual void | setMaxFrameRate (double maxFrameRate) |
| virtual void | setExericseStartTime (DtTime time) |
| exericse start time in seconds. More... | |
| virtual DtTime | exerciseStartTime () |
| virtual void | setSimTime (DtTime time) |
| simulation time (simulation time elapsed since start of simulation) in seconds. More... | |
| virtual DtTime | simTime () |
| virtual void | setRunDurationTime (DtTime) |
| Amount of time simulation is scheduled to run. 0 means run until user stops. More... | |
| virtual DtTime | runDurationTime () const |
| virtual void | setSimStartSimTime (DtTime time) |
| simulation time at simulation load. More... | |
| virtual DtTime | simStartSimTime () const |
| virtual void | setTimeMultiplier (double multiplier) |
| Set faster or slower than real-time operation (defaults to 1.0). More... | |
| virtual double | timeMultiplier () const |
| virtual void | setIsCurrentParameterDb (bool flag) |
| flag indicating if parameter database loaded is current format or not. More... | |
| virtual bool | isCurrentParameterDb () const |
| virtual void | setResourceMonitorEnabled (bool flag) |
| virtual bool | resourceMonitorEnabled () const |
| virtual void | setIsTimeManaged (bool) |
| Returns true if back-end is time managed. Only valid for HLA. More... | |
| virtual bool | isTimeManaged () const |
| virtual double | dT () const |
| Returns delta time. More... | |
| virtual const DtSettingsObject * | lookupSetting (std::string name) const |
| Looks up a named DtSettingsObject. More... | |
| virtual void | setSetting (const DtSettingsObject *object) |
| Looks up the given setting by name in the settings map. More... | |
| virtual void | copySettingsMap (const DtSettingsMap &) |
| Copies settings from target into mySettingsMap. Removes all objects from settings map first. More... | |
| virtual double | simTimeToRealTimeRatio () const |
| Ratio of simulation time to real (wallclock) time. More... | |
| virtual void | setSimTimeToRealTimeRatio (double ratio) |
| virtual void | setScenarioName (const DtString &name) |
| The currently loaded scenario for backend, if any. More... | |
| virtual const DtString & | scenarioName () const |
| virtual void | setScenarioFilename (const DtFilename &name) |
| The currently loaded scenario file for backend, if any. More... | |
| virtual const DtFilename & | scenarioFilename () const |
| virtual void | setSimulationModelSets (const std::vector< DtFilename > &) |
| Simulation model sets in use. More... | |
| virtual const std::vector < DtFilename > & | simulationModelSets () const |
| virtual void | setTerrainName (const DtFilename &name) |
| The currently loaded terrain name, if any, for the backend. More... | |
| virtual const DtFilename & | terrainName () const |
| virtual void | setGuiTerrainName (const DtFilename &name) |
| The terrain file name which the backend currently believes the GUI should be loading to join the terrain. More... | |
| virtual const DtFilename & | guiTerrainName () const |
| virtual void | setSimEngineId (DtU32 id) |
| Unique identifier for a simulation engine. More... | |
| virtual DtU32 | simEngineId () const |
| virtual void | setObjectCounts (const std::map< DtU16, int > &) |
| virtual void | setObjectCounts (const ObjectCounts &) |
| virtual int | totalLocalObjects () const |
| const ObjectCounts & | objectCounts () const |
| virtual DtRwKeyValueList & | scenarioData () |
| Access the scenario data key value list. More... | |
| virtual const DtRwKeyValueList & | scenarioData () const |
Instances of DtBackend are created and maintained by a DtVrfBackendListener, and are containers for datum associated with a back-end.
| typedef std::map<short, int> DtBackend::ObjectCounts |
| enum DtBackend::Status |
| Enumerator | |
|---|---|
| Unknown |
These flags will represent the status of a back-end that is retrieved by calling the status() method. |
| NotLoaded | |
| NotReady |
This back-end has no scenario loaded. |
| Loaded |
This back-end cannot simulate a scenario. |
| Ready |
Loaded but not ready to simulate. |
| Playing |
This back-end is ready to simulate (i.e. can have simulation objects created on it and can be played) |
| Paused |
This back-end is currently playing a scenario. |
| Loading |
This back-end is currently paused. |
| Closing |
This back-end is currently loading a scenario. |
| Saving |
This back-end is currently closing a scenario. |
| RollingBackScenario |
This back-end is currenty saving a scenario. |
| ImportingScenario |
This back-end is rolling back a scenario. This back-end is importing a scenario |
| DtBackend::DtBackend | ( | const DtSimulationAddress & | addr, |
| const DtInetAddr & | ipAddr, | ||
| int | port, | ||
| int | state, | ||
| bool | isLoaded, | ||
| DtTime | exerciseStartTime, | ||
| DtTime | simTime, | ||
| double | timeMultiplier, | ||
| DtClock * | clock | ||
| ) |
constructor
| DtBackend::DtBackend | ( | const DtSimulationAddress & | addr | ) |
| DtBackend::DtBackend | ( | ) |
| DtBackend::DtBackend | ( | const DtBackend & | ) |
|
virtual |
destructor
|
virtual |
returns the simulation address
|
virtual |
dumps member data to standard out
|
virtual |
Current status of the back-end based on various flag settings.
|
virtual |
Returns true if the back-end is in a simulatable state.
|
virtual |
Return true if the current status means the back-end can be simulated.
|
virtual |
Returns true if this is a transitional status (loading, saving, closing, etc)
|
virtual |
|
virtual |
accessor for inet address
|
virtual |
mutator for inet address
|
virtual |
accessor for control state
|
virtual |
mutator for control state
|
virtual |
If used, the unique id of this scenario run.
|
virtual |
|
virtual |
Indicates the capabilities this VRF based application.
This doesn't specifically limit the capabilities of this class, but publishes this capabilities as part of the status, changing the way a VRF GUI or remote control application interacts with this application.
|
virtual |
|
virtual |
If this backend can support more than 65536 entities, the maximum app id that the back-end can take (starting at the default app id) before it runs out of space to create entities.
This range cannot overlay with other back-end ranges. -1 means that there can only be the one app id
|
virtual |
|
virtual |
accessor for loaded state.
It used to be that isLoaded() would be false if the back-end could also not simulate. This has been changed. If you wish to have the old behavior, call isLoadedAndCanSimulate. This isLoaded() just returns the value of the myIsLoaded flag.
|
virtual |
|
virtual |
mutator for loaded state
|
virtual |
Accessor for simulation state.
|
virtual |
|
virtual |
Accessor for a scenario being loaded.
|
virtual |
|
virtual |
Accessor for a scenario being saved.
|
virtual |
|
virtual |
Accessor for a scenario being imported.
|
virtual |
|
virtual |
Accessor for a scenario being reinitialized.
|
virtual |
|
virtual |
Accessor hosting dynamic terrain server.
|
virtual |
|
virtual |
Accessor for a simulation object group being creating.
|
virtual |
|
virtual |
Accessor for a scenario being closed.
|
virtual |
|
virtual |
Accessor for a scenario being rolled back.
|
virtual |
|
virtual |
Accessor for a new scenario just been loaded.
|
virtual |
|
virtual |
accessor for last response time
|
virtual |
mutator for last response time
|
virtual |
accessor for frame rate mean a negative value indicates that no data has been sent
|
virtual |
|
virtual |
accessor for frame rate median a negative value indicates that no data has been sent
|
virtual |
|
virtual |
accessor for frame rate standard deviation a negative value indicates that no data has been sent
|
virtual |
|
virtual |
accessor for minimum frame time a negative value indicates that no data has been sent
|
virtual |
|
virtual |
accessor for max frame time a negative value indicates that no data has been sent
|
virtual |
|
virtual |
Ratio of simulation time to real (wallclock) time.
|
virtual |
|
virtual |
exericse start time in seconds.
|
virtual |
|
virtual |
simulation time (simulation time elapsed since start of simulation) in seconds.
|
virtual |
|
virtual |
Amount of time simulation is scheduled to run. 0 means run until user stops.
|
virtual |
|
virtual |
simulation time at simulation load.
|
virtual |
|
virtual |
Set faster or slower than real-time operation (defaults to 1.0).
|
virtual |
|
virtual |
flag indicating if parameter database loaded is current format or not.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns true if back-end is time managed. Only valid for HLA.
|
virtual |
|
virtual |
The currently loaded scenario for backend, if any.
|
virtual |
|
virtual |
The currently loaded scenario file for backend, if any.
Different than scenarioName which is a short description of the scenario
|
virtual |
|
virtual |
Simulation model sets in use.
|
virtual |
|
virtual |
The currently loaded terrain name, if any, for the backend.
|
virtual |
|
virtual |
Returns delta time.
|
virtual |
The terrain file name which the backend currently believes the GUI should be loading to join the terrain.
|
virtual |
|
virtual |
Unique identifier for a simulation engine.
|
virtual |
|
virtual |
Looks up a named DtSettingsObject.
Note that DtSettingsObjects are not automatically published from the back-end; they must be requested by calling DtVrfBackendListener::requestBackendSetting.
|
virtual |
Looks up the given setting by name in the settings map.
If the setting already exists, it's contents will be overwritten with the new object. Otherwise, a clone of the object is added to the settings map. DtBackend does not assume ownership of objects passed into this function.
|
virtual |
Copies settings from target into mySettingsMap. Removes all objects from settings map first.
|
virtual |
Deals with locally published objects. Keys are stored as high char of kind and low char of domain with the count of each
|
virtual |
|
virtual |
|
inline |
|
virtual |
Access the scenario data key value list.
Note that these values are returned as strings so if you're getting something which is a file path (for instance "GuiObserverViews") make sure to use it to initialize a DtFilename and then take the value from that to make sure the slashes in the file path are properly converted.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Frame rate information.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
wall-clock time elapsed since last sim time was updated
|
protected |
Duration of last frame (simulation time).
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Map of DtSettingsObjects.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |