|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.pellet.datatypes.types.real.ContinuousRealInterval
public class ContinuousRealInterval
Title: owl:real
Interval
Description: An immutable interval representation supporting continuous
(decimal and rational) number lines in owl:real
value space.
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
Constructor Summary | |
---|---|
ContinuousRealInterval(java.lang.Number point)
Create a point interval. |
|
ContinuousRealInterval(java.lang.Number lower,
java.lang.Number upper,
boolean inclusiveLower,
boolean inclusiveUpper)
Create an interval. |
Method Summary | |
---|---|
static ContinuousRealInterval |
allReals()
|
boolean |
boundLower()
|
boolean |
boundUpper()
|
boolean |
canUnionWith(ContinuousRealInterval other)
|
IntervalRelations |
compare(ContinuousRealInterval other)
|
boolean |
contains(java.lang.Number n)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Number |
getLower()
|
java.lang.Number |
getUpper()
|
ContinuousRealInterval |
greater(java.lang.Number n)
Get the subinterval greater than n |
int |
hashCode()
|
boolean |
inclusiveLower()
|
boolean |
inclusiveUpper()
|
ContinuousRealInterval |
intersection(ContinuousRealInterval that)
|
boolean |
isPoint()
|
ContinuousRealInterval |
less(java.lang.Number n)
Get the subinterval less than n |
java.util.List<ContinuousRealInterval> |
remove(ContinuousRealInterval other)
|
java.lang.Number |
size()
|
java.lang.String |
toString()
|
java.util.List<ContinuousRealInterval> |
union(ContinuousRealInterval other)
|
java.util.Iterator<java.lang.Number> |
valueIterator()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContinuousRealInterval(java.lang.Number point)
#OWLRealInterval(Number, Number, boolean, boolean)
with arguments
point,point,true,true
point
- Value of point intervalpublic ContinuousRealInterval(java.lang.Number lower, java.lang.Number upper, boolean inclusiveLower, boolean inclusiveUpper)
null
should be used to indicate unbound
(i.e., infinite intervals).
lower
- Interval lower boundupper
- Interval upper boundinclusiveLower
- true
if lower bound is inclusive,
false
for exclusive. Ignored if
lower == null
.inclusiveUpper
- true
if upper bound is inclusive,
false
for exclusive. Ignored if
upper == null
.Method Detail |
---|
public static ContinuousRealInterval allReals()
public boolean boundLower()
public boolean boundUpper()
public boolean canUnionWith(ContinuousRealInterval other)
public IntervalRelations compare(ContinuousRealInterval other)
public boolean contains(java.lang.Number n)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Number getLower()
public java.lang.Number getUpper()
public ContinuousRealInterval greater(java.lang.Number n)
n
-
null
if that intersection is emptypublic int hashCode()
hashCode
in class java.lang.Object
public boolean inclusiveLower()
public boolean inclusiveUpper()
public ContinuousRealInterval intersection(ContinuousRealInterval that)
public boolean isPoint()
public ContinuousRealInterval less(java.lang.Number n)
n
-
null
if that intersection is emptypublic java.util.List<ContinuousRealInterval> remove(ContinuousRealInterval other)
public java.lang.Number size()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<ContinuousRealInterval> union(ContinuousRealInterval other)
public java.util.Iterator<java.lang.Number> valueIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |