edu.wisc.ssec.mcidasv.data
Class QualityFlag

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.data.QualityFlag

public class QualityFlag
extends Object

Author:
tommyj Holds info to extract a Suomi NPP Quality Flag from a packed byte. Info is read from the appropriate XML Product Profile

Field Summary
private  int bitOffset
           
private  HashMap<String,String> hm
           
private  String name
           
private  int numBits
           
private  String packedName
           
 
Constructor Summary
QualityFlag(int bitOffset, int numBits, String name, HashMap<String,String> hm)
           
 
Method Summary
 int getBitOffset()
           
 HashMap<String,String> getHm()
           
 String getName()
           
 String getNameForValue(String valueStr)
           
 int getNumBits()
           
 String getPackedName()
           
 void setBitOffset(int bitOffset)
           
 void setHm(HashMap<String,String> hm)
           
 void setName(String name)
           
 void setNumBits(int numBits)
           
 void setPackedName(String packedName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bitOffset

private int bitOffset

numBits

private int numBits

name

private String name

packedName

private String packedName

hm

private HashMap<String,String> hm
Constructor Detail

QualityFlag

public QualityFlag(int bitOffset,
                   int numBits,
                   String name,
                   HashMap<String,String> hm)
Parameters:
bitOffset -
numBits -
name -
Method Detail

getBitOffset

public int getBitOffset()
Returns:
the bitOffset

setBitOffset

public void setBitOffset(int bitOffset)
Parameters:
bitOffset - the bitOffset to set

getNumBits

public int getNumBits()
Returns:
the numBits

setNumBits

public void setNumBits(int numBits)
Parameters:
numBits - the numBits to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getPackedName

public String getPackedName()
Returns:
the packedName

setPackedName

public void setPackedName(String packedName)
Parameters:
packedName - the packedName to set

getHm

public HashMap<String,String> getHm()
Returns:
the hm

setHm

public void setHm(HashMap<String,String> hm)
Parameters:
hm - the hm to set

getNameForValue

public String getNameForValue(String valueStr)
Returns:
the name for a discreet value for this flag

toString

public String toString()
Overrides:
toString in class Object