|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Machine
public class Machine
GridSim Machine class represents an uniprocessor or shared memory multiprocessor machine. It can contain one or more Processing Elements (PEs).
Constructor Summary | |
---|---|
Machine(int id,
int numPE,
int ratingPE)
Allocates a new Machine object |
|
Machine(int id,
PEList list)
Deprecated. as of GridSim version 5.0, you should use Machine(int,int,int) |
Method Summary | |
---|---|
int |
getByteSize()
Gets the byte size of this class |
boolean |
getFailed()
Checks whether this machine is failed or not. |
int |
getMachineID()
Gets the machine ID |
int |
getMIPSRating()
Gets the Millions Instruction Per Second (MIPS) Rating. |
int |
getNumBusyPE()
Gets the number of BUSY PE for this Machine |
int |
getNumFreePE()
Gets the number of FREE or non-busy PE for this Machine |
int |
getNumPE()
Gets the number of PE for this Machine |
PEList |
getPEList()
Gets the linked-list of all PEs |
int |
getSize()
Gets the number of PEs |
boolean |
setFailed(boolean fail)
Sets the PEs of this machine to a FAILED status. |
boolean |
setFailed(String resName,
boolean fail)
Sets the PEs of this machine to a FAILED status. |
boolean |
setStatusPE(boolean status,
int peID)
Sets the particular PE status on this Machine |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Machine(int id, int numPE, int ratingPE)
id
- the machine IDnumPE
- the number of PEs in this machineratingPE
- the rating in MIPS of a resource in this machinepublic Machine(int id, PEList list)
Machine(int,int,int)
id
- the machine IDlist
- list of PEsMethod Detail |
---|
public int getMachineID()
public int getSize()
public PEList getPEList()
PEList
public int getMIPSRating()
public boolean setStatusPE(boolean status, int peID)
status
- PE status, either PE.FREE or PE.BUSYpeID
- PE id
public int getNumPE()
public int getNumFreePE()
public int getNumBusyPE()
public int getByteSize()
public boolean setFailed(String resName, boolean fail)
setFailed(boolean)
if you do not want
this information.
resName
- the name of the resourcefail
- true if this machine fails or false otherwise
public boolean setFailed(boolean fail)
fail
- true if this machine fails or false otherwise
public boolean getFailed()
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |