edu.indiana.iucbrf.feature
Class ExceptionFeature

java.lang.Object
  extended by edu.indiana.iucbrf.feature.AbstractFeature
      extended by edu.indiana.iucbrf.feature.ExceptionFeature
All Implemented Interfaces:
Feature, SwingRepresentable, java.io.Serializable, java.lang.Comparable

public class ExceptionFeature
extends AbstractFeature

This class is used to indicate that an exception occurred when a feature was constructed. It is used by the FeatureInputPanel classes when a component can not create a feature due to an exception.

See Also:
Serialized Form

Field Summary
static int DEFAULT_VARIABLE_TYPE
           
protected  java.lang.String message
           
 
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
protected ExceptionFeature()
           
  ExceptionFeature(java.lang.String message)
          Creates a new instance of ExceptionFeature
 
Method Summary
 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.String getMessage()
           
 Feature midpoint(Feature other_feature)
           
 void setValue(java.lang.Object new_value)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.indiana.iucbrf.feature.AbstractFeature
adjust, checkAndGetDoubleValue, compareTo, equals, getValue, toString, toSwing, toSwing, toSwing
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected java.lang.String message

DEFAULT_VARIABLE_TYPE

public static final int DEFAULT_VARIABLE_TYPE
See Also:
Constant Field Values
Constructor Detail

ExceptionFeature

protected ExceptionFeature()

ExceptionFeature

public ExceptionFeature(java.lang.String message)
Creates a new instance of ExceptionFeature

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


midpoint

public Feature midpoint(Feature other_feature)
Specified by:
midpoint in interface Feature
Specified by:
midpoint in class AbstractFeature

clone

public java.lang.Object clone()
Specified by:
clone in interface Feature
Specified by:
clone in class AbstractFeature

getMessage

public java.lang.String getMessage()

setValue

public void setValue(java.lang.Object new_value)

toString

public java.lang.String toString()
Overrides:
toString in class AbstractFeature