Package org.cloudbus.cloudsim.core
Interface Machine
- All Superinterfaces:
AbstractMachine<FileStorage>
,ChangeableId
,Identifiable
,Resourceful
- All Known Subinterfaces:
Host
- All Known Implementing Classes:
HostSimple
,NetworkHost
An interface to be implemented by different kinds of Physical Machines (PMs),
such as
Host
s.- Since:
- CloudSim Plus 1.2.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from interface org.cloudbus.cloudsim.core.AbstractMachine
NULL
-
Method Summary
Modifier and TypeMethodDescriptiondefault double
getExpectedRelativeCpuUtilization
(Vm vm, double vmCpuUtilizationPercent) Computes what would be the relative percentage of the CPU the VM is using from a Machine's total MIPS capacity, considering that the VM's CPU load is at a given percentage.default double
Computes the relative percentage of the BW a VM is using from a Machine's total capacity for the current simulation time.default double
Computes the current relative percentage of the CPU the VM is using from the Machine's total MIPS capacity.default double
Gets the percentage of the MIPS capacity a VM represents from the total Machine's MIPS capacity.default double
Computes the relative percentage of the RAM a VM is using from a Machine's total capacity for the current simulation time.Methods inherited from interface org.cloudbus.cloudsim.core.AbstractMachine
getBw, getIdleInterval, getLastBusyTime, getMips, getNumberOfPes, getRam, getSimulation, getStartTime, getStorage, getTotalMipsCapacity, isIdle, isIdleEnough, setStartTime
Methods inherited from interface org.cloudbus.cloudsim.core.ChangeableId
setId
Methods inherited from interface org.cloudbus.cloudsim.core.Identifiable
getId
Methods inherited from interface org.cloudbus.cloudsim.resources.Resourceful
getResource, getResources
-
Method Details
-
getRelativeCpuUtilization
Computes the current relative percentage of the CPU the VM is using from the Machine's total MIPS capacity. If the capacity is 1000 MIPS and the VM is using 250 MIPS, it's equivalent to 25% of the Machines' capacity.- Returns:
- the relative VM CPU usage percent (from 0 to 1)
-
getExpectedRelativeCpuUtilization
Computes what would be the relative percentage of the CPU the VM is using from a Machine's total MIPS capacity, considering that the VM's CPU load is at a given percentage.- Parameters:
vm
- the VM to get its relative percentage of CPU utilizationvmCpuUtilizationPercent
- the VM's CPU utilization percentage for a given time- Returns:
- the relative VM CPU usage percent (from 0 to 1)
-
getRelativeMipsCapacityPercent
Gets the percentage of the MIPS capacity a VM represents from the total Machine's MIPS capacity.- Returns:
- the VM relative MIPS capacity percentage
-
getRelativeRamUtilization
Computes the relative percentage of the RAM a VM is using from a Machine's total capacity for the current simulation time.- Parameters:
vm
- theVm
to compute the relative utilization of RAM from this machine- Returns:
- the relative VM RAM usage percent (from 0 to 1)
-
getRelativeBwUtilization
Computes the relative percentage of the BW a VM is using from a Machine's total capacity for the current simulation time.- Parameters:
vm
- theVm
to compute the relative utilization of BW from this machine- Returns:
- the relative VM BW usage percent (from 0 to 1)
-