org.objectweb.proactive.ext.util
Class FutureList

java.lang.Object
  extended by org.objectweb.proactive.ext.util.FutureList

public class FutureList
extends java.lang.Object


Constructor Summary
FutureList()
           
 
Method Summary
 boolean add(java.lang.Object o)
          Add the future to the futureList This method does not test if the future is already in the list.
 boolean allAwaited()
          Return true if all the futures in the current list are awaited
 int countAwaited()
          Return the number of currently awaited futures in this list
 java.lang.Object get(int index)
          Return the element at the specified position in this List
 java.lang.Object getOne()
          Returns a future available in this list.
 boolean noneAwaited()
          Return true if none of the futures in the current list are awaited
 boolean remove(java.lang.Object o)
          Remove the object from the FutureList Return true if successfull
 java.lang.Object removeOne()
          Removes and returns a future available this list.
 int size()
          Return the number of future in the List
 void waitAll()
           
 java.lang.Object waitAndGetOne()
           
 java.lang.Object waitAndGetTheNth(int n)
           
 java.lang.Object waitAndRemoveOne()
           
 void waitN(int n)
           
 void waitOne()
           
 void waitTheNth(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureList

public FutureList()
Method Detail

add

public boolean add(java.lang.Object o)
Add the future to the futureList This method does not test if the future is already in the list.


remove

public boolean remove(java.lang.Object o)
Remove the object from the FutureList Return true if successfull


size

public int size()
Return the number of future in the List


get

public java.lang.Object get(int index)
Return the element at the specified position in this List


allAwaited

public boolean allAwaited()
Return true if all the futures in the current list are awaited


noneAwaited

public boolean noneAwaited()
Return true if none of the futures in the current list are awaited


countAwaited

public int countAwaited()
Return the number of currently awaited futures in this list


getOne

public java.lang.Object getOne()
Returns a future available in this list. Returns null if none is available.


removeOne

public java.lang.Object removeOne()
Removes and returns a future available this list. Returns null if none is available.


waitAndGetOne

public java.lang.Object waitAndGetOne()

waitAndRemoveOne

public java.lang.Object waitAndRemoveOne()

waitAll

public void waitAll()

waitOne

public void waitOne()

waitN

public void waitN(int n)

waitTheNth

public void waitTheNth(int n)

waitAndGetTheNth

public java.lang.Object waitAndGetTheNth(int n)


Copyright 2001-2007 INRIA All Rights Reserved.