|
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<ResGridlet> ResGridletList
public class ResGridletList
GridSim ResGridletList maintains a linked-list of Gridlet
Field Summary |
---|
Fields inherited from class AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ResGridletList()
|
Method Summary | |
---|---|
ResGridlet |
get(int gridletId,
int userId)
Returns a given Gridlet. |
int |
indexOf(int gridletId,
int userId)
Finds the index of a Gridlet inside the list. |
boolean |
move(ResGridlet obj,
ResGridletList list)
Move a ResGridlet object from this linked-list into a specified one |
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 ResGridletList()
Method Detail |
---|
public int indexOf(int gridletId, int userId)
gridletId
- a Gridlet IduserId
- an User Id
-1
if the list does not
contain this Gridlet.public ResGridlet 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.public boolean move(ResGridlet obj, ResGridletList list)
obj
- a ResGridlet object to be movedlist
- a ResGridletList object to store the new ResGridlet object
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |