org.globus.cog.karajan.workflow.futures
Class FutureVariableArgumentsOperator

java.lang.Object
  extended by org.globus.cog.karajan.workflow.futures.FutureVariableArgumentsOperator
All Implemented Interfaces:
VariableArguments, Future

public abstract class FutureVariableArgumentsOperator
extends Object
implements VariableArguments, Future


Constructor Summary
FutureVariableArgumentsOperator(Object initialValue)
           
 
Method Summary
 void addListener(VariableArgumentsListener l)
           
 void addModificationAction(EventListener target, Event event)
          When the future becomes available, send the event to the element.
 void append(Object o)
           
 void appendAll(List args)
           
 int available()
           
 void close()
           
 VariableArguments copy()
           
 Object get(int index)
           
 List getAll()
           
 Object getValue()
           
 Object initialValue()
           
 boolean isClosed()
           
 Iterator iterator()
           
 void merge(VariableArguments args)
           
 Object removeFirst()
           
 void removeListener(VariableArgumentsListener l)
           
 void set(List vargs)
           
 void set(VariableArguments other)
           
 int size()
           
 Object[] toArray()
           
 String toString()
           
 Object update(Object old, List values)
           
abstract  Object update(Object old, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.globus.cog.karajan.arguments.VariableArguments
butFirst, isCommutative, isEmpty
 
Methods inherited from interface org.globus.cog.karajan.workflow.futures.Future
fail
 

Constructor Detail

FutureVariableArgumentsOperator

public FutureVariableArgumentsOperator(Object initialValue)
Method Detail

close

public void close()
Specified by:
close in interface Future

isClosed

public boolean isClosed()
Specified by:
isClosed in interface Future

getValue

public Object getValue()
                throws FutureNotYetAvailable
Specified by:
getValue in interface Future
Throws:
FutureNotYetAvailable

toString

public String toString()
Overrides:
toString in class Object

addModificationAction

public void addModificationAction(EventListener target,
                                  Event event)
Description copied from interface: Future
When the future becomes available, send the event to the element.

Specified by:
addModificationAction in interface Future

available

public int available()

append

public void append(Object o)
Specified by:
append in interface VariableArguments

appendAll

public void appendAll(List args)
Specified by:
appendAll in interface VariableArguments

merge

public void merge(VariableArguments args)
Specified by:
merge in interface VariableArguments

initialValue

public final Object initialValue()

update

public abstract Object update(Object old,
                              Object value)

update

public Object update(Object old,
                     List values)

getAll

public List getAll()
Specified by:
getAll in interface VariableArguments

set

public void set(List vargs)
Specified by:
set in interface VariableArguments

get

public Object get(int index)
Specified by:
get in interface VariableArguments

copy

public VariableArguments copy()
Specified by:
copy in interface VariableArguments

size

public int size()
Specified by:
size in interface VariableArguments

iterator

public Iterator iterator()
Specified by:
iterator in interface VariableArguments

toArray

public Object[] toArray()
Specified by:
toArray in interface VariableArguments

set

public void set(VariableArguments other)
Specified by:
set in interface VariableArguments

removeFirst

public Object removeFirst()
Specified by:
removeFirst in interface VariableArguments

addListener

public void addListener(VariableArgumentsListener l)
Specified by:
addListener in interface VariableArguments

removeListener

public void removeListener(VariableArgumentsListener l)
Specified by:
removeListener in interface VariableArguments