Package org.cloudbus.cloudsim.core
Interface Machine
-
- All Superinterfaces:
ChangeableId
,Identifiable
,Resourceful
- All Known Implementing Classes:
HostSimple
,NetworkHost
,NetworkVm
,VmSimple
public interface Machine extends ChangeableId, Resourceful
Represents either a: (i) Physical Machine (PM) which implements the interfaceHost
; or (ii) Virtual Machine (VM), which implements the interfaceVm
.- Since:
- CloudSim Plus 1.2.0
- Author:
- Manoel Campos da Silva Filho
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Resource
getBw()
Gets the machine bandwidth (bw) capacity in Megabits/s.double
getMips()
Gets the individual MIPS capacity of any machine'sPe
, considering that all PEs have the same capacity.long
getNumberOfPes()
Gets the overall number ofPe
s the machine has, that include PEs of all statuses, including failed PEs.Resource
getRam()
Gets the machine memory resource in Megabytes.Simulation
getSimulation()
Gets the CloudSim instance that represents the simulation the Entity is related to.Resource
getStorage()
Gets the storage device of the machine with capacity in Megabytes.double
getTotalMipsCapacity()
Gets total MIPS capacity of all PEs of the machine.static void
validateCapacity(double capacity)
Validates a capacity for a machine resource.-
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 Detail
-
getBw
Resource getBw()
Gets the machine bandwidth (bw) capacity in Megabits/s.- Returns:
- the machine bw capacity
-
getRam
Resource getRam()
Gets the machine memory resource in Megabytes.- Returns:
- the machine memory
-
getStorage
Resource getStorage()
Gets the storage device of the machine with capacity in Megabytes.- Returns:
- the machine storage device
-
getNumberOfPes
long getNumberOfPes()
Gets the overall number ofPe
s the machine has, that include PEs of all statuses, including failed PEs.- Returns:
- the machine's number of PEs
-
getMips
double getMips()
Gets the individual MIPS capacity of any machine'sPe
, considering that all PEs have the same capacity.- Returns:
- the MIPS capacity of a single
Pe
-
getTotalMipsCapacity
double getTotalMipsCapacity()
Gets total MIPS capacity of all PEs of the machine.- Returns:
- the total MIPS of all PEs
-
getSimulation
Simulation getSimulation()
Gets the CloudSim instance that represents the simulation the Entity is related to.- Returns:
-
validateCapacity
static void validateCapacity(double capacity)
Validates a capacity for a machine resource.- Parameters:
capacity
- the capacity to check
-
-