VPTissue Reference Manual
|
Broadcasts location on the network, then listens to incoming connections. More...
#include <WorkerNode.h>
Signals | |
void | NewTask (const SimTask &) |
Emitted whenever a new task is ready to be simulated. | |
Public Member Functions | |
WorkerNode (Simulator *simulator, bool verbose=true, QObject *parent=nullptr) | |
Constructor immediately starts trying to connect to a server. More... | |
virtual | ~WorkerNode () |
Destroy the node, closing all open connections. | |
Broadcasts location on the network, then listens to incoming connections.
The server then connects to this node and sends it a job. After completing the job the worker sends the answer back over the network.
Definition at line 43 of file WorkerNode.h.
SimPT_Parex::WorkerNode::WorkerNode | ( | Simulator * | simulator, |
bool | verbose = true , |
||
QObject * | parent = nullptr |
||
) |
Constructor immediately starts trying to connect to a server.
simulator | The simulator of the worker node (takes ownership) |
verbose | Whether to print information to the standard output or not |
parent | The QObject parent of this object |
Definition at line 42 of file WorkerNode.cpp.
References NewTask().