Package org.cloudbus.cloudsim.power
Interface PowerAware<T extends PowerModel>
- Type Parameters:
T
- type of thePowerModel
objects the entity will use.
- 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 TypeMethodDescriptionGets 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
-