edu.indiana.iucbrf.feature
Class InetAddressFeature

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

public class InetAddressFeature
extends AbstractFeature

InetAddress from java release 1.4 are avoided at pressent. Should realy be caching address as double and string as well as keeping actual InetAddress in value.

See Also:
Serialized Form

Field Summary
static int DEFAULT_VARIABLE_TYPE
           
 
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
InetAddressFeature()
           
InetAddressFeature(Feature other_feature)
          you having clone made me put this in!!!
InetAddressFeature(java.net.InetAddress new_value)
           
InetAddressFeature(java.lang.Object new_value)
           
 
Method Summary
 java.lang.Object clone()
          forces desendants to re-implement clone!! interesting left this in makes you think about clone().
 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)
           
 java.lang.String getStringValue()
           
 double getValueAsDouble()
           
 Feature midpoint(Feature other_feature)
           
 void setStringValue(java.lang.String new_value)
           
 void setValue(java.lang.Object new_value)
           
 void setValueWithDouble(double 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

DEFAULT_VARIABLE_TYPE

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

InetAddressFeature

public InetAddressFeature()

InetAddressFeature

public InetAddressFeature(java.lang.Object new_value)

InetAddressFeature

public InetAddressFeature(java.net.InetAddress new_value)

InetAddressFeature

public InetAddressFeature(Feature other_feature)
you having clone made me put this in!!!

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


getFeatureInputPanel

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

clone

public java.lang.Object clone()
forces desendants to re-implement clone!! interesting left this in makes you think about clone(). usually use a copy constructor if anything

Specified by:
clone in interface Feature
Specified by:
clone in class AbstractFeature

getStringValue

public java.lang.String getStringValue()

setStringValue

public void setStringValue(java.lang.String new_value)

midpoint

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

getValueAsDouble

public double getValueAsDouble()

setValueWithDouble

public void setValueWithDouble(double new_value)

toString

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

setValue

public void setValue(java.lang.Object new_value)