VPTissue Reference Manual
SimPT_Parex::WorkerNode Class Reference

Broadcasts location on the network, then listens to incoming connections. More...

#include <WorkerNode.h>

Inheritance diagram for SimPT_Parex::WorkerNode:
Inheritance graph
Collaboration diagram for SimPT_Parex::WorkerNode:
Collaboration graph

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

SimPT_Parex::WorkerNode::WorkerNode ( Simulator simulator,
bool  verbose = true,
QObject parent = nullptr 
)

Constructor immediately starts trying to connect to a server.

Parameters
simulatorThe simulator of the worker node (takes ownership)
verboseWhether to print information to the standard output or not
parentThe QObject parent of this object

Definition at line 42 of file WorkerNode.cpp.

References NewTask().


The documentation for this class was generated from the following files: