edu.indiana.iucbrf.feature
Class IntegerFeature
java.lang.Object
edu.indiana.iucbrf.feature.AbstractFeature
edu.indiana.iucbrf.feature.IntegerFeature
- All Implemented Interfaces:
- DoubleRepresentable, Feature, SwingRepresentable, java.io.Serializable, java.lang.Comparable
public class IntegerFeature
- extends AbstractFeature
- implements DoubleRepresentable
A Feature with a value that is a double.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_VARIABLE_TYPE
public static final int DEFAULT_VARIABLE_TYPE
- See Also:
- Constant Field Values
IntegerFeature
public IntegerFeature(int newValue)
IntegerFeature
public IntegerFeature(java.lang.Number newValue)
IntegerFeature
public IntegerFeature(java.lang.String numericalString)
IntegerFeature
public IntegerFeature()
IntegerFeature
public IntegerFeature(DoubleRepresentable otherFeature)
IntegerFeature
public IntegerFeature(Distribution distribution)
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).
- Specified by:
getDefaultVariableType
in interface Feature
getFeatureInputPanel
public static FeatureInputPanel getFeatureInputPanel(int collectionType,
Domain domain,
FeatureKey featureKey,
boolean allowUnknowns)
clone
public java.lang.Object clone()
- Specified by:
clone
in interface Feature
- Specified by:
clone
in class AbstractFeature
midpoint
public Feature midpoint(Feature otherFeature)
- Specified by:
midpoint
in interface Feature
- Specified by:
midpoint
in class AbstractFeature
getValueAsDouble
public double getValueAsDouble()
- getDoubleValue not used due to thrown exception and
to give similarity to primative wrapper classes in java.lang
- Specified by:
getValueAsDouble
in interface DoubleRepresentable
setValueWithDouble
public void setValueWithDouble(double newValue)
- Description copied from interface:
DoubleRepresentable
- Set the value of this feature according to a double.
- Specified by:
setValueWithDouble
in interface DoubleRepresentable
adjust
public void adjust(double adjustAmount)
- Specified by:
adjust
in interface Feature
- Overrides:
adjust
in class AbstractFeature
intValue
public int intValue()
setValue
public void setValue(java.lang.Object new_value)
- Specified by:
setValue
in interface Feature
getTypeDescription
public static java.lang.String getTypeDescription()