|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectPE
public class 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 |
FAILED
Denotes PE is failed and hence it can't process any Gridlet at this moment. |
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 |
getByteSize()
Gets the byte size of this class |
int |
getID()
Gets the PE ID |
int |
getMIPSRating()
Gets the MIPS Rating of this PE |
boolean |
getStatus()
Gets the status of this PE |
void |
setMIPSRating(int rating)
Sets the MIPS Rating of this PE |
void |
setStatus(boolean status)
Sets PE status to either PE.FREE or PE.BUSY |
void |
setStatusBusy()
Sets PE status to busy, meaning it is already executing Gridlets. |
void |
setStatusFailed()
Sets this PE to FAILED. |
void |
setStatusFree()
Sets PE status to free, meaning it is available for processing. |
| 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
public static final boolean FAILED
| 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()
public void setMIPSRating(int rating)
rating - the capability of the PEpublic int getMIPSRating()
public boolean getStatus()
public void setStatusFree()
public void setStatusBusy()
public void setStatus(boolean status)
status - PE status, true if it is FREE, false
if BUSY.public static int getByteSize()
public void setStatusFailed()
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||