edu.iris.Fissures.seed.container
Class SeedBlocketteRankMap

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

public class SeedBlocketteRankMap
extends java.lang.Object

SEED Blockette Ranking Mapper. This class is a collection of static methods for determining the parent-child relationship of blockettes within their own blockette category. For instance, we can say that Blockette 52 is a child of Blockette 50, and that Blockette 50 will be of higher rank to Blockette 52 in the Station Blockette category. Blockette 52 cannot be compared to another blockette outside of its category, though, such as a Blockette 74.

Version:
11/18/2004
Author:
Robert Casey, IRIS DMC

Constructor Summary
SeedBlocketteRankMap()
           
 
Method Summary
static int getHeaderCode(Blockette blockette)
          Return a code number based on the header type of the current blockette object.
static int getHeaderCode(int blocketteType)
          Return a code number based on the header type of the indicated blockette type
static int getHeaderCode(java.lang.String categoryStr)
          Return a code number based on the blockette category string.
static int getRank(Blockette blockette)
          Return the rank value of this blockette within its category.
static int getRank(int blocketteType)
          Return the rank value of this blockette type within its category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeedBlocketteRankMap

public SeedBlocketteRankMap()
Method Detail

getHeaderCode

public static int getHeaderCode(Blockette blockette)
                         throws BuilderException,
                                SeedException
Return a code number based on the header type of the current blockette object.

Throws:
BuilderException
SeedException

getHeaderCode

public static int getHeaderCode(int blocketteType)
                         throws BuilderException,
                                SeedException
Return a code number based on the header type of the indicated blockette type

Throws:
BuilderException
SeedException

getHeaderCode

public static int getHeaderCode(java.lang.String categoryStr)
                         throws BuilderException
Return a code number based on the blockette category string.

Throws:
BuilderException

getRank

public static int getRank(Blockette blockette)
                   throws BuilderException,
                          SeedException
Return the rank value of this blockette within its category. Rank 0 is the highest, 1 is the next highest, etc...

Throws:
BuilderException
SeedException

getRank

public static int getRank(int blocketteType)
                   throws BuilderException,
                          SeedException
Return the rank value of this blockette type within its category. Rank 0 is the highest, 1 is the next highest, etc...

Throws:
BuilderException
SeedException