wrench::HostHasChangedSpeedMessage Class Reference

A message sent by the HostStateChangeDetector to notify some listener that a host has changed speed. More...

#include <HostStateChangeDetectorMessage.h>

Inheritance diagram for wrench::HostHasChangedSpeedMessage:
wrench::HostStateChangeDetectorMessage wrench::SimulationMessage

Public Member Functions

 HostHasChangedSpeedMessage (std::string hostname, double speed)
 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::string hostname
 The name of the host that has tuned off.
 
double speed
 The host's (new) speed.
 
- 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::HostStateChangeDetectorMessage
 HostStateChangeDetectorMessage (std::string name)
 Constructor. More...
 

Detailed Description

A message sent by the HostStateChangeDetector to notify some listener that a host has changed speed.

Constructor & Destructor Documentation

◆ HostHasChangedSpeedMessage()

wrench::HostHasChangedSpeedMessage::HostHasChangedSpeedMessage ( std::string  hostname,
double  speed 
)
explicit

Constructor.

Parameters
hostnamethe name of the host that has changed speed
speedthe host's new speed

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