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.
Methods inherited from interface java.lang.Comparable |
compareTo |
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.
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)