ABLE, Version 1.1b

com.ibm.able.beans
Class AbleCategoricalField

java.lang.Object
  |
  +--com.ibm.able.data.AbleLhs
        |
        +--com.ibm.able.data.AbleVariable
              |
              +--com.ibm.able.data.AbleCategoricalVariable
                    |
                    +--com.ibm.able.beans.AbleCategoricalField

public class AbleCategoricalField
extends AbleCategoricalVariable
implements AbleField

See Also:
Serialized Form

Field Summary
protected  int column
           
protected  java.util.Hashtable table
           
protected  int usage
           
 
Fields inherited from class com.ibm.able.data.AbleCategoricalVariable
myValue, myValueInitial, myValueList
 
Fields inherited from class com.ibm.able.data.AbleVariable
myChgSupport, myContext, myDataType, myId, myName, myReferences
 
Method Summary
 void computeStatistics(java.lang.String inValue)
          Add unique symbols to a symbol table and list of legal discrete values This is used to create symbol tables for translate filters, etc.
 int getColumn()
           
 java.lang.String getDataTypeString()
           
 AbleTranslateTemplate getInputTranslateTemplate()
          provide an input translate template for this field if the field is an input field, create a one of N code if it is an output field, create a one of N code if it is marked ignore, then ignore it if field only contains 2 discrete values, treat it as a single binary template
 int getNormalizedSize()
          return the number of unique categories for 1 of N code
 double getNumericValue(java.lang.String inValue)
          translate inValue index into a one-of-N code convert from 0 to n-1 to being 1..N
 AbleTranslateTemplate getOutputTranslateTemplate()
          provide an output translate template for this field
 java.lang.String getUsageString()
           
 void setColumn(int col)
           
 
Methods inherited from class com.ibm.able.data.AbleCategoricalVariable
addValue, cmpEq, cmpGt, cmpGtEq, cmpLt, cmpLtEq, cmpNeq, Copyright, getBooleanValue, getFuzzyValue, getGenericValue, getIndexOf, getInitialValue, getNumericValue, getStringValue, getValue, getValueAt, getValueList, getValueListSize, getValueString, removeValue, reset, rlDclString, setBooleanValue, setFuzzyValue, setGenericValue, setNumericValue, setStringValue, setValue, setValueList, setValueString, toString, valueExist, xmlCWrString, xmlDclString
 
Methods inherited from class com.ibm.able.data.AbleVariable
getChgSupport, getContext, getDataType, getDataTypeAsString, getId, getName, getReferences, getReferent, rlCRdString, setChgSupport, setContext, setId, setReferences, xmlCRdString
 
Methods inherited from class com.ibm.able.data.AbleLhs
asgnEq, asgnIs, asgnIs, cmpIs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

usage

protected int usage

column

protected int column

table

protected java.util.Hashtable table
Method Detail

computeStatistics

public void computeStatistics(java.lang.String inValue)
Add unique symbols to a symbol table and list of legal discrete values This is used to create symbol tables for translate filters, etc.
Specified by:
computeStatistics in interface AbleField

getNumericValue

public double getNumericValue(java.lang.String inValue)
translate inValue index into a one-of-N code convert from 0 to n-1 to being 1..N
Specified by:
getNumericValue in interface AbleField

getNormalizedSize

public int getNormalizedSize()
return the number of unique categories for 1 of N code
Specified by:
getNormalizedSize in interface AbleField

getInputTranslateTemplate

public AbleTranslateTemplate getInputTranslateTemplate()
provide an input translate template for this field if the field is an input field, create a one of N code if it is an output field, create a one of N code if it is marked ignore, then ignore it if field only contains 2 discrete values, treat it as a single binary template
Specified by:
getInputTranslateTemplate in interface AbleField
Returns:
the fully configured translate template

getOutputTranslateTemplate

public AbleTranslateTemplate getOutputTranslateTemplate()
provide an output translate template for this field
Specified by:
getOutputTranslateTemplate in interface AbleField
Returns:
the fully configured translate template if fieldname = "predicted" null otherwise

setColumn

public void setColumn(int col)
Specified by:
setColumn in interface AbleField

getColumn

public int getColumn()
Specified by:
getColumn in interface AbleField

getDataTypeString

public java.lang.String getDataTypeString()
Specified by:
getDataTypeString in interface AbleField

getUsageString

public java.lang.String getUsageString()
Specified by:
getUsageString in interface AbleField

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'