JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class Species2IndexMap

java.lang.Object
  extended bygov.nasa.javaGenes.forceFields.Species2IndexMap

public class Species2IndexMap
extends java.lang.Object

used to convert a Species object to a array index for fast processing.


Field Summary
protected  java.util.Hashtable table
           
 
Constructor Summary
Species2IndexMap()
           
 
Method Summary
 int getIndex(Species species)
           
 void setMap(Species species, int index)
          enter a species and index into the map
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected java.util.Hashtable table
Constructor Detail

Species2IndexMap

public Species2IndexMap()
Method Detail

setMap

public void setMap(Species species,
                   int index)
enter a species and index into the map


getIndex

public int getIndex(Species species)

size

public int size()

JavaGenes, NASA Ames. Written largely by Al Globus