15 #ifndef BORNAGAIN_GUI_SUPPORT_DATA_JOBWORKER_H
16 #define BORNAGAIN_GUI_SUPPORT_DATA_JOBWORKER_H
24 class SimulationResult;
45 const SimulationResult*
result()
const;
67 std::unique_ptr<const SimulationResult>
m_result;
JobStatus
The JobStatus enum lists the possible states of a job.
The JobWorker class provides running the domain simulation in a thread.
bool updateProgress(int percentage_done)
Sets current progress. Returns true if we want to continue the simulation.
QDateTime m_simulation_end
const QDateTime & simulationStart() const
QString failureMessage() const
QString identifier() const
bool m_terminate_request_flag
const SimulationResult * result() const
QDateTime m_simulation_start
JobWorker(QString identifier, ISimulation *simulation)
std::unique_ptr< const SimulationResult > m_result
const QDateTime & simulationEnd() const
QString m_failure_message
void terminate()
Sets request for JobRunner to terminate underlying domain simulation.
ISimulation * m_simulation