|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.feature.featurespec.FeatureSpec
public class FeatureSpec
A FeatureSpec (feature specification) describes the general attributes of all features of a given type. For example, if cases in a system have a DoubleFeature (a feature of type double) representing current temperature, then the FeatureSpec contains the general information such as name ("temperature"), description ("The current temperature in degrees Celsius"), type (edu.indiana.iucbrf.feature.DoubleFeature), and the corresponding FeatureKey. An instance of DoubleFeature would consist primarily of the feature value (e.g. 7.3).
Field Summary | |
---|---|
protected java.lang.String |
description
|
protected java.util.HashMap |
extraData
|
protected FeatureKey |
featureKey
|
protected FeatureValueFormat |
format
|
protected boolean |
isPrintable
|
protected boolean |
isSubFeature
|
static int |
LABEL_WIDTH
|
static int |
MAX_NAME_LENGTH
|
protected java.lang.String |
name
|
static java.lang.Integer |
NUMERICAL_FEATURE_RELAXATION_AMOUNT_KEY
|
protected java.lang.reflect.Constructor |
standardConstructor
|
static java.lang.Integer |
TABLE_FEATURE_ROWS_DATA_KEY
Maps to a FeatureKey[]. |
protected java.lang.Class |
type
|
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
TITLE_FONT |
Constructor Summary | |
---|---|
protected |
FeatureSpec()
|
|
FeatureSpec(FeatureKey featureKey,
java.lang.String description,
java.lang.String typeName)
Gives a default name of the first 10 characters of the description plus "...". |
|
FeatureSpec(FeatureKey featureKey,
java.lang.String name,
java.lang.String description,
java.lang.String typeName)
Creates a new instance of FeatureSpec |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
FeatureDifferentiator |
getDefaultFeatureDifferentiator()
|
java.lang.String |
getDescription()
|
java.lang.Object |
getExtraData(java.lang.Object extraDataKey)
|
java.util.HashMap |
getExtraDataHashMap()
|
FeatureKey |
getFeatureKey()
|
FeatureValueFormat |
getFormat()
|
java.lang.String |
getName()
|
java.lang.reflect.Constructor |
getStandardConstructor()
|
java.lang.Class |
getType()
|
java.lang.String |
getTypeDescription()
|
int |
getVariableType()
Returns the variable type, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE, Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE. |
boolean |
isPrintable()
|
boolean |
isSubFeature()
|
protected void |
putExtraData(java.lang.Object key,
java.lang.Object data)
|
protected void |
setDescription(java.lang.String description)
|
protected void |
setFormat(FeatureValueFormat format)
|
protected void |
setIsPrintable(boolean isPrintable)
|
protected void |
setIsSubFeature(boolean isSubFeature)
|
protected void |
setName(java.lang.String name)
|
protected void |
setStandardConstructor(java.lang.Class[] argTypes)
|
protected void |
setStandardConstructor(java.lang.reflect.Constructor constructor)
|
protected void |
setStandardConstructor(java.lang.String[] argTypes)
|
protected void |
setType(java.lang.String typeName)
|
java.lang.String |
toString()
|
javax.swing.JComponent |
toSwing(int detailLevel)
Detail level may be ignored by implementations. |
protected javax.swing.JComponent |
toSwingHelper(int numberOfSlots)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Integer TABLE_FEATURE_ROWS_DATA_KEY
public static final java.lang.Integer NUMERICAL_FEATURE_RELAXATION_AMOUNT_KEY
public static final int LABEL_WIDTH
public static final int MAX_NAME_LENGTH
protected java.util.HashMap extraData
protected java.lang.String name
protected java.lang.String description
protected java.lang.Class type
protected FeatureKey featureKey
protected FeatureValueFormat format
protected boolean isPrintable
protected boolean isSubFeature
protected java.lang.reflect.Constructor standardConstructor
Constructor Detail |
---|
protected FeatureSpec()
public FeatureSpec(FeatureKey featureKey, java.lang.String description, java.lang.String typeName)
public FeatureSpec(FeatureKey featureKey, java.lang.String name, java.lang.String description, java.lang.String typeName)
Method Detail |
---|
protected void setStandardConstructor(java.lang.Class[] argTypes)
protected void setStandardConstructor(java.lang.String[] argTypes)
protected void setStandardConstructor(java.lang.reflect.Constructor constructor)
public java.lang.reflect.Constructor getStandardConstructor()
public boolean isPrintable()
protected void setIsPrintable(boolean isPrintable)
public boolean isSubFeature()
protected void setIsSubFeature(boolean isSubFeature)
protected void putExtraData(java.lang.Object key, java.lang.Object data)
public java.lang.Object getExtraData(java.lang.Object extraDataKey)
public java.util.HashMap getExtraDataHashMap()
public FeatureValueFormat getFormat()
protected void setFormat(FeatureValueFormat format)
public java.lang.String getName()
protected void setName(java.lang.String name)
public java.lang.String getDescription()
protected void setDescription(java.lang.String description)
public java.lang.Class getType()
protected void setType(java.lang.String typeName)
public int getVariableType()
public FeatureDifferentiator getDefaultFeatureDifferentiator()
public FeatureKey getFeatureKey()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public javax.swing.JComponent toSwing(int detailLevel)
SwingRepresentable
toSwing
in interface SwingRepresentable
public java.lang.String getTypeDescription()
protected javax.swing.JComponent toSwingHelper(int numberOfSlots)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |