Class PowerModelHostSimple

java.lang.Object
org.cloudbus.cloudsim.power.models.PowerModelHost
org.cloudbus.cloudsim.power.models.PowerModelHostSimple
All Implemented Interfaces:
PowerModel

public class PowerModelHostSimple
extends PowerModelHost
Simple power model for hosts with linear power profile.
Since:
CloudSim Plus 6.0.0
  • Constructor Details

    • PowerModelHostSimple

      public PowerModelHostSimple​(double maxPower, double staticPower)
      Instantiates a PowerModelHostSimple by specifying its static and max power usage.
      Parameters:
      maxPower - power (in watts) the host consumes under full load.
      staticPower - power (in watts) the host consumes when idle.
  • Method Details

    • getPowerMeasurement

      public PowerMeasurement getPowerMeasurement()
      Description copied from interface: PowerModel
      Returns the entity's current power usage as a PowerMeasurement, which can hold additional information like static and dynamic fraction of power usage.
    • getPower

      public double getPower​(double utilizationFraction) throws IllegalArgumentException
      Computes the hosts power usage in Watts (W) at a certain degree of utilization. Mainly for backwards compatibility.
      Specified by:
      getPower in class PowerModelHost
      Parameters:
      utilizationFraction - the utilization percentage (between [0 and 1]) of the host.
      Returns:
      the power supply in Watts (W)
      Throws:
      IllegalArgumentException - if utilizationFraction is not between [0 and 1]
    • getMaxPower

      public double getMaxPower()
      Gets the maximum power (in watts) the host consumes under full load.
      Returns:
    • getStaticPower

      public double getStaticPower()
      Gets the static power (in watts) the host consumes when idle.
      Returns: