edu.indiana.iucbrf.feature
Class ObjectFeature

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

public class ObjectFeature
extends AbstractFeature

A general Object feature, where the value can be any Object.

See Also:
Serialized Form

Field Summary
static int DEFAULT_VARIABLE_TYPE
           
static java.lang.reflect.Constructor STANDARD_CONSTRUCTOR
           
 
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
ObjectFeature()
          setValue() must be called.
ObjectFeature(java.lang.Object value)
          Creates a new instance of ObjectFeature
 
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).
static java.lang.String getTypeDescription()
           
 Feature midpoint(Feature other_feature)
           
 void setValue(java.lang.Object new_value)
           
 
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
 

Field Detail

STANDARD_CONSTRUCTOR

public static final transient java.lang.reflect.Constructor STANDARD_CONSTRUCTOR

DEFAULT_VARIABLE_TYPE

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

ObjectFeature

public ObjectFeature()
setValue() must be called.


ObjectFeature

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

Method Detail

getDefaultVariableType

public int getDefaultVariableType()
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

setValue

public void setValue(java.lang.Object new_value)

clone

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

getTypeDescription

public static java.lang.String getTypeDescription()