|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.casebase.Range
public class Range
A Range object holds two Feature objects.
These indicate the lower and upper bound of some range of problem feature values.
Actually, Feature objects are abstract, and all Range objects contain objects of some non-abstract subclass
of Feature.
A Range object includes the lower bound, and excludes the upper bound.
Use a lowerBound of null for negative infinity, and an upperbound of null for positive infinity.
Constructor Summary | |
---|---|
protected |
Range()
|
|
Range(Feature lowerBound,
Feature upperBound)
Creates new Range. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Create a copy of this Range object. |
int |
compareThisToFeature(Feature featureObject)
Compare this range to a Feature object. |
Feature |
getLowerBound()
Get the lower bound of this range. |
Feature |
getUpperBound()
Get the upper bound of this range. |
boolean |
isInBounds(Feature featureObject)
Check if a given Feature object is within the bounds of this range (including the lowerBound, excluding the upperBound). |
java.lang.String |
toString()
Convert this Range into a String representation. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Range()
public Range(Feature lowerBound, Feature upperBound)
Method Detail |
---|
public Feature getLowerBound()
public Feature getUpperBound()
public boolean isInBounds(Feature featureObject)
featureObject
- The Feature object in question.public int compareThisToFeature(Feature featureObject)
featureObject
- The Feature object to be compared to this Range.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |