|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractCollection<E>
AbstractList<E>
AbstractSequentialList<E>
LinkedList<Gridlet>
GridletList
public class GridletList
Gridsim GridletList class is used to maintain a list of Gridlets (in linked-list) and support methods for organizing them
| Field Summary |
|---|
| Fields inherited from class AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
GridletList()
|
|
| Method Summary | |
|---|---|
Gridlet |
get(int gridletId,
int userId)
Returns a given Gridlet. |
int |
indexOf(int gridletId,
int userId)
Finds the index of a Gridlet inside the list. |
void |
sort()
Sorts the Gridlets in a list based on their lengths |
| 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 GridletList()
| Method Detail |
|---|
public void sort()
public int indexOf(int gridletId,
int userId)
gridletId - a Gridlet IduserId - an User Id
-1 if the list does not
contain this Gridlet.
public Gridlet get(int gridletId,
int userId)
gridletId - a Gridlet IduserId - an User Id
IndexOutOfBoundsException - - if a Gridlet with specified
Id and user id is not in the list.
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||