Class PowerModelDatacenterSimple
java.lang.Object
org.cloudsimplus.power.models.PowerModelDatacenter
org.cloudsimplus.power.models.PowerModelDatacenterSimple
- All Implemented Interfaces:
PowerModel
Simple power model defining the power consumption of a
Datacenter.
It's power usage is the aggregated power usage of all hosts, multiplied by the
Power Usage Effectiveness (PUE).- Since:
- CloudSim Plus 6.0.0
-
Field Summary
Fields inherited from class org.cloudsimplus.power.models.PowerModelDatacenter
NULL -
Constructor Summary
ConstructorsConstructorDescriptionPowerModelDatacenterSimple(Datacenter datacenter) Instantiates a PowerModelDatacenterSimple for a given Datacenter, defining the Power Usage Effectiveness (PUE) as 1 (100%). -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPowerUsageEffectiveness(double powerUsageEffectiveness) Sets the Power Usage Effectiveness (PUE) for this Power Model, defining how effective power usage is.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudsimplus.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
- Returns:
- the entity's current power usage as a
PowerMeasurementobject, which can hold additional information like static and dynamic fraction of power usage. - See Also:
-
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]
-