GridSim
v3.3

gridsim
Class ResourceUserList

Object
  extended byAbstractCollection
      extended byAbstractList
          extended byAbstractSequentialList
              extended byLinkedList
                  extended bygridsim.ResourceUserList
All Implemented Interfaces:
Cloneable, Collection, List, Serializable

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()
          Allocates a new ResourceUserList object
 
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, 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

ResourceUserList

public ResourceUserList()
Allocates a new ResourceUserList object

Pre Condition:
$none
Post Condition:
$none
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
v3.3

The University of Melbourne, Australia, 2005