1 #ifndef SIMPT_PAREX_WORKER_NODE_H_INCLUDED
2 #define SIMPT_PAREX_WORKER_NODE_H_INCLUDED
25 #include <QHostAddress>
66 void ConnectionReceived();
67 void Delete(
const std::string& name);
68 void DisplayError(
const std::string&)
const;
70 void HandleError(QAbstractSocket::SocketError);
71 void StartedWork(
const SimTask* task);
76 void StartAdvertiser();
80 QThread* m_simulator_thread;
87 QHostAddress m_last_address;
88 std::queue<const SimTask*> m_queue;
89 std::queue<SimResult> m_results;
93 static const int g_broadcast_port;
98 #endif // end-of-include-guard
Interface for the NodeAdvertiser.
see the online Qt documentation
A container class for the final result of a simulation.
Class that implements the node version of the protocol.
void NewTask(const SimTask &)
Emitted whenever a new task is ready to be simulated.
Class advertising an available node over the network.
virtual ~WorkerNode()
Destroy the node, closing all open connections.
Broadcasts location on the network, then listens to incoming connections.
Simulator handling requested simulation tasks.
Namespace for SimPT parameter explorer package.
Contains all information needed for a transmitable simulation task.
see the online Qt documentation
WorkerNode(Simulator *simulator, bool verbose=true, QObject *parent=nullptr)
Constructor immediately starts trying to connect to a server.