gridsim
Class ResGridletList

Object
  |
  +--AbstractCollection
        |
        +--AbstractList
              |
              +--AbstractSequentialList
                    |
                    +--LinkedList
                          |
                          +--gridsim.ResGridletList
All Implemented Interfaces:
Cloneable, Collection, List, Serializable

public class ResGridletList
extends LinkedList

GridSim ResGridletList maintains a linked-list of Gridlet

Version:
2.1, June 2003
Author:
Manzur Murshed and Rajkumar Buyya
See Also:
Serialized Form
Invariant:
$none

Field Summary
 
Fields inherited from class AbstractList
modCount
 
Constructor Summary
ResGridletList()
          Allocates a new ResGridletList object
 
Method Summary
 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, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, 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
 

Constructor Detail

ResGridletList

public ResGridletList()
Allocates a new ResGridletList object

Pre Condition:
$none
Post Condition:
$none
Method Detail

move

public boolean move(ResGridlet obj,
                    ResGridletList list)
Move a ResGridlet object from this linked-list into a specified one

Parameters:
obj - a ResGridlet object to be moved
list - a ResGridletList object to store the new ResGridlet object
Returns:
true if the moving operation successful, otherwise return false
Pre Condition:
obj != null, list != null
Post Condition:
$result == true || $result == false