|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object AbstractCollection<E> AbstractList<E> AbstractSequentialList<E> LinkedList<PE> PEList
public class PEList
GridSim PEList maintains a list of PEs (Processing Elements) that make up a machine.
Field Summary |
---|
Fields inherited from class AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
PEList()
|
Method Summary | |
---|---|
int |
getByteSize()
Gets the byte size of PEList internal data members |
int |
getFreePEID()
Gets a PE ID which is FREE |
int |
getMIPSRating(int id)
Gets MIPS Rating for a specified PE ID |
int |
getNumBusyPE()
Gets the number of BUSY PE |
int |
getNumFreePE()
Gets the number of FREE or non-busy PE. |
void |
setStatusFailed(boolean fail)
Sets the status of PEs of this machine to FAILED. |
void |
setStatusFailed(String resName,
int machineID,
boolean fail)
Sets the status of PEs of this machine to FAILED. |
boolean |
setStatusPE(boolean status,
int peID)
Sets the PE status |
Methods inherited from class LinkedList |
---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
Methods inherited from class AbstractSequentialList |
---|
iterator |
Methods inherited from class AbstractList |
---|
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class AbstractCollection |
---|
containsAll, isEmpty, removeAll, retainAll, toString |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface List |
---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Methods inherited from interface Deque |
---|
iterator |
Constructor Detail |
---|
public PEList()
Method Detail |
---|
public int getMIPSRating(int id)
id
- the PE ID
public int getFreePEID()
public int getNumFreePE()
public boolean setStatusPE(boolean status, int peID)
status
- PE status, either PE.FREE or PE.BUSYpeID
- PE id
public int getNumBusyPE()
public int getByteSize()
public void setStatusFailed(String resName, int machineID, boolean fail)
setStatusFailed(boolean)
if you do not want
this information.
resName
- the name of the resourcemachineID
- the id of this machinefail
- the new value for the "failed" parameterpublic void setStatusFailed(boolean fail)
fail
- the new value for the "failed" parameter
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |