Class PeProvisionerSimple
java.lang.Object
org.cloudsimplus.provisioners.ResourceProvisionerAbstract
org.cloudsimplus.provisioners.ResourceProvisionerSimple
org.cloudsimplus.provisioners.PeProvisionerSimple
- All Implemented Interfaces:
PeProvisioner,ResourceProvisioner
A best-effort PeProvisioner policy used by a Host to provide its physical Pes as virtual PEs to Vms:
- if there are MIPS available on the physical PE, it allocates to a virtual PE;
- otherwise, it fails.
Each Host's PE must have its own instance of a PeProvisioner. When extending this class,
you must ensure that the field availableMips will always
contain the amount of free MIPS available for future allocations.
- Since:
- CloudSim Toolkit 2.0
- Author:
- Anton Beloglazov, Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from interface org.cloudsimplus.provisioners.PeProvisioner
NULLFields inherited from interface org.cloudsimplus.provisioners.ResourceProvisioner
NULL -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new PeProvisionerSimple.Instantiates a new PeProvisionerSimple for a givenPe. -
Method Summary
Methods inherited from class org.cloudsimplus.provisioners.ResourceProvisionerSimple
allocateResourceForVm, allocateResourceForVm, deallocateResourceForVm, isSuitableForVm, isSuitableForVmMethods inherited from class org.cloudsimplus.provisioners.ResourceProvisionerAbstract
getAllocatedResourceForVm, getAvailableResource, getCapacity, getTotalAllocatedResource, getVmResourceFunction, setResourcesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudsimplus.provisioners.PeProvisioner
allocateResourceForVm, deallocateResourceForVm, getAllocatedResourceForVm, getTotalAllocatedResourceMethods inherited from interface org.cloudsimplus.provisioners.ResourceProvisioner
allocateResourceForVm, getAvailableResource, getCapacity, getPmResource, isSuitableForVm, isSuitableForVm, setResources
-
Constructor Details
-
PeProvisionerSimple
public PeProvisionerSimple()Instantiates a new PeProvisionerSimple. ThePeit will manage will be set just at the Pe instantiation. -
PeProvisionerSimple
-
-
Method Details
-
setPe
Description copied from interface:PeProvisionerSets thePethat this provisioner will manage.- Specified by:
setPein interfacePeProvisioner- Parameters:
pe- the Pe to set
-
getUtilization
public double getUtilization()- Specified by:
getUtilizationin interfacePeProvisioner- Returns:
- the utilization percentage of the PE (in scale from 0 to 1).
-