Class PowerModelSpecPower
java.lang.Object
org.cloudbus.cloudsim.power.models.PowerModelAbstract
org.cloudbus.cloudsim.power.models.PowerModelSpecPower
- All Implemented Interfaces:
PowerAware
,PowerModel
- Direct Known Subclasses:
PowerModelSpecPowerHpProLiantMl110G3PentiumD930
,PowerModelSpecPowerHpProLiantMl110G4Xeon3040
,PowerModelSpecPowerHpProLiantMl110G5Xeon3075
,PowerModelSpecPowerIbmX3250XeonX3470
,PowerModelSpecPowerIbmX3250XeonX3480
,PowerModelSpecPowerIbmX3550XeonX5670
,PowerModelSpecPowerIbmX3550XeonX5675
public abstract class PowerModelSpecPower extends PowerModelAbstract
The abstract class of power models created based on data from
SPEC power benchmark.
If you are using any algorithms, policies or workload included in the power package please cite the following paper:
- Since:
- CloudSim Toolkit 3.0
- Author:
- Anton Beloglazov
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PowerModelSpecPower()
-
Method Summary
Modifier and Type Method Description double
getMaxPower()
Gets the max power that can be supplied by the host in Watts (W).protected abstract double
getPowerData(int index)
Gets the power consumption for a given utilization percentage.protected double
getPowerInternal(double utilization)
An internal method to be implemented by sub classes to get the power supply for the current CPU utilization.Methods inherited from class org.cloudbus.cloudsim.power.models.PowerModelAbstract
getEnergyLinearInterpolation, getHost, getPower, getPower, setHost
-
Constructor Details
-
PowerModelSpecPower
public PowerModelSpecPower()
-
-
Method Details
-
getMaxPower
public double getMaxPower()Description copied from interface:PowerModel
Gets the max power that can be supplied by the host in Watts (W).- Returns:
- the max power supply in Watts (W)
-
getPowerInternal
protected double getPowerInternal(double utilization) throws java.lang.IllegalArgumentExceptionDescription copied from class:PowerModelAbstract
An internal method to be implemented by sub classes to get the power supply for the current CPU utilization.The basic parameter validation is performed by the
PowerModelAbstract.getPower(double)
method.- Specified by:
getPowerInternal
in classPowerModelAbstract
- Parameters:
utilization
- the utilization percentage (between [0 and 1]) of a resource that is critical for power supply.- Returns:
- the power supply for the given CPU utilization
- Throws:
java.lang.IllegalArgumentException
- when the utilization percentage is not between [0 and 1]
-
getPowerData
protected abstract double getPowerData(int index)Gets the power consumption for a given utilization percentage.- Parameters:
index
- the utilization percentage in the scale from [0 to 10], where 10 means 100% of utilization.- Returns:
- the power consumption for the given utilization percentage
-