wrench::SimulationTimestampEnergyConsumption Class Reference
Inheritance diagram for wrench::SimulationTimestampEnergyConsumption:
wrench::SimulationTimestampType

Public Member Functions

 SimulationTimestampEnergyConsumption (std::string hostname, double joules)
 Constructor. More...
 
double getConsumption ()
 Get the energy consumption in joules. More...
 
std::string getHostname ()
 Get the hostname associated with this timestamp. More...
 
- Public Member Functions inherited from wrench::SimulationTimestampType
double getDate ()
 Retrieve the date recorded for this timestamp. More...
 

Constructor & Destructor Documentation

◆ SimulationTimestampEnergyConsumption()

wrench::SimulationTimestampEnergyConsumption::SimulationTimestampEnergyConsumption ( std::string  hostname,
double  joules 
)

Constructor.

Parameters
hostnamethe host on which this energy consumption timestamp applies to
joulesthe energy consumption in joules

Member Function Documentation

◆ getConsumption()

double wrench::SimulationTimestampEnergyConsumption::getConsumption ( )

Get the energy consumption in joules.

Returns
energy consumed by this host in joules

◆ getHostname()

std::string wrench::SimulationTimestampEnergyConsumption::getHostname ( )

Get the hostname associated with this timestamp.

Returns
the hostname associated with this timestamp

The documentation for this class was generated from the following files:
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/include/wrench/simulation/SimulationTimestampTypes.h
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/simulation/SimulationTimestampTypes.cpp