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 SPECpower 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
-
Fields inherited from interface org.cloudbus.cloudsim.power.models.PowerModel
NULL
-
-
Constructor Summary
Constructors Constructor Description PowerModelSpecPower()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
getMaxPower()
Gets the max power that can be consumed by the host in Watt-Second (Ws).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 consumption for the current CPU utilization.-
Methods inherited from class org.cloudbus.cloudsim.power.models.PowerModelAbstract
getEnergyLinearInterpolation, getHost, getPower, getPower, setHost
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cloudbus.cloudsim.power.models.PowerAware
getPowerInKWattsHour
-
-
-
-
Method Detail
-
getMaxPower
public double getMaxPower()
Description copied from interface:PowerModel
Gets the max power that can be consumed by the host in Watt-Second (Ws).- Returns:
- the max consumption power in Watt-Second (Ws)
-
getPowerInternal
protected double getPowerInternal(double utilization) throws IllegalArgumentException
Description copied from class:PowerModelAbstract
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
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 consumption.- Returns:
- the power consumption
- Throws:
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
-
-