wrench::NetworkProximityComputeAnswerMessage Class Reference

A message received by a NetworkProximityService that updates its database of proximity values. More...

#include <NetworkProximityMessage.h>

Inheritance diagram for wrench::NetworkProximityComputeAnswerMessage:
wrench::NetworkProximityMessage wrench::ServiceMessage wrench::SimulationMessage

Public Member Functions

 NetworkProximityComputeAnswerMessage (std::pair< std::string, std::string > hosts, double proximity_value, double payload)
 Constructor. More...
 
- Public Member Functions inherited from wrench::SimulationMessage
 SimulationMessage (std::string name, double payload)
 Constructor. More...
 
virtual std::string getName ()
 Retrieve the message name. More...
 

Public Attributes

std::pair< std::string, std::string > hosts
 The hosts whose proximity values were calculated.
 
double proximity_value
 The computed proximity value.
 
- Public Attributes inherited from wrench::SimulationMessage
std::string name
 The message name.
 
double payload
 The message size in bytes.
 

Additional Inherited Members

- Protected Member Functions inherited from wrench::NetworkProximityMessage
 NetworkProximityMessage (std::string name, double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (std::string name, double payload)
 Constructor. More...
 

Detailed Description

A message received by a NetworkProximityService that updates its database of proximity values.

Constructor & Destructor Documentation

◆ NetworkProximityComputeAnswerMessage()

wrench::NetworkProximityComputeAnswerMessage::NetworkProximityComputeAnswerMessage ( std::pair< std::string, std::string >  hosts,
double  proximity_value,
double  payload 
)

Constructor.

Parameters
hostsa pair of hosts
proximity_valuethe proximity value between the pair of hosts
payloadthe message size in bytes

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