|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.data.AbleLhs | +--com.ibm.able.data.AbleVariable | +--com.ibm.able.data.AbleGenericVariable | +--com.ibm.able.data.AbleTypedVariable | +--com.ibm.able.data.AbleDiscreteVariable | +--com.ibm.able.data.AbleDiscreteField
Discrete fields are numeric fields with a finite set of possible values.
Field Summary | |
---|---|
protected int |
column
An index representing this field's position in a record. |
protected double |
max
The maximum of the allowed values for this field. |
protected double |
mean
The mean of the allowed values for this field. |
protected double |
min
The minimum of the allowed values for this field. |
protected java.util.Hashtable |
table
A Hashtable where the key is an Integer value representing an element in a dictionary; the object is one valid discrete value in String form. |
protected int |
usage
Values representing input, output, or ignore. |
Fields inherited from class com.ibm.able.data.AbleDiscreteVariable |
---|
myInitialValue, myMaxValue, myMaxValueKnown, myMinValue, myMinValueKnown, myValue, myValueList |
Fields inherited from class com.ibm.able.data.AbleTypedVariable |
---|
myDataTypeClass, myDataTypeClassName, myDataTypeName, myInitialParms |
Fields inherited from class com.ibm.able.data.AbleVariable |
---|
myBoundFlag, myChgSupport, myComment, myContext, myDataType, myGlobalFlag, myId, myName, myPrompt, myReferences, myStaticFlag, myTemplateFlag, myValueInitial |
Constructor Summary | |
---|---|
AbleDiscreteField(AbleFieldDefinition def)
Construct a Discrete field. |
Method Summary | |
---|---|
void |
computeStatistics(java.lang.Object inValue)
Add unique discrete values to a symbol table and maintain a dictionary of legal values as well as the field minimum and maxium. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
int |
getColumn()
Get the column index position of this field in a record. |
java.lang.String |
getDataTypeString()
Get the data type of this field as a string - "continuous" for example. |
AbleTranslateTemplate |
getInputTranslateTemplate()
Provide an input translate template for this field. |
java.util.Map |
getMap()
Get the Map of all unique values that are possible for this field. |
int |
getNormalizedSize()
Return the number of unique categories for 1 of N code. |
double |
getNumericValue(java.lang.Object inValue)
Translate a value into an index in the dictionary. |
AbleTranslateTemplate |
getOutputTranslateTemplate()
Provide an output translate template for this field. |
int |
getUsage()
Get the usage type of this field - "input" for example. |
java.lang.String |
getUsageString()
Get the usage type of this field as a string - "input" for example. |
void |
setColumn(int col)
Set the index position in the record, based on field definition order. |
void |
setUsage(java.lang.String usage)
Set the usage type of this from a string - "input" for example. |
Methods inherited from class com.ibm.able.data.AbleDiscreteVariable |
---|
addValue, arlDclString, asgnEq, cmpEq, cmpGt, cmpGtEq, cmpLt, cmpLtEq, cmpNeq, getBooleanValue, getDataTypeClass, getDataTypeClassName, getFuzzyValue, getGenericValue, getIndexOf, getLiteralClass, getMaxValue, getMinValue, getNumericValue, getRawValue, getStringValue, getValue, getValueAt, getValueList, getValueListSize, getValueString, init, removeValue, reset, setBooleanValue, setFuzzyValue, setGenericValue, setInitialValue, setNumericValue, setStringValue, setValue, setValueList, setValueString, toString, traceString, valueExist, xmlDclString |
Methods inherited from class com.ibm.able.data.AbleTypedVariable |
---|
getDataTypeName, setRawValue |
Methods inherited from class com.ibm.able.data.AbleGenericVariable |
---|
cmpIs, compDivide, compMinus, compMultiply, compPlus, compUnaryMinus, replaceValues |
Methods inherited from class com.ibm.able.data.AbleVariable |
---|
arlCRdString, arlInitializerString, getArlComment, getChgSupport, getComment, getContext, getDataType, getDataTypeAsString, getId, getName, getPrompt, getPromptString, getReferences, getReferent, getReferents, getTemplateString, isBound, isConstant, isGlobal, isLocal, isStatic, isTemplate, notStatic, setChgSupport, setComment, setContext, setId, setPrompt, setReferences, setStatic, setTemplate, xmlCRdString, xmlCWrString, xmlInitializerString |
Methods inherited from class com.ibm.able.data.AbleLhs |
---|
asgnIs, asgnIs, bitwiseAND, bitwiseNOT, bitwiseOR, bitwiseShiftLeft, bitwiseShiftRight, bitwiseShiftRightZeroFill, bitwiseXOR, compModulo, logicalAND, logicalNOT, logicalOR |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.able.data.AbleField |
---|
getName, getStringValue |
Field Detail |
protected int usage
protected int column
protected double min
protected double max
protected double mean
protected java.util.Hashtable table
Constructor Detail |
public AbleDiscreteField(AbleFieldDefinition def)
def
- An AbleFieldDefinition which provides the name and
usage for this field.Method Detail |
public void computeStatistics(java.lang.Object inValue)
computeStatistics
in interface AbleField
public double getNumericValue(java.lang.Object inValue)
getNumericValue
in interface AbleField
public int getNormalizedSize()
getNormalizedSize
in interface AbleField
public AbleTranslateTemplate getInputTranslateTemplate()
getInputTranslateTemplate
in interface AbleField
public AbleTranslateTemplate getOutputTranslateTemplate()
getOutputTranslateTemplate
in interface AbleField
public void setColumn(int col)
AbleField
setColumn
in interface AbleField
public int getColumn()
AbleField
getColumn
in interface AbleField
public java.lang.String getDataTypeString()
AbleField
AbleData.DataType(int)
.getDataTypeString
in interface AbleField
public java.lang.String getUsageString()
AbleField
AbleData.UsageType(java.lang.String)
.getUsageString
in interface AbleField
public int getUsage()
AbleField
AbleData.UsageType(java.lang.String)
.getUsage
in interface AbleField
public void setUsage(java.lang.String usage)
AbleField
AbleData.UsageType(java.lang.String)
.setUsage
in interface AbleField
public java.util.Map getMap()
AbleField
getMap
in interface AbleField
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |