Class PowerModelHostSimple
java.lang.Object
org.cloudsimplus.power.models.PowerModelHostAbstract
org.cloudsimplus.power.models.PowerModelHostSimple
- All Implemented Interfaces:
PowerModel,PowerModelHost
Simple power model for hosts with linear power consumption
according to the CPU utilization percentage.
- Since:
- CloudSim Plus 6.0.0
- See Also:
-
Field Summary
Fields inherited from interface org.cloudsimplus.power.models.PowerModelHost
NULL -
Constructor Summary
ConstructorsConstructorDescriptionPowerModelHostSimple(double maxPower, double staticPower) Instantiates aPowerModelHostSimpleby specifying its static and max power usage. -
Method Summary
Methods inherited from class org.cloudsimplus.power.models.PowerModelHostAbstract
addShutDownTotals, addStartupTotals, getPower, setShutDownPower, setStartupPower, validatePowerMethods 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
getPowerMethods inherited from interface org.cloudsimplus.power.models.PowerModelHost
getHost, getShutDownPower, getStartupPower, getTotalShutDownPower, getTotalShutDownTime, getTotalStartupPower, getTotalStartups, getTotalStartupTime, setHost
-
Constructor Details
-
PowerModelHostSimple
public PowerModelHostSimple(double maxPower, double staticPower) Instantiates aPowerModelHostSimpleby specifying its static and max power usage.- Parameters:
maxPower- power (in watts) the host consumes under a full load.staticPower- power (in watts) the host consumes when idle.
-
-
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:
-
getPowerInternal
public double getPowerInternal(double utilizationFraction) - Specified by:
getPowerInternalin classPowerModelHostAbstract- See Also:
-