ucar.nc2.iosp.bufr
Class DataDescriptor

java.lang.Object
  extended by ucar.nc2.iosp.bufr.DataDescriptor

public class DataDescriptor
extends Object

Essentially a TableB entry, modified by any relevent TableC operators. TableD has been expanded. Replication gets made into nested DataDesccriptors, which we map to Structures (fixed replication) or Sequences (deferred replication). Most of the processing is done by DataDescriptorTreeConstructor.convert(). Here we encapsolate the final result, ready to map to the CDM.

Since:
Apr 5, 2008
Author:
caron

Constructor Summary
DataDescriptor(short fxy, TableLookup lookup)
           
 
Method Summary
 float convert(long raw)
           
 int getBitWidth()
           
 int getByteWidthCDM()
          Get the number of bytes the CDM datatype will take
 short getFxy()
           
 String getFxyName()
           
 String getName()
           
 int getRefVal()
           
 int getScale()
           
 List<DataDescriptor> getSubKeys()
           
 int getTotalBits()
           
 int getType()
           
 String getUnits()
           
 boolean isLocal()
           
 boolean isLocalOverride()
           
 boolean isOkForVariable()
           
 boolean isVarLength()
           
 String toString()
           
static void transferInfo(List<DataDescriptor> fromList, List<DataDescriptor> toList)
          Transfer info from the "proto message" to another message with the exact same structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataDescriptor

public DataDescriptor(short fxy,
                      TableLookup lookup)
Method Detail

getSubKeys

public List<DataDescriptor> getSubKeys()

isOkForVariable

public boolean isOkForVariable()

isLocal

public boolean isLocal()

isLocalOverride

public boolean isLocalOverride()

getFxyName

public String getFxyName()

getFxy

public short getFxy()

getName

public String getName()

getType

public int getType()

getScale

public int getScale()

getRefVal

public int getRefVal()

getUnits

public String getUnits()

convert

public float convert(long raw)

transferInfo

public static void transferInfo(List<DataDescriptor> fromList,
                                List<DataDescriptor> toList)
Transfer info from the "proto message" to another message with the exact same structure.

Parameters:
fromList - transfer from here
toList - to here

getBitWidth

public int getBitWidth()

getByteWidthCDM

public int getByteWidthCDM()
Get the number of bytes the CDM datatype will take

Returns:
the number of bytes the CDM datatype will take

toString

public String toString()
Overrides:
toString in class Object

getTotalBits

public int getTotalBits()

isVarLength

public boolean isVarLength()


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.