Package org.cloudbus.cloudsim.resources
Class Ram
- java.lang.Object
-
- org.cloudbus.cloudsim.resources.ResourceAbstract
-
- org.cloudbus.cloudsim.resources.ResourceManageableAbstract
-
- org.cloudbus.cloudsim.resources.Ram
-
- All Implemented Interfaces:
Resource
,ResourceCapacity
,ResourceManageable
public final class Ram extends ResourceManageableAbstract
Represents the RAM resource of a PM or VM in Mebabytes. Such a class allows managing the RAM 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
Constructors Constructor Description Ram(long capacity)
Creates a new RAM resource.
-
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, 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, isAmountAvailable, isAmountAvailable, isAmountAvailable, isFull, isObjectSubClassOf
-
Methods inherited from interface org.cloudbus.cloudsim.resources.ResourceCapacity
getCapacity
-
Methods inherited from interface org.cloudbus.cloudsim.resources.ResourceManageable
allocateResource, deallocateResource, isResourceAmountBeingUsed, isSuitable, setAllocatedResource
-
-