Class PowerModelDatacenter
java.lang.Object
org.cloudbus.cloudsim.power.models.PowerModelDatacenter
- All Implemented Interfaces:
PowerModel
- Direct Known Subclasses:
PowerModelDatacenterSimple
Abstract implementation of a data center power model.
- Since:
- CloudSim Plus 6.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.cloudbus.cloudsim.power.models.PowerModelDatacenterNull
An attribute that implements the Null Object Design Pattern forPowerModelDatacenter
objects. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the Datacenter this PowerModel is collecting power consumption measurements from.final void
setDatacenter
(Datacenter datacenter) Sets the Datacenter this PowerModel will collect power consumption measurements from.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cloudbus.cloudsim.power.models.PowerModel
getPower, getPowerMeasurement
-
Field Details
-
NULL
public static final org.cloudbus.cloudsim.power.models.PowerModelDatacenterNull NULLAn attribute that implements the Null Object Design Pattern forPowerModelDatacenter
objects.
-
-
Constructor Details
-
PowerModelDatacenter
public PowerModelDatacenter()
-
-
Method Details
-
getDatacenter
Gets the Datacenter this PowerModel is collecting power consumption measurements from.- Returns:
-
setDatacenter
Sets the Datacenter this PowerModel will collect power consumption measurements from.- Parameters:
datacenter
- the Datacenter to set
-