Package org.cloudbus.cloudsim.resources
Class Bandwidth
java.lang.Object
org.cloudbus.cloudsim.resources.ResourceAbstract
org.cloudbus.cloudsim.resources.ResourceManageableAbstract
org.cloudbus.cloudsim.resources.Bandwidth
- All Implemented Interfaces:
Resource
,ResourceCapacity
,ResourceManageable
Represents the Bandwidth (BW) capacity of a PM or VM in Megabits/s.
Such a class allows managing the BW capacity and allocation.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from class org.cloudbus.cloudsim.resources.ResourceAbstract
capacity
Fields inherited from interface org.cloudbus.cloudsim.resources.ResourceManageable
NULL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.cloudbus.cloudsim.resources.ResourceManageableAbstract
addCapacity, allocateResource, deallocateAllResources, deallocateAndRemoveResource, deallocateResource, getAvailableResource, removeCapacity, setAllocatedResource, setAvailableResource, setCapacity, sumAvailableResource, sumCapacity, toString
Methods inherited from class org.cloudbus.cloudsim.resources.ResourceAbstract
getAllocatedResource, getCapacity, getUnit, isAmountAvailable, isAmountAvailable, isResourceAmountBeingUsed, isSuitable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.cloudbus.cloudsim.resources.Resource
getAllocatedResource, getPercentUtilization, getUnit, isAmountAvailable, isAmountAvailable, isAmountAvailable, isFull, isSubClassOf
Methods inherited from interface org.cloudbus.cloudsim.resources.ResourceCapacity
getCapacity
Methods inherited from interface org.cloudbus.cloudsim.resources.ResourceManageable
allocateResource, deallocateResource, isResourceAmountBeingUsed, isSuitable, setAllocatedResource
-
Constructor Details
-
Bandwidth
public Bandwidth(long capacity) Creates a new Bandwidth resource.- Parameters:
capacity
- the bandwidth capacity in in Megabits/s
-