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
-
Field Summary
Fields inherited from class org.cloudbus.cloudsim.power.models.PowerModelDatacenter
NULL
-
Constructor Summary
Constructors Constructor Description PowerModelDatacenterSimple(Datacenter datacenter)
Instantiates a PowerModelDatacenterSimple for a given Datacenter, defining the Power Usage Effectiveness (PUE) as 1 (100%). -
Method Summary
Modifier and Type Method Description PowerMeasurement
getPowerMeasurement()
Returns the entity's current power usage as aPowerMeasurement
, which can hold additional information like static and dynamic fraction of power usage.double
getPowerUsageEffectiveness()
Gets the Power Usage Effectiveness (PUE) for this Power Model, defining how effective power usage is.void
setPowerUsageEffectiveness(double powerUsageEffectiveness)
Sets the Power Usage Effectiveness (PUE) for this Power Model, defining how effective power usage is.Methods inherited from class org.cloudbus.cloudsim.power.models.PowerModelDatacenter
getDatacenter, setDatacenter
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.PowerModel
getPower
-
Constructor Details
-
PowerModelDatacenterSimple
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
Description copied from interface:PowerModel
Returns the entity's current power usage as aPowerMeasurement
, 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]
-