1 #ifndef SIMPT_PAREX_WORKER_POOL_H_INCLUDED
2 #define SIMPT_PAREX_WORKER_POOL_H_INCLUDED
28 #include <QSignalMapper>
69 void Delete(std::string name);
96 void handleDatagrams();
105 QUdpSocket *m_socket;
106 QTcpSocket *m_tcpSocket;
108 QSignalMapper *m_mapper;
109 QSignalMapper *m_release_mapper;
110 std::list<WorkerRepresentative*> m_available_list;
111 std::list<WorkerRepresentative*> m_busy_list;
112 std::list<QString> m_connected_list;
114 QTimer *m_initialize_timer;
118 QTimer *m_check_timer;
123 #endif // end-of-include-guard
bool WorkerAvailable()
Checks to see if a worker is ready to do some work.
void Delete(std::string name)
Delete an exploration on every node.
void ReleaseWorker(QObject *)
When a worker disconnects, this slot should be fired.
void MakeProcessAvailable(QObject *)
When a worker has finished his work, this slot should be fired.
A pool handling the workers that will do the actual work.
static WorkerPool * globalInstance()
A static method to get the instance of the workerPool.
void NewWorkerAvailable()
Emitted when a worker is ready for work.
void SetMinNumWorkers(int)
Set the minimum number of workers.
void WorkerReconnected(WorkerRepresentative *)
Emitted when a worker has reconnected after being disconnected.
WorkerRepresentative * getProcess()
Gets a process doing nothing if one is available, otherwise returns 0.
Namespace for SimPT parameter explorer package.
see the online Qt documentation
A worker taken as representative for multiple workers (handles the communication with the node)...
Interface for WorkerRepresentative.