com.dynalivery.harmoni
Class HarmoniJobTable

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.dynalivery.harmoni.HarmoniJobTable

public class HarmoniJobTable
extends java.util.Vector

See Also:
Serialized Form

Constructor Summary
HarmoniJobTable(int capacity, int increment)
          Create a HarmoniJobTable with given capacity and expansion increment.
 
Method Summary
 void EnterJob(HarmoniJob job)
          Enter the Harmoni job into the job-table.
 HarmoniJob GetJob(int handle)
          Get a Harmoni job from the table
 void RemoveJob(int handle)
          Remove a Harmoni job from the table.
 boolean ValidJob(int handle)
          Test to see if a valid handle represents a job.
 
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, 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
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HarmoniJobTable

public HarmoniJobTable(int capacity,
                       int increment)
Create a HarmoniJobTable with given capacity and expansion increment.
Parameters:
capacity - The initial capacity of the table.
increment - The magnitude of incremental growth.
Method Detail

EnterJob

public void EnterJob(HarmoniJob job)
Enter the Harmoni job into the job-table.
Parameters:
job - The job to enter into the job-table

GetJob

public HarmoniJob GetJob(int handle)
Get a Harmoni job from the table
Returns:
The Harmoni job with the given handle, or null.

RemoveJob

public void RemoveJob(int handle)
Remove a Harmoni job from the table.
Parameters:
handle - The handle of the job to remove

ValidJob

public boolean ValidJob(int handle)
Test to see if a valid handle represents a job.
Returns:
True if there is a job with the handle in the job-table.