UniVista.support
Class RunHash

java.lang.Object
  |
  +--UniVista.support.RunHash
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class RunHash
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Allows Run objects to be easily mapped to strings and back again and stored in a central location

See Also:
Serialized Form

Constructor Summary
RunHash()
           
 
Method Summary
 void addRun(Run toAdd)
          Add a Run to the hash
 java.lang.Object clone()
          clone the RunHash
 java.util.Enumeration elements()
          Get an Enumeration iterator
 Run getRun(java.lang.String RunName)
          Retrieve a Run from the hash by looking up its internal name.
 Run[] getStudies()
          Return an array of all of the Runs stored in the hash.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunHash

public RunHash()
Method Detail

addRun

public void addRun(Run toAdd)
Add a Run to the hash

clone

public java.lang.Object clone()
clone the RunHash
Overrides:
clone in class java.lang.Object

elements

public java.util.Enumeration elements()
Get an Enumeration iterator

getRun

public Run getRun(java.lang.String RunName)
Retrieve a Run from the hash by looking up its internal name. Returns null if no Run is found.
Parameters:
RunName - the internal name returned by getRunName() to search for

getStudies

public Run[] getStudies()
Return an array of all of the Runs stored in the hash.