![]() |
VR-Forces 5.0.1 Developer's Guide
|
Batch mode allows you to run one or more scenarios multiple times, for a specified amount of time, without providing direct command input from a user interface. The DtRemoteBatchManager class controls the execution of a batch of scenarios. It can be used in applications that use the VRF remote control toolkit. This class is also instantiated by the VRF sim engine when a batch file is specified via the command line.

Protected Member Functions | |
| virtual double | currentSimulationTime () const |
| virtual void | startedLoading (const DtScenario &) |
| virtual void | backendsLoaded () |
| virtual void | scenarioRunComplete () |
| DtRemoteBatchManager () | |
| DtRemoteBatchManager (const DtRemoteBatchManager &orig) | |
| DtRemoteBatchManager & | operator= (const DtRemoteBatchManager &orig) |
Protected Attributes | |
| DtScenarioBatchIterator * | myBatchIterator |
| DtCommunicationManager * | myCommunicationManager |
| State | myState |
| bool | myRunning |
| bool | myDone |
| DtTime | myRunStartTime |
| bool | myBackendsLoaded |
| DtList | myCallbacks |
| DtBackendRemappingFcn | myRemappingFcn |
| void * | myRemappingFcnUserData |
| boost::signals2::connection | myPostAdvanceFrameConnection |
Private Types | |
| enum | State { StateIdle, StateRunStart, StateLoading, StateRunning, StateRunComplete, StateRunBatchComplete, StateErrorLoading, StateClosing } |
|
private |
| DtRemoteBatchManager::DtRemoteBatchManager | ( | DtCommunicationManager * | controller | ) |
|
virtual |
|
protected |
Not implemented. Do not use.
|
protected |
Not implemented. Do not use.
|
virtual |
Initializes the batch manager by connecting to necessary signals from the DtCommunicationManager.
|
virtual |
Loads the batch file specified and prepares it for running.
|
virtual |
Loads the batch file specified and prepares it for running.
|
virtual |
Puts batch manager in run mode. Running of batch will start on next tick. All scenarios are run in order, one after another.
|
virtual |
Aborts running of batch prematurely.
|
virtual |
Returns true if batch is currently running.
|
virtual |
Returns rue if batch has completed normally.
|
virtual |
Accessor for the Batch Iterator used in this batch manager. This iterator is used to iterate through a batch file and generate the scenarios that are to be run. Information about what percent of the batch has been executed and related statistics can be found in the iterator.
|
virtual |
Called by processBackendsLoadedCallback().
|
virtual |
Register scenario loading callbacks.
|
virtual |
|
virtual |
Register scenario loading error callbacks.
|
virtual |
|
virtual |
Register scenario batch run complete callbacks.
|
virtual |
|
virtual |
Register scenario closing callback.
|
virtual |
|
virtual |
Called to execute functions for a particular scenario state.
|
virtual |
Called to remove a particular callback of a particular type.
|
virtual |
Call this function to move onto the next scenario run in the batch (if there is one)
|
virtual |
Call this function to move onto the next scenario in the batch even if there are runs left in the current scenario.
|
virtual |
Set state to StateIdle.
|
virtual |
Set state to StateRunComplete.
|
virtual |
Monitors the execution of the scenario and starts a new one if necessary.
|
protected |
Not implemented. Do not use.
|
protectedvirtual |
Returns the current simulation time from the first back-end in the remote control list.
|
protectedvirtual |
Reimplemented in makVrf::DtVrlinkRemoteBatchManager.
|
protectedvirtual |
Reimplemented in makVrf::DtVrlinkRemoteBatchManager.
|
protectedvirtual |
Reimplemented in makVrf::DtVrlinkRemoteBatchManager.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |