Handles the running of the simulation with all the necessary requirements and conditions.
More...
#include <SimulationController.h>
|
bool | Start (const InfoStruct ¶meters, const QString &outputDir) |
| Attempts to start a new instance of the simulation. More...
|
|
bool | Start (const InfoStruct ¶meters) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
bool | Pause () |
| Attempts to halt the simulation temporarily. More...
|
|
bool | Resume () |
| Attempts to resume a paused simulation. More...
|
|
bool | Stop () |
| Attempts to stop the simulation completely. More...
|
|
|
QThread * | SimThread_ |
| Thread used for running the simulation.
|
|
SimulationWorker * | SimWorker_ |
| Worker in charged of running the simulation. NOTE: QObjects cannot be copied or passed. However, by design, pointers of QObjects are legal.
|
|
QString | OutputDir_ |
| The directory where the simulation output will be written to.
|
|
Handles the running of the simulation with all the necessary requirements and conditions.
SimulationController::~SimulationController |
( |
| ) |
|
Destructor.
Terminate any running loops and kill the thread.
bool SimulationController::Pause |
( |
| ) |
|
|
slot |
Attempts to halt the simulation temporarily.
- Returns
bool SimulationController::Resume |
( |
| ) |
|
|
slot |
Attempts to resume a paused simulation.
- Returns
bool SimulationController::Start |
( |
const InfoStruct & |
parameters, |
|
|
const QString & |
outputDir |
|
) |
| |
|
slot |
Attempts to start a new instance of the simulation.
- Parameters
-
parameters | is the parameters needed to create an instance of the simulation. |
outputDir | is the directory where the simulation output will bee stored into. |
- Returns
bool SimulationController::Start |
( |
const InfoStruct & |
parameters | ) |
|
|
slot |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters
-
parameters | is the parameters needed to create an instance of the simulation. |
bool SimulationController::Stop |
( |
| ) |
|
|
slot |
Attempts to stop the simulation completely.
- Returns
The documentation for this class was generated from the following files: