org.omegahat.Interfaces.CORBA.TaskManagement
Class LoopTaskQueue

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--org.omegahat.Environment.TaskManagement.TaskQueue
                          |
                          +--org.omegahat.Interfaces.CORBA.TaskManagement.DistributedTaskQueue
                                |
                                +--org.omegahat.Interfaces.CORBA.TaskManagement.LoopTaskQueue
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class LoopTaskQueue
extends DistributedTaskQueue

TaskQueue that not only stores tasks, but also creates them, specifying the argument list for each task as a single integer.

See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LoopTaskQueue(CORBATaskInterface task, int[] ids)
          Allows the user to specify the argument value for each task as a non-contiguous sequence.
LoopTaskQueue(CORBATaskInterface task, int start, int stop)
           
LoopTaskQueue(java.lang.String methodName, int start, int stop)
           
LoopTaskQueue(java.lang.String methodName, java.lang.String idlType, int start, int stop)
           
 
Method Summary
 void add(CORBATaskInterface task, int[] ids)
          Creates a task corresponding to each entry in the specified ids array, using that value as the sole argument to the call.
 void add(CORBATaskInterface task, int start, int stop)
          Creates (stop - start + 1) new tasks and adds them to the queue, with the new tasks having the simple argument list {start}, {start + 1},..., {stop}.
 void add(java.lang.String methodName, java.lang.String idlType, int start, int stop)
          Create all the tasks of the form
 void addTask(java.lang.String methodName, int i, java.lang.String idlType)
          Create and add a task calling the specified method with the single argument i and constraining the server type to be one that implements the specified interface.
 CORBATaskInterface createTask(CORBATaskInterface task, int i)
          Copies the specified task and inserts the argument list containing the single value i
 
Methods inherited from class org.omegahat.Interfaces.CORBA.TaskManagement.DistributedTaskQueue
addTask, addTask, copy
 
Methods inherited from class org.omegahat.Environment.TaskManagement.TaskQueue
addTask, addTask, getTask, getTask, tasks, tasks, tasks
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

LoopTaskQueue

public LoopTaskQueue(CORBATaskInterface task,
                     int start,
                     int stop)
See Also:
add(CORBATaskInterface,int,int)

LoopTaskQueue

public LoopTaskQueue(java.lang.String methodName,
                     int start,
                     int stop)

LoopTaskQueue

public LoopTaskQueue(java.lang.String methodName,
                     java.lang.String idlType,
                     int start,
                     int stop)

LoopTaskQueue

public LoopTaskQueue(CORBATaskInterface task,
                     int[] ids)
Allows the user to specify the argument value for each task as a non-contiguous sequence.
See Also:
LoopTaskQueue(CORBATaskInterface,int,int)
Method Detail

add

public void add(CORBATaskInterface task,
                int start,
                int stop)
Creates (stop - start + 1) new tasks and adds them to the queue, with the new tasks having the simple argument list {start}, {start + 1},..., {stop}.

add

public void add(CORBATaskInterface task,
                int[] ids)
Creates a task corresponding to each entry in the specified ids array, using that value as the sole argument to the call.

createTask

public CORBATaskInterface createTask(CORBATaskInterface task,
                                     int i)
Copies the specified task and inserts the argument list containing the single value i

add

public void add(java.lang.String methodName,
                java.lang.String idlType,
                int start,
                int stop)
Create all the tasks of the form
<methodName >(i)
for servers that implement the specified IDL interface where i goes between start and stop, inclusive.
See Also:
addTask(String,int,String)

addTask

public void addTask(java.lang.String methodName,
                    int i,
                    java.lang.String idlType)
Create and add a task calling the specified method with the single argument i and constraining the server type to be one that implements the specified interface.