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
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

    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

    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

    getPowerInKWatts
  • Constructor Details

  • 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.IllegalArgumentException
      Description 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 class PowerModelAbstract
      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