edu.indiana.iucbrf.feature.finiteset
Class BooleanFeature

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

public class BooleanFeature
extends AbstractFSMFeature

This is an FSMFeature class where the finite set is {Boolean.TRUE, Boolean.TRUE}.

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
BooleanFeature()
           
BooleanFeature(BinomialDistribution distribution)
           
BooleanFeature(boolean value)
           
BooleanFeature(Distribution distribution)
           
BooleanFeature(java.lang.Object value)
          Creates a new instance of BooleanFeature
 
Method Summary
 java.lang.Object convertString(java.lang.String value)
           
 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 isTrue()
           
 
Methods inherited from class edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature
buildSetDescription, clone, 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

BooleanFeature

public BooleanFeature()

BooleanFeature

public BooleanFeature(java.lang.Object value)
Creates a new instance of BooleanFeature


BooleanFeature

public BooleanFeature(boolean value)

BooleanFeature

public BooleanFeature(Distribution distribution)

BooleanFeature

public BooleanFeature(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).


convertString

public java.lang.Object convertString(java.lang.String value)
Overrides:
convertString in class AbstractFSMFeature

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()

isTrue

public boolean isTrue()