|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectgridsim.PE
GridSim PE (Processing Element) class represents CPU unit, defined in terms of Millions Instructions Per Second (MIPS) rating. ASSUMPTION: All PEs under the same Machine have the same MIPS rating.
Field Summary | |
static boolean |
BUSY
Denotes PE is allocated and hence busy in processing Gridlet |
static boolean |
FREE
Denotes PE is FREE for allocation |
Constructor Summary | |
PE(int id,
int MIPSRating)
Allocates a new PE object |
Method Summary | |
static int |
ByteSize()
Deprecated. As of GridSim 2.1, replaced by getByteSize() |
static int |
getByteSize()
Gets the byte size of this class |
int |
getID()
Gets the PE ID |
int |
GetID()
Deprecated. As of GridSim 2.1, replaced by getID() |
int |
getMIPSRating()
Gets the MIPS Rating of this PE |
int |
GetMIPSRating()
Deprecated. As of GridSim 2.1, replaced by getMIPSRating() |
boolean |
getStatus()
Gets the status of this PE |
boolean |
GetStatus()
Deprecated. As of GridSim 2.1, replaced by getStatus() |
void |
setMIPSRating(int rating)
Sets the MIPS Rating of this PE |
void |
SetMIPSRating(int rating)
Deprecated. As of GridSim 2.1, replaced by setMIPSRating(int) |
void |
setStatus(boolean status)
Set PE status to either PE.FREE or PE.BUSY |
void |
setStatusBusy()
Set PE status to busy, meaning it is already executing Gridlets. |
void |
SetStatusBusy()
Deprecated. As of GridSim 2.1, replaced by setStatusBusy() |
void |
setStatusFree()
Set PE status to free, meaning it is available for processing. |
void |
SetStatusFree()
Deprecated. As of GridSim 2.1, replaced by setStatusFree() |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean FREE
public static final boolean BUSY
Constructor Detail |
public PE(int id, int MIPSRating)
id
- the PE IDMIPSRating
- the capability of the PE. All PEs under the same
Machine have same MIPS rating.Method Detail |
public int GetID()
getID()
public int getID()
public void SetMIPSRating(int rating)
setMIPSRating(int)
rating
- the capability of the PEpublic void setMIPSRating(int rating)
rating
- the capability of the PEpublic int GetMIPSRating()
getMIPSRating()
public int getMIPSRating()
public boolean GetStatus()
getStatus()
public boolean getStatus()
public void SetStatusFree()
setStatusFree()
public void setStatusFree()
public void SetStatusBusy()
setStatusBusy()
public void setStatusBusy()
public void setStatus(boolean status)
status
- PE status, true if it is FREE, false
if BUSY.public static int ByteSize()
getByteSize()
public static int getByteSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |