edu.iris.dmc.pdcc.container
Class PdccBlocketteFactory

java.lang.Object
  extended byedu.iris.Fissures.seed.container.BlocketteFactory
      extended byedu.iris.dmc.pdcc.container.PdccBlocketteFactory

public class PdccBlocketteFactory
extends BlocketteFactory

Blockette converters and filters used for PDCC purposes.

Version:
8/27/2004
Author:
Robert Casey, IRIS DMC

Constructor Summary
PdccBlocketteFactory()
           
 
Method Summary
static Blockette createBlockette(java.lang.String blkStr, boolean makeProto)
          create a new Blockette from the offered string special field substitutions will be added if the makeProto boolean flag is set to true, to reflect a prototype variant of the blockette
static int getFieldRepeat(int blkType, int curField)
          return the field number that indicates the number of repeats for curField
static int getNumFields(int blkType, float version)
          return the number of fields including extended Blockette types specific to PDCC
static int getType(Blockette blk)
          return the blockette type of the provided blockette, using special case filters to check for prototypes and stuff
static int lookupDestFld(int blkType)
          return the destination field number for dictionary lookups
static int reverseGetType(int blkType)
          map back from PDCC pseudo-blockette to blockette equivalent if necessary
 
Methods inherited from class edu.iris.Fissures.seed.container.BlocketteFactory
createBlockette, createBlockette, createBlockette, createBlockette, createBlockette, createBlockette, createBlockette, formatDecimal, getBlocketteDefinition, getBytes, getCategory, getDefaultVersion, getFieldLength, getFieldMask, getFieldName, getFieldType, getListValue, getListVector, getName, getNumFields, getTranslation, getVersion, main, setListValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdccBlocketteFactory

public PdccBlocketteFactory()
Method Detail

getType

public static int getType(Blockette blk)
return the blockette type of the provided blockette, using special case filters to check for prototypes and stuff


reverseGetType

public static int reverseGetType(int blkType)
map back from PDCC pseudo-blockette to blockette equivalent if necessary


getNumFields

public static int getNumFields(int blkType,
                               float version)
                        throws SeedException
return the number of fields including extended Blockette types specific to PDCC

Throws:
SeedException

getFieldRepeat

public static int getFieldRepeat(int blkType,
                                 int curField)
                          throws SeedException
return the field number that indicates the number of repeats for curField

Throws:
SeedException

lookupDestFld

public static int lookupDestFld(int blkType)
return the destination field number for dictionary lookups


createBlockette

public static Blockette createBlockette(java.lang.String blkStr,
                                        boolean makeProto)
                                 throws SeedException
create a new Blockette from the offered string special field substitutions will be added if the makeProto boolean flag is set to true, to reflect a prototype variant of the blockette

Throws:
SeedException


brought to you by Incorporated Research Institutions for Seismology
June 29 2006