![]() |
VR-Forces Developer's Guide
|
Instances of DtBackend are created and maintained by a DtVrfBackendListener, and are containers for datum associated with a back-end.
Classes | |
| struct | SectionTime |
Public Types | |
| enum | Status { Unknown = 0, NotLoaded = 1, NotReady, Loaded, Ready, Playing, Paused, Loading, Closing, Saving, RollingBackScenario, ImportingScenario } |
| typedef std::map< int, SectionTime > | SectionTimes |
| typedef std::map< short, int > | ObjectCounts |
| typedef std::map<int, SectionTime> DtBackend::SectionTimes |
| 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, | ||
| const 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 |
The runtime load balancing scheme is what is used by the front-end to balance entities being created. Since every front-end must use this scheme is it part of the scenario and transmitted over the network as part of the status message. When the scheme is received the remote controller will get the scheme from the load balancing factory and set it as the scheme for creating of new objects.
|
virtual |
The runtime load balancing scheme is what is used by the front-end to balance entities being created. Since every front-end must use this scheme is it part of the scenario and transmitted over the network as part of the status message. When the scheme is received the remote controller will get the scheme from the load balancing factory and set it as the scheme for creating of new objects.
|
virtual |
The remote attachment balancing scheme is used to place objects on a particular back-end that are available for remote configuration. This is used in conjunction with the component attachment table.
|
virtual |
The remote attachment balancing scheme is used to place objects on a particular back-end that are available for remote configuration. This is used in conjunction with the component attachment table.
|
virtual |
Number of sections in this message.
Returns the section number at the given index. Use this section number to get the actual data.
|
inline |
|
inline |
accessor for frame rate mean a negative value indicates that no data has been sent
accessor for frame rate median a negative value indicates that no data has been sent
accessor for frame rate standard deviation a negative value indicates that no data has been sent
|
virtual |
accessor for minimum frame time a negative value indicates that no data has been sent
accessor for max frame time a negative value indicates that no data has been sent
|
virtual |
Ratio of simulation time to real (wallclock) time.
|
virtual |
Ratio of simulation time to real (wallclock) time.
|
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 |
The currently loaded scenario for backend, if any.
|
virtual |
The currently loaded scenario file for backend, if any. Different than scenarioName which is a short description of the scenario.
|
virtual |
The currently loaded scenario file for backend, if any. Different than scenarioName which is a short description of the scenario.
|
virtual |
Simulation model sets in use.
|
virtual |
Simulation model sets in use.
|
virtual |
The currently loaded terrain name, if any, for the backend.
|
virtual |
The currently loaded terrain name, if any, for the backend.
|
virtual |
Frame rate mode for the scenario this back-end is running in.
|
virtual |
Frame rate mode for the scenario this back-end is running in.
|
virtual |
Returns delta time.
|
virtual |
The terrain file name which the backend currently believes the GUI should be loading to join the terrain.
|
virtual |
The terrain file name which the backend currently believes the GUI should be loading to join the terrain.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Unique identifier for a simulation engine.
|
virtual |
Unique identifier for a simulation engine.
|
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 |
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 |
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 |
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.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Frame rate information.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |