VPTissue Reference Manual
SimPT_Parex::WorkerRepresentative Class Reference

A worker taken as representative for multiple workers (handles the communication with the node). More...

#include <WorkerRepresentative.h>

Inheritance diagram for SimPT_Parex::WorkerRepresentative:
Inheritance graph
Collaboration diagram for SimPT_Parex::WorkerRepresentative:
Collaboration graph

Public Slots

void DoWork (const SimTask &)
 Pass the job to the worker.
 
void Setup ()
 Tries to connect to the worker and sets up the signals.
 

Signals

void Disconnected ()
 Emitted when the worker has disconnected.
 
void FinishedWork (const SimResult &)
 Emitted when the worker has finished his job and has the result ready.
 
void ReadyToWork ()
 Emitted when the worker is ready to do a new job.
 

Public Member Functions

 WorkerRepresentative (const QHostAddress &addr, quint16 port)
 Constructor for a worker without work.
 
 WorkerRepresentative (const QHostAddress &addr, quint16 port, int taskId, std::string taskName)
 Constructor for a reconnecting worker with finished work.
 
virtual ~WorkerRepresentative ()
 Destructor.
 
void Delete (const std::string name)
 Delete an exploration.
 
std::string GetExplName () const
 Gets the name current tasks' exploration.
 
const QHostAddress * GetSenderAddress () const
 Gets the address of the worker.
 
int GetSenderPort () const
 Gets the port of the worker.
 
int GetTaskId () const
 Gets the id of the currently executing task.
 
void StopTask ()
 Stop the current task.
 

Detailed Description

A worker taken as representative for multiple workers (handles the communication with the node).

Definition at line 36 of file WorkerRepresentative.h.


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