Package org.cloudbus.cloudsim.power
Interface PowerAware<T extends PowerModel>
- All Known Subinterfaces:
Datacenter
,Host
- All Known Implementing Classes:
DatacenterSimple
,HostSimple
,NetworkDatacenter
,NetworkHost
public interface PowerAware<T extends PowerModel>
Interface for power-aware entities such as
Host
s, Datacenter
s
and other entities that can be introduced.- Since:
- CloudSim Plus 6.0.0
-
Method Summary
Modifier and Type Method Description T
getPowerModel()
Gets the model defining how the entity consumes power.void
setPowerModel(T powerModel)
Sets the model defining how the entity consumes power.
-
Method Details
-
getPowerModel
T getPowerModel()Gets the model defining how the entity consumes power.- Returns:
-
setPowerModel
Sets the model defining how the entity consumes power.- Parameters:
powerModel
- the model to set
-