edu.iris.Fissures.seed.container
Class SeedDictionaryReferenceMap

java.lang.Object
  extended by edu.iris.Fissures.seed.container.SeedDictionaryReferenceMap

public class SeedDictionaryReferenceMap
extends java.lang.Object

SEED Blockette Dictionary Reference Mapper. This class is a collection of static methods for aiding the cross-reference of blockettes to their dictionary lookup counterparts, which we will term Source and Destination Blockettes, respectively. This serves as a map to say that a certain blockette type and field number will reference a certain blockette type and field number.

Version:
6/21/2004
Author:
Robert Casey, IRIS DMC

Constructor Summary
SeedDictionaryReferenceMap()
           
 
Method Summary
static int[] lookupDestBlk(int blkType, int fieldNum)
          Return array of Dictionary Destination Blockettes.
static int lookupDestFld(int blkType)
          Return Dictionary Destination Field.
static int[] lookupSourceFld(int blkType)
          Return array of Dictionary Source Field numbers.
static void main(java.lang.String[] args)
          Test method for this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeedDictionaryReferenceMap

public SeedDictionaryReferenceMap()
Method Detail

lookupSourceFld

public static int[] lookupSourceFld(int blkType)
Return array of Dictionary Source Field numbers. For a given blockette type, return an array of field numbers that are used for dictionary blockette reference...these will be termed as Source Fields. Returns null if there are no dictionary fields for this blockette type.


lookupDestBlk

public static int[] lookupDestBlk(int blkType,
                                  int fieldNum)
Return array of Dictionary Destination Blockettes. For a given blockette type and field number, return an integer array representing the dictionary blockette types referenced by that blockette type and field. These are referred to as Destination Blockettes.


lookupDestFld

public static int lookupDestFld(int blkType)
Return Dictionary Destination Field. For a given blockette type, return a single integer representing the field number that contains the dictionary reference number referenced by Source Fields. This will be termed as a Destination Field. The Source references the Destination.


main

public static void main(java.lang.String[] args)
Test method for this class.