VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtVrfBatchScenarioManager Class Reference

The class that will contain information about the currently loaded scenario. More...

Inheritance diagram for makVrf::DtVrfBatchScenarioManager:
Inheritance graph
[legend]

List of all members.

Public Types

enum  State {
  StateIdle, StateRunStart, StateLoading, StateRunning,
  StateRunComplete, StateRunBatchComplete, StateErrorLoading, StateClosing
}
 Enumerations for state of batch run. More...

Public Member Functions

 DtVrfBatchScenarioManager (makVrv::DtDe &)
virtual ~DtVrfBatchScenarioManager ()
virtual void loadBatchScenario (QWidget *)
 Creates and shows the batch load scenario dialog.
virtual QFileDialogcreateLoadBatchScenarioDialog (QWidget *)
virtual bool loadBatchScenario (const QString &batch)
virtual bool runBatch ()
 Starts up the batch run.
bool isBatchRunning () const
DtScenarioBatchIteratorbatchIterator () const
bool runningBatchScenario () const
virtual void nextScenarioRun ()
 Call this function to move onto the next scenario run in the batch (if there is one)
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.
virtual bool close ()
 Stops the currently running batch scenario.

Static Public Member Functions

static DtVrfBatchScenarioManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager.

Public Attributes

boost::signal< void()> signal_stateRunStart
boost::signal< void()> signal_nextRunAboutToStart
 Sent after the last scenario has closed and next one is about to start.
boost::signal< void()> signal_batchRunComplete
 Sent when all batch files have been run.
boost::signal< void()> signal_errorLoadingScenario
boost::signal< void()> signal_scenarioRunComplete
 Signalled when a scenario run is complete.

Protected Member Functions

virtual void tick ()
virtual void idle ()
 Called in idle state.
virtual void startNextBatchScenario ()
 Starts by running the next batch.
virtual void loading ()
 Iterated over while waiting for scenario to load.
virtual void running ()
 Called when batch is running.
virtual double currentSimulationTime () const
 Returns the current simulation time from the first back-end in the remote control list.
virtual DtFilename constructLoggerFilename (const DtScenario *scenario)
virtual void allBackendsClosed ()
 Schedules next run.
virtual void loadScenarioError (const std::string &error, bool showMessage=true)
 Called when there is an error loading the scenario.
virtual void slot_scenarioLoadComplete ()
 Called after scenario is loaded.
virtual QString batchRunTitle (const DtScenario *) const
virtual void setMainWindowTitle (const QString &)
virtual QString mainWindowTitle () const

Protected Attributes

DtScenarioBatchIteratormyBatchIterator
makVrv::DtDemyDe
QString myBatchFile
bool myRunning
DtVrfScenarioRemapFunctionmyRemap
double myRunStartTime
State myState
QString myOriginalTitle

Detailed Description

The class that will contain information about the currently loaded scenario.


Member Enumeration Documentation

Enumerations for state of batch run.

Enumerator:
StateIdle 
StateRunStart 
StateLoading 
StateRunning 
StateRunComplete 
StateRunBatchComplete 
StateErrorLoading 
StateClosing 

Constructor & Destructor Documentation


Member Function Documentation

Returns instance of the messager.

Creates and shows the batch load scenario dialog.

virtual bool makVrf::DtVrfBatchScenarioManager::loadBatchScenario ( const QString &  batch) [virtual]

Starts up the batch run.

Call this function to move onto the next scenario run in the batch (if there is one)

Call this function to move onto the next scenario in the batch even if there are runs left in the current scenario.

Stops the currently running batch scenario.

virtual void makVrf::DtVrfBatchScenarioManager::tick ( ) [protected, virtual]
virtual void makVrf::DtVrfBatchScenarioManager::idle ( ) [protected, virtual]

Called in idle state.

virtual void makVrf::DtVrfBatchScenarioManager::startNextBatchScenario ( ) [protected, virtual]

Starts by running the next batch.

virtual void makVrf::DtVrfBatchScenarioManager::loading ( ) [protected, virtual]

Iterated over while waiting for scenario to load.

Will call slot_scenarioLoadComplete callback when loaded

virtual void makVrf::DtVrfBatchScenarioManager::running ( ) [protected, virtual]

Called when batch is running.

Will check time to see if current batch is over and next batch needs to be run

virtual double makVrf::DtVrfBatchScenarioManager::currentSimulationTime ( ) const [protected, virtual]

Returns the current simulation time from the first back-end in the remote control list.

virtual DtFilename makVrf::DtVrfBatchScenarioManager::constructLoggerFilename ( const DtScenario scenario) [protected, virtual]
virtual void makVrf::DtVrfBatchScenarioManager::allBackendsClosed ( ) [protected, virtual]

Schedules next run.

virtual void makVrf::DtVrfBatchScenarioManager::loadScenarioError ( const std::string &  error,
bool  showMessage = true 
) [protected, virtual]

Called when there is an error loading the scenario.

virtual void makVrf::DtVrfBatchScenarioManager::slot_scenarioLoadComplete ( ) [protected, virtual]

Called after scenario is loaded.

virtual QString makVrf::DtVrfBatchScenarioManager::batchRunTitle ( const DtScenario ) const [protected, virtual]
virtual void makVrf::DtVrfBatchScenarioManager::setMainWindowTitle ( const QString &  ) [protected, virtual]
virtual QString makVrf::DtVrfBatchScenarioManager::mainWindowTitle ( ) const [protected, virtual]

Member Data Documentation

Sent after the last scenario has closed and next one is about to start.

Sent when all batch files have been run.

Signalled when a scenario run is complete.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)