Machine

public interface Machine extends ChangeableId, Resourceful

Represents either a: (i) Physical Machine (PM) which implements the interface Host; or (ii) Virtual Machine (VM), which implements the interface Vm.

Author:Manoel Campos da Silva Filho

Fields

NULL

Machine NULL

An attribute that implements the Null Object Design Pattern for Machine objects.

Methods

getBw

Resource getBw()

Gets the machine bandwidth (bw) capacity in Megabits/s.

Returns:the machine bw capacity

getMips

double getMips()

Gets the individual MIPS capacity of any machine’s Pe, considering that all PEs have the same capacity.

Returns:the MIPS capacity of a single Pe

getNumberOfPes

long getNumberOfPes()

Gets the overall number of Pes the machine has, that include PEs of all statuses, including failed PEs.

Returns:the machine’s number of PEs

getRam

Resource getRam()

Gets the machine memory resource in Megabytes.

Returns:the machine memory

getSimulation

Simulation getSimulation()

Gets the CloudSim instance that represents the simulation the Entity is related to.

getStorage

Resource getStorage()

Gets the storage device of the machine with capacity in Megabytes.

Returns:the machine storage device

getTotalMipsCapacity

double getTotalMipsCapacity()

Gets total MIPS capacity of all PEs of the machine.

Returns:the total MIPS of all PEs