3 #ifndef __Simulation_Worker_H__
4 #define __Simulation_Worker_H__
5 #pragma region Includes
7 #include <QReadWriteLock>
8 #include <Simulation/Simulation.h>
9 #include <InfoStruct/InfoStruct.h>
11 using namespace MDSimulation;
13 namespace SchedulerGUI {
64 const QString& outDir);
76 void ChangeRunState(
bool state);
87 void ChangeLiveState(
bool state);
96 void HaltSimulation();
123 void WriteLogMsg(
const QString& msg);
135 void LogMsgReady(
const QString& logMessage);
141 void SavePointCreated(
unsigned long long savePointNumber);
142 void SavePointCreated();
149 void ChangedRunState(
const bool state);
150 void ChangedRunState();
158 void ChangedLiveState(
const bool state);
159 void ChangedLiveState();
175 void Error(
const QString& message);
203 void SetWillWriteLog(
bool value);
207 bool GetWillWriteLog();
252 #endif // !__Simulation_Thread_H__
bool RunState_
The run state of the simulation. 'true' means the simulation is running. 'false' means the simulation...
Definition: SimulationWorker.h:232
Worker object for running an instance of the simulation.
Definition: SimulationWorker.h:28
bool WillWriteLog_
Indicates if parameters and simulation constants will be written to a string so they can be displayed...
Definition: SimulationWorker.h:239
QReadWriteLock Mutex_
Mutex used for safeguarding state reads and writes between threads.
Definition: SimulationWorker.h:243
bool StartNew_
Flag that prompts the worker to start a new instance of the simulation.
Definition: SimulationWorker.h:223
QString OutputDir_
Local copy of the directory path used to store the simulation output.
Definition: SimulationWorker.h:216
Handles the running of the simulation with all the necessary requirements and conditions.
Definition: SimulationController.h:17
bool IsWorking_
Indicates whether the event loop is active or not.
Definition: SimulationWorker.h:219
InfoStruct Parameters_
Local copy of the parameters used to instantiate the simulation.
Definition: SimulationWorker.h:212
Stores the results of the simulation after the simulation has been terminated.
Definition: SimulationWorker.h:19
bool LiveState_
Indicates if parameters are loaded and an instance of the simulation has been created, whether it is running or not.
Definition: SimulationWorker.h:227
bool HaltSim_
Halts the simulation when set to true.
Definition: SimulationWorker.h:235
Defines the structure used to hold the configurable constants of the simulation.
Definition: InfoStruct.h:36