edu.indiana.iucbrf.feature.finiteset
Class FiveSeverityFeature

java.lang.Object
  extended by edu.indiana.iucbrf.feature.AbstractFeature
      extended by edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature
          extended by edu.indiana.iucbrf.feature.finiteset.FiveSeverityFeature
All Implemented Interfaces:
DoubleRepresentable, Feature, FSMFeature, SwingRepresentable, java.io.Serializable, java.lang.Comparable

public class FiveSeverityFeature
extends AbstractFSMFeature

This is an FSMFeature class where the finite set is {"Very Mild", "Mild", "Moderate", "Severe", "Very Severe"}.

See Also:
Serialized Form

Field Summary
static java.util.LinkedHashSet completeSet
           
static int DEFAULT_VARIABLE_TYPE
           
 
Fields inherited from class edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature
FSM_FEATURE_CLASS, ONE_ANSWER_SET
 
Fields inherited from class edu.indiana.iucbrf.feature.AbstractFeature
DEFAULT_CONSTRUCTED, NO_STANDARD_CONSTRUCTOR, value
 
Fields inherited from interface edu.indiana.iucbrf.feature.Feature
DEFAULT_FEATURE_DIFFERENTIATORS_BY_VARTYPE, FEATURE_VALUE_FONT, INTERVAL_VARIABLE, LABEL_WIDTH, NOMINAL_VARIABLE, ORDINAL_VARIABLE, OTHER_VARIABLE
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
FiveSeverityFeature()
          Creates a new instance of FiveSeverityFeature
FiveSeverityFeature(Distribution distribution)
           
FiveSeverityFeature(java.lang.Object value)
          Creates a new instance of FiveSeverityFeature Handles Strings too, since the completeSet consists of Strings.
FiveSeverityFeature(UniformDistribution distribution)
           
 
Method Summary
 java.util.LinkedHashSet getCompleteSet()
           
 int getDefaultVariableType()
          Get the variable type (for example, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE, Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE).
static FeatureInputPanel getFeatureInputPanel(int collectionType, Domain domain, FeatureKey featureKey, boolean allowUnknowns)
           
static java.lang.String getTypeDescription()
           
 
Methods inherited from class edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature
buildSetDescription, clone, convertString, getCompleteSet, getValueAsDouble, getValueAsIndex, getValueCorrespondingToIndex, getValueCorrespondingToIndex, isFSMFeature, isValidMember, midpoint, setValue, setValueWithDouble, setValueWithIndex, sizeOfSet
 
Methods inherited from class edu.indiana.iucbrf.feature.AbstractFeature
adjust, checkAndGetDoubleValue, compareTo, equals, getValue, toString, toString, toSwing, toSwing, toSwing
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.indiana.iucbrf.feature.Feature
adjust, getValue, toString, toSwing
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface edu.indiana.util.swing.SwingRepresentable
toSwing
 

Field Detail

DEFAULT_VARIABLE_TYPE

public static final int DEFAULT_VARIABLE_TYPE
See Also:
Constant Field Values

completeSet

public static java.util.LinkedHashSet completeSet
Constructor Detail

FiveSeverityFeature

public FiveSeverityFeature()
Creates a new instance of FiveSeverityFeature


FiveSeverityFeature

public FiveSeverityFeature(java.lang.Object value)
Creates a new instance of FiveSeverityFeature Handles Strings too, since the completeSet consists of Strings.


FiveSeverityFeature

public FiveSeverityFeature(Distribution distribution)

FiveSeverityFeature

public FiveSeverityFeature(UniformDistribution distribution)
Method Detail

getDefaultVariableType

public int getDefaultVariableType()
Description copied from interface: Feature
Get the variable type (for example, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE, Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE).


getCompleteSet

public java.util.LinkedHashSet getCompleteSet()

getFeatureInputPanel

public static FeatureInputPanel getFeatureInputPanel(int collectionType,
                                                     Domain domain,
                                                     FeatureKey featureKey,
                                                     boolean allowUnknowns)

getTypeDescription

public static java.lang.String getTypeDescription()