|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object PERangeList
public class PERangeList
This class represents a list of PERange
's. This is used to represent
the ranges of PEs used by a Gridlet and by the allocation policies
to create a profile of ranges available at particular simulation times.
PERange
Constructor Summary | |
---|---|
PERangeList()
Default constructor. |
|
PERangeList(int stPE,
int fnPE)
Creates a new PERangeList object. |
Method Summary | |
---|---|
boolean |
add(PERange range)
Adds a new PE range to the PERangeList |
boolean |
addAll(PERangeList l)
Adds a list of PE ranges to the PERangeList |
void |
clear()
Removes all ranges from this list of ranges |
PERangeList |
clone()
Returns a clone of this list of ranges |
boolean |
equals(PERangeList other)
|
int |
getHighestPE()
Returns the greatest PE number in this list. |
int |
getLowestPE()
Returns the smallest PE number in this list. |
int |
getNumPE()
Returns the number of PEs in this list |
PERangeList |
intersection(PERangeList listb)
Identifies the intersections between lists of ranges |
Iterator<PERange> |
iterator()
Returns an iterator for this list. |
void |
mergePERanges()
Merges PE ranges: e.g. |
void |
remove(PERangeList list)
Removes the ranges provided from this list. |
PERangeList |
selectPEs(int reqPE)
Selects a range to be used by a Gridlet. |
int |
size()
Returns the number of PE ranges in this list. |
void |
sortRanges()
Sorts the ranges in this list of ranges |
String |
toString()
Creates an String representation of this list |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PERangeList()
public PERangeList(int stPE, int fnPE)
stPE
- the initial PE for this range.fnPE
- the final PE for this range.Method Detail |
---|
public int getNumPE()
public void mergePERanges()
public PERangeList clone()
clone
in class Object
public boolean add(PERange range)
range
- the range to be added to the list
public boolean addAll(PERangeList l)
l
- the list of ranges to be added to the list
public void clear()
public void sortRanges()
public int size()
public int getLowestPE()
public int getHighestPE()
public String toString()
toString
in class Object
public Iterator<PERange> iterator()
iterator
in interface Iterable<PERange>
public PERangeList intersection(PERangeList listb)
listb
- the second list
public void remove(PERangeList list)
list
- the ranges to be removed from this list.public boolean equals(PERangeList other)
public PERangeList selectPEs(int reqPE)
reqPE
- the number of PEs required.
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |