Interface PowerModel
- All Known Implementing Classes:
PowerModelDatacenter
,PowerModelDatacenterSimple
,PowerModelHost
,PowerModelHostSimple
,PowerModelHostSpec
public interface PowerModel
A common interface for implementing models of power consumption
for entities such as
Datacenter
s and Host
s.
A PowerModel computes the current power usage (in Watts) of an entity during the simulation.- Since:
- CloudSim Plus 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault double
getPower()
Returns the entity's current total power usage as a double value, representing the Watts consumed.Returns the entity's current power usage as aPowerMeasurement
, which can hold additional information like static and dynamic fraction of power usage.
-
Method Details
-
getPowerMeasurement
PowerMeasurement getPowerMeasurement()Returns the entity's current power usage as aPowerMeasurement
, which can hold additional information like static and dynamic fraction of power usage. -
getPower
default double getPower()Returns the entity's current total power usage as a double value, representing the Watts consumed.
-