Gadget
Public Member Functions | List of all members
SlaveCommunication Class Reference

The class SlaveCommunication handles netcommunication for a slave process communicating with a master process using PVM. It provides functions for starting/stopping communication with master and sending/receiving data to/from master. The class can receive data of the type: NetDataVariables and CharPtrVector and send data of the type: NetDataResult. To successfully start netcommunication pvmd must be running on host and the process must have been spawned by a master process. More...

#include <slavecommunication.h>

Collaboration diagram for SlaveCommunication:
Collaboration graph

Public Member Functions

 SlaveCommunication ()
 
 ~SlaveCommunication ()
 
void printErrorMsg (const char *errorMsg)
 
int startNetCommunication ()
 
void stopNetCommunication ()
 
int receive ()
 
int receiveFromMaster ()
 
int send (NetDataResult *sendData)
 
int sendToMaster (double res)
 
int receivedVector ()
 
void getVector (double *vec)
 
int getReceiveType ()
 
int receiveString ()
 
int receiveBound ()
 
int receivedString ()
 
int receivedBounds ()
 
void getBound (double *vec)
 
const ParametergetString (int num)
 
const ParameterVectorgetStringVector ()
 

Detailed Description

The class SlaveCommunication handles netcommunication for a slave process communicating with a master process using PVM. It provides functions for starting/stopping communication with master and sending/receiving data to/from master. The class can receive data of the type: NetDataVariables and CharPtrVector and send data of the type: NetDataResult. To successfully start netcommunication pvmd must be running on host and the process must have been spawned by a master process.

Constructor & Destructor Documentation

◆ SlaveCommunication()

SlaveCommunication::SlaveCommunication ( )

◆ ~SlaveCommunication()

SlaveCommunication::~SlaveCommunication ( )

Member Function Documentation

◆ getBound()

void SlaveCommunication::getBound ( double *  vec)

◆ getReceiveType()

int SlaveCommunication::getReceiveType ( )

◆ getString()

const Parameter & SlaveCommunication::getString ( int  num)

◆ getStringVector()

const ParameterVector & SlaveCommunication::getStringVector ( )

◆ getVector()

void SlaveCommunication::getVector ( double *  vec)

◆ printErrorMsg()

void SlaveCommunication::printErrorMsg ( const char *  errorMsg)

◆ receive()

int SlaveCommunication::receive ( )

◆ receiveBound()

int SlaveCommunication::receiveBound ( )

◆ receivedBounds()

int SlaveCommunication::receivedBounds ( )

◆ receivedString()

int SlaveCommunication::receivedString ( )

◆ receivedVector()

int SlaveCommunication::receivedVector ( )

◆ receiveFromMaster()

int SlaveCommunication::receiveFromMaster ( )

◆ receiveString()

int SlaveCommunication::receiveString ( )

◆ send()

int SlaveCommunication::send ( NetDataResult sendData)

◆ sendToMaster()

int SlaveCommunication::sendToMaster ( double  res)

◆ startNetCommunication()

int SlaveCommunication::startNetCommunication ( )

◆ stopNetCommunication()

void SlaveCommunication::stopNetCommunication ( )

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