edu.indiana.iucbrf.casebase.rdb
Class RangeQueryConstraint

java.lang.Object
  extended by edu.indiana.iucbrf.casebase.rdb.RangeQueryConstraint
All Implemented Interfaces:
QueryConstraint

public class RangeQueryConstraint
extends java.lang.Object
implements QueryConstraint


Field Summary
protected  double high
           
protected  double low
           
protected  double relaxationAmount
           
 
Constructor Summary
RangeQueryConstraint(double exactMatch, double relaxationAmount)
           
RangeQueryConstraint(double exactMatch, FeatureKey featureKey, Domain domain)
          Creates a new instance of RangeQueryConstraint
 
Method Summary
 void relax()
           
 java.lang.String toSQLCondition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

low

protected double low

high

protected double high

relaxationAmount

protected double relaxationAmount
Constructor Detail

RangeQueryConstraint

public RangeQueryConstraint(double exactMatch,
                            FeatureKey featureKey,
                            Domain domain)
Creates a new instance of RangeQueryConstraint


RangeQueryConstraint

public RangeQueryConstraint(double exactMatch,
                            double relaxationAmount)
Method Detail

toSQLCondition

public java.lang.String toSQLCondition()
Specified by:
toSQLCondition in interface QueryConstraint

relax

public void relax()
Specified by:
relax in interface QueryConstraint