edu.indiana.iucbrf.feature
Interface Feature

All Superinterfaces:
java.lang.Comparable, SwingRepresentable
All Known Subinterfaces:
FeatureCollection, FSMFeature
All Known Implementing Classes:
AbstractFeature, AbstractFeatureCollection, AbstractFSMFeature, BooleanFeature, CharacterFeature, DisplayMessageFeature, DoubleFeature, ExceptionFeature, FeatureMap, FiveSeverityFeature, InetAddressFeature, IntegerFeature, LongStringFeature, ObjectFeature, OrderedFeatureMap, PrintQualityFeature, StringFeature, TableFeature, TermVectorFeature, YesNoFeature

public interface Feature
extends java.lang.Comparable, SwingRepresentable

Features are the primary placeholders for information about both problems and solutions. Every Feature instance contains a value, and is governed by exactly one FeatureSpec, linked by FeatureKey.


Field Summary
static FeatureDifferentiator[] DEFAULT_FEATURE_DIFFERENTIATORS_BY_VARTYPE
          The default feature differentiators are defined here, indexed by feature variable type.
static java.awt.Font FEATURE_VALUE_FONT
           
static int INTERVAL_VARIABLE
           
static int LABEL_WIDTH
           
static int NOMINAL_VARIABLE
           
static int ORDINAL_VARIABLE
           
static int OTHER_VARIABLE
           
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Method Summary
 void adjust(double adjustAmount)
           
 java.lang.Object clone()
           
 int getDefaultVariableType()
          Get the variable type (for example, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE, Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE).
 java.lang.Object getValue()
           
 Feature midpoint(Feature other_feature)
           
 void setValue(java.lang.Object new_value)
           
 java.lang.String toString(FeatureValueFormat formatter)
           
 javax.swing.JComponent toSwing(FeatureValueFormat formatter)
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface edu.indiana.util.swing.SwingRepresentable
toSwing
 

Field Detail

LABEL_WIDTH

static final int LABEL_WIDTH
See Also:
Constant Field Values

FEATURE_VALUE_FONT

static final java.awt.Font FEATURE_VALUE_FONT

NOMINAL_VARIABLE

static final int NOMINAL_VARIABLE
See Also:
Constant Field Values

ORDINAL_VARIABLE

static final int ORDINAL_VARIABLE
See Also:
Constant Field Values

INTERVAL_VARIABLE

static final int INTERVAL_VARIABLE
See Also:
Constant Field Values

OTHER_VARIABLE

static final int OTHER_VARIABLE
See Also:
Constant Field Values

DEFAULT_FEATURE_DIFFERENTIATORS_BY_VARTYPE

static final FeatureDifferentiator[] DEFAULT_FEATURE_DIFFERENTIATORS_BY_VARTYPE
The default feature differentiators are defined here, indexed by feature variable type. This may be overridden in the problem differentiator.

Method Detail

getDefaultVariableType

int getDefaultVariableType()
Get the variable type (for example, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE, Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE).


midpoint

Feature midpoint(Feature other_feature)

setValue

void setValue(java.lang.Object new_value)

adjust

void adjust(double adjustAmount)
            throws CouldNotAdjustException,
                   java.lang.UnsupportedOperationException
Throws:
CouldNotAdjustException
java.lang.UnsupportedOperationException

getValue

java.lang.Object getValue()

clone

java.lang.Object clone()

toString

java.lang.String toString(FeatureValueFormat formatter)

toSwing

javax.swing.JComponent toSwing(FeatureValueFormat formatter)