edu.indiana.iucbrf.feature.finiteset
Class YesNoFeature

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.YesNoFeature
All Implemented Interfaces:
DoubleRepresentable, Feature, FSMFeature, SwingRepresentable, java.io.Serializable, java.lang.Comparable

public class YesNoFeature
extends AbstractFSMFeature

This is an FSMFeature class where the finite set is {"Yes", "No"}.

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
YesNoFeature()
           
YesNoFeature(BinomialDistribution distribution)
           
YesNoFeature(Distribution distribution)
           
YesNoFeature(java.lang.Object value)
          Creates a new instance of YesNoFeature Handles Strings too, since the completeSet consists of Strings.
 
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()
           
 boolean isYes()
           
 
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

YesNoFeature

public YesNoFeature()

YesNoFeature

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


YesNoFeature

public YesNoFeature(Distribution distribution)

YesNoFeature

public YesNoFeature(BinomialDistribution 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()

isYes

public boolean isYes()