1 #ifndef SIMPT_PAREX_WORKER_REPRESENTATIVE_H_INCLUDED
2 #define SIMPT_PAREX_WORKER_REPRESENTATIVE_H_INCLUDED
27 #include <QHostAddress>
65 void Delete(
const std::string name);
87 void DisplayError(QAbstractSocket::SocketError error)
const;
88 void DisplayError(
const std::string &s)
const;
99 std::string m_currentTaskName;
104 #endif // end-of-include-guard
void Setup()
Tries to connect to the worker and sets up the signals.
A container class for the final result of a simulation.
void DoWork(const SimTask &)
Pass the job to the worker.
Protocol at the server side to communicate with the node.
WorkerRepresentative(const QHostAddress &addr, quint16 port)
Constructor for a worker without work.
int GetSenderPort() const
Gets the port of the worker.
void ReadyToWork()
Emitted when the worker is ready to do a new job.
Interface for ServerNodeProtocol.
void FinishedWork(const SimResult &)
Emitted when the worker has finished his job and has the result ready.
void StopTask()
Stop the current task.
int GetTaskId() const
Gets the id of the currently executing task.
const QHostAddress * GetSenderAddress() const
Gets the address of the worker.
void Delete(const std::string name)
Delete an exploration.
std::string GetExplName() const
Gets the name current tasks' exploration.
Namespace for SimPT parameter explorer package.
Contains all information needed for a transmitable simulation task.
see the online Qt documentation
void Disconnected()
Emitted when the worker has disconnected.
A worker taken as representative for multiple workers (handles the communication with the node)...
virtual ~WorkerRepresentative()
Destructor.