org.jscience.computing.ai.casebasedreasoning
Class FilterCriterion

java.lang.Object
  extended by org.jscience.computing.ai.casebasedreasoning.FilterCriterion

public class FilterCriterion
extends java.lang.Object

DOCUMENT ME!


Field Summary
protected  java.lang.String fieldName
          DOCUMENT ME!
protected  int operator
          DOCUMENT ME!
static int OPERATOR_EQUALS
          DOCUMENT ME!
static int OPERATOR_GREATER_THAN
          DOCUMENT ME!
static int OPERATOR_GREATER_THAN_OR_EQUAL
          DOCUMENT ME!
static int OPERATOR_LESS_THAN
          DOCUMENT ME!
static int OPERATOR_LESS_THAN_OR_EQUAL
          DOCUMENT ME!
static int OPERATOR_NOT_EQUAL
          DOCUMENT ME!
static int OPERATOR_UNKNOWN
          DOCUMENT ME!
protected  TraitValue value
          DOCUMENT ME!
 
Constructor Summary
protected FilterCriterion(java.lang.String fieldName, java.lang.String operator, java.lang.String value)
          Creates a new FilterCriterion object.
 
Method Summary
 java.lang.String getFieldName()
          DOCUMENT ME!
 int getOperator()
          DOCUMENT ME!
 java.lang.String getOperatorAsString()
          DOCUMENT ME!
 TraitValue getValue()
          DOCUMENT ME!
 boolean itemViolates(Item item)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATOR_UNKNOWN

public static final int OPERATOR_UNKNOWN
DOCUMENT ME!

See Also:
Constant Field Values

OPERATOR_EQUALS

public static final int OPERATOR_EQUALS
DOCUMENT ME!

See Also:
Constant Field Values

OPERATOR_NOT_EQUAL

public static final int OPERATOR_NOT_EQUAL
DOCUMENT ME!

See Also:
Constant Field Values

OPERATOR_GREATER_THAN

public static final int OPERATOR_GREATER_THAN
DOCUMENT ME!

See Also:
Constant Field Values

OPERATOR_GREATER_THAN_OR_EQUAL

public static final int OPERATOR_GREATER_THAN_OR_EQUAL
DOCUMENT ME!

See Also:
Constant Field Values

OPERATOR_LESS_THAN

public static final int OPERATOR_LESS_THAN
DOCUMENT ME!

See Also:
Constant Field Values

OPERATOR_LESS_THAN_OR_EQUAL

public static final int OPERATOR_LESS_THAN_OR_EQUAL
DOCUMENT ME!

See Also:
Constant Field Values

fieldName

protected java.lang.String fieldName
DOCUMENT ME!


operator

protected int operator
DOCUMENT ME!


value

protected TraitValue value
DOCUMENT ME!

Constructor Detail

FilterCriterion

protected FilterCriterion(java.lang.String fieldName,
                          java.lang.String operator,
                          java.lang.String value)
Creates a new FilterCriterion object.

Parameters:
fieldName - DOCUMENT ME!
operator - DOCUMENT ME!
value - DOCUMENT ME!
Method Detail

getFieldName

public java.lang.String getFieldName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOperator

public int getOperator()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOperatorAsString

public java.lang.String getOperatorAsString()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValue

public TraitValue getValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

itemViolates

public boolean itemViolates(Item item)
DOCUMENT ME!

Parameters:
item - DOCUMENT ME!
Returns:
DOCUMENT ME!