![]() |
VR-Forces 4.8 Class Documentation
|
class DtRemoteBatchManager More...
Public Member Functions | |
| DtRemoteBatchManager (DtVrfRemoteController *controller, DtExerciseConn *exConn) | |
| virtual | ~DtRemoteBatchManager () |
| virtual bool | init () |
| Instantiates the DtBatchManagerCore class. More... | |
| virtual bool | loadBatch (const DtFilename &batchFileName, DtBackendRemappingFcn fcn=NULL, void *userData=NULL) |
| virtual bool | loadBatch (const DtScenarioBatch &batch, DtBackendRemappingFcn fcn=NULL, void *userData=NULL) |
| virtual bool | runBatch () |
| Puts batch manager in run mode. More... | |
| virtual bool | stopBatch () |
| Aborts running of batch prematurely. More... | |
| virtual bool | running () |
| True if batch is currently running. More... | |
| virtual bool | done () |
| True if batch has completed normally. More... | |
| virtual const DtScenarioBatchIterator * | batchIterator () |
| accessor for the Batch Iterator used in this batch manager. More... | |
| virtual void | processBackendsLoadedCallback () |
| Called by processBackendsLoadedCallback(). More... | |
| virtual void | addScenarioLoadingCallback (DtScenarioCallbackFcn fcn, void *usr) |
| Register scenario loading callbacks. More... | |
| virtual void | removeScenarioLoadingCallback (DtScenarioCallbackFcn fcn, void *usr) |
| virtual void | addScenarioLoadingErrorCallback (DtScenarioCallbackFcn fcn, void *usr) |
| Register scenario loading error callbacks. More... | |
| virtual void | removeScenarioLoadingErrorCallback (DtScenarioCallbackFcn fcn, void *usr) |
| virtual void | addScenarioBatchCompleteCallback (DtScenarioCallbackFcn fcn, void *usr) |
| Register scenario batch run complete callbacks. More... | |
| virtual void | removeScenarioBatchCompleteCallback (DtScenarioCallbackFcn fcn, void *usr) |
| virtual void | addScenarioClosingCallback (DtScenarioCallbackFcn fcn, void *usr) |
| Register scenario closing callback. More... | |
| virtual void | removeScenarioClosingCallback (DtScenarioCallbackFcn fcn, void *usr) |
| virtual void | processScenarioCallbacksForState (const State &state) |
| Called to execute functions for a particular scenario state. More... | |
| virtual void | removeCallbacksFor (DtScenarioCallbackFcn fcn, void *usrData, const State state) |
| Called to remove a particular callback of a particular type. More... | |
| virtual void | nextScenarioRun () |
| Call this function to move onto the next scenario run in the batch (if there is one) More... | |
| virtual void | nextScenario () |
| Call this function to move onto the next scenario in the batch even if there are runs left in the current scenario. More... | |
| virtual void | idle () |
| Set state to StateIdle. More... | |
| virtual void | scheduleNextRun () |
| Set state to StateRunComplete. More... | |
Static Public Member Functions | |
| static void | tickCb (void *usr) |
| Post drain callback - calls tick(). More... | |
| static void | backendsLoadedCallback (void *usr) |
| Callback from remote controller called when all backends have finished loading and are ready to run. More... | |
Protected Member Functions | |
| DtRemoteBatchManager () | |
| Not implemented. Do not use. More... | |
| DtRemoteBatchManager (const DtRemoteBatchManager &orig) | |
| DtRemoteBatchManager & | operator= (const DtRemoteBatchManager &orig) |
| virtual DtFilename | constructLoggerFilename (const DtScenario *scenario) |
| Constructs a filename for the logger file to record the given scenario in. More... | |
| virtual void | tick () |
| Monitors the execution of the scenario and starts a new one if necessary. More... | |
| virtual double | currentSimulationTime () const |
| Returns the current simulation time from the first back-end in the remote control list. More... | |
Protected Attributes | |
| DtExerciseConn * | myExConn |
| DtScenarioBatchIterator * | myBatchIterator |
| DtRemoteLoggerController * | myLoggerControl |
| DtVrfRemoteController * | myRemoteController |
| DtClock * | myClock |
| State | myState |
| bool | myRunning |
| bool | myDone |
| DtTime | myRunStartTime |
| bool | myBackendsLoaded |
| DtList | myCallbacks |
| DtBackendRemappingFcn | myRemappingFcn |
| void * | myRemappingFcnUserData |
Private Types | |
| enum | State { StateIdle, StateRunStart, StateLoading, StateRunning, StateRunComplete, StateRunBatchComplete, StateErrorLoading, StateClosing } |
| Enumerations for state of batch run. More... | |
class DtRemoteBatchManager
Instances of DtRemoteBatchManager control the execution of scenario batch files remotely in one or more back-end applications using a DtVrfRemoteController. It also controls a logger though a DtRemoteLoggerController if that option is specified in the scenario batch.
|
private |
| DtRemoteBatchManager::DtRemoteBatchManager | ( | DtVrfRemoteController * | controller, |
| DtExerciseConn * | exConn | ||
| ) |
|
virtual |
|
protected |
Not implemented. Do not use.
|
protected |
|
virtual |
Instantiates the DtBatchManagerCore class.
|
virtual |
|
virtual |
|
virtual |
Puts batch manager in run mode.
Running of batch will start on next tick.
|
virtual |
Aborts running of batch prematurely.
|
virtual |
True if batch is currently running.
|
virtual |
True if batch has completed normally.
|
virtual |
accessor for the Batch Iterator used in this batch manager.
|
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.
|
static |
Post drain callback - calls tick().
|
static |
Callback from remote controller called when all backends have finished loading and are ready to run.
|
protected |
|
protectedvirtual |
Constructs a filename for the logger file to record the given scenario in.
|
protectedvirtual |
Monitors the execution of the scenario and starts a new one if necessary.
|
protectedvirtual |
Returns the current simulation time from the first back-end in the remote control list.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |