|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcbr.framework.Feature
public class Feature
A feature is an attribute value pair. Features can have a weight value and each must specify a similarity metric to be used to compare features.
Constructor Summary | |
---|---|
Feature(String name,
Value value,
boolean indexed)
Creates a Feature by supplying a name and value and indicating whether the feature is indexed or not. |
Method Summary | |
---|---|
String |
getName()
Get the name of the feature |
String |
getValueAsString()
Returns the value of this feature, represented as a String . |
boolean |
isIndexed()
Returns whether the feature is indexed or not |
String |
toString()
Describes the current state of this Feature |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Feature(String name, Value value, boolean indexed)
Feature
by supplying a name and value and indicating whether the feature
is indexed or not.
name
- the name of the feature
value
- the value of the feature
indexed
- true if the feature
is indexed, otherwise falseMethod Detail |
---|
public String getName()
feature
feature
public String getValueAsString()
String
.
String
representing the valuepublic boolean isIndexed()
public String toString()
Feature
toString
in class Object
String
describing this feature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |