GridSim 5.0 beta

gridsim
Class ResourceUserList

Object
  extended by AbstractCollection<E>
      extended by AbstractList<E>
          extended by AbstractSequentialList<E>
              extended by LinkedList
                  extended by ResourceUserList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, Deque, List, Queue

public class ResourceUserList
extends LinkedList

GridSim ResourceUserList maintains a linked-list of Grid Resource users

Since:
GridSim Toolkit 1.0
Author:
Manzur Murshed and Rajkumar Buyya
See Also:
Serialized Form
Invariant:
$none

Field Summary
 
Fields inherited from class AbstractList
modCount
 
Constructor Summary
ResourceUserList()
           
 
Method Summary
 boolean add(int userID)
          Adds one Grid Resource user into the list.
 boolean myRemove(int userID)
          Deprecated. As of GridSim 2.1, replaced by removeUser(int)
 boolean removeUser(int userID)
          Removes a particular user from the list
 
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

ResourceUserList

public ResourceUserList()
Method Detail

add

public boolean add(int userID)
Adds one Grid Resource user into the list.

Parameters:
userID - Grid Resource user ID
Returns:
true if it is a new user, otherwise return false
Pre Condition:
userID >= 0
Post Condition:
$result == true || $result == false

myRemove

public boolean myRemove(int userID)
Deprecated. As of GridSim 2.1, replaced by removeUser(int)

Removes a particular user from the list

Parameters:
userID - Grid Resource user ID
Returns:
true if the list contained the specified element, otherwise return false
Pre Condition:
userID >= 0
Post Condition:
$result == true || $result == false

removeUser

public boolean removeUser(int userID)
Removes a particular user from the list

Parameters:
userID - Grid Resource user ID
Returns:
true if the list contained the specified element, otherwise return false
Pre Condition:
userID >= 0
Post Condition:
$result == true || $result == false

GridSim 5.0 beta

The University of Melbourne, Australia, 2009