PowerModelAbstract

public abstract class PowerModelAbstract implements PowerModel

An abstract implementation of a PowerModel.

Author:raysaoliveira

Methods

getEnergyLinearInterpolation

public double getEnergyLinearInterpolation(double fromUtilization, double toUtilization, double time)

getHost

public Host getHost()

getPower

public double getPower()

getPower

public final double getPower(double utilization)

getPowerInternal

protected abstract double getPowerInternal(double utilization)

An internal method to be implemented by sub classes to get the power consumption for the current CPU utilization.

The basic parameter validation is performed by the getPower(double) method.

Parameters:
  • utilization – the utilization percentage (between [0 and 1]) of a resource that is critical for power consumption.
Throws:
Returns:

the power consumption

setHost

public final void setHost(Host host)