Class PowerModelDatacenterSimple

java.lang.Object
org.cloudbus.cloudsim.power.models.PowerModelDatacenter
org.cloudbus.cloudsim.power.models.PowerModelDatacenterSimple
All Implemented Interfaces:
PowerModel

public class PowerModelDatacenterSimple
extends PowerModelDatacenter
Simple power model defining the power consumption of a data center. It's power usage is the aggregated power usage of all hosts times the Power Usage Effectiveness (PUE).
Since:
CloudSim Plus 6.0.0
  • Constructor Details

    • PowerModelDatacenterSimple

      public PowerModelDatacenterSimple​(Datacenter datacenter)
      Instantiates a PowerModelDatacenterSimple for a given Datacenter, defining the Power Usage Effectiveness (PUE) as 1 (100%).
      Parameters:
      datacenter - the Datacenter for which the power model will be defined
  • 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.
    • getPowerUsageEffectiveness

      public double getPowerUsageEffectiveness()
      Gets the Power Usage Effectiveness (PUE) for this Power Model, defining how effective power usage is.
      Returns:
      a percentage value between [0 and 1]
    • setPowerUsageEffectiveness

      public void setPowerUsageEffectiveness​(double powerUsageEffectiveness)
      Sets the Power Usage Effectiveness (PUE) for this Power Model, defining how effective power usage is.
      Parameters:
      powerUsageEffectiveness - a percentage value between [0 and 1]