edu.stanford.rt.datatype
Class IntervalValueSet

java.lang.Object
  |
  +--edu.stanford.rt.datatype.ValueSet
        |
        +--edu.stanford.rt.datatype.IntervalValueSet

public class IntervalValueSet
extends ValueSet

Author:
Ninghui Li, Sandra Qiu
Implementation of Inteval element. An IntervalValueSet represents an Interval value. It has a min value and a max value. When min is null, it means that the lower side is unbounded. When max is null, the upper side is unbounded. When min is not null, includeMin can be true. Similarly, when max is not null, includeMax can be true.

Field Summary
private  boolean includeMax
           
private  boolean includeMin
           
private  DataValue max
           
private  DataValue min
           
 
Fields inherited from class edu.stanford.rt.datatype.ValueSet
 
Constructor Summary
IntervalValueSet(OrderedType type, DataValue min, DataValue max)
          Constructor of IntervalValueSet.
 
Method Summary
 DataValue getMax()
          Method getMax.
 DataValue getMin()
          Method getMin.
 boolean isMaxIncluded()
          Method isMaxIncluded.
 boolean isMinIncluded()
          Method isMinIncluded.
 java.lang.String toString(java.lang.String indent)
          Method toString.
 
Methods inherited from class edu.stanford.rt.datatype.ValueSet
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

private DataValue min

max

private DataValue max

includeMin

private boolean includeMin

includeMax

private boolean includeMax
Constructor Detail

IntervalValueSet

public IntervalValueSet(OrderedType type,
                        DataValue min,
                        DataValue max)
Constructor of IntervalValueSet.

Method Detail

getMin

public DataValue getMin()
Method getMin.

Returns:
DataValue

getMax

public DataValue getMax()
Method getMax.

Returns:
DataValue

isMinIncluded

public boolean isMinIncluded()
Method isMinIncluded.

Returns:
boolean

isMaxIncluded

public boolean isMaxIncluded()
Method isMaxIncluded.

Returns:
boolean

toString

public java.lang.String toString(java.lang.String indent)
Description copied from class: ValueSet
Method toString.

Overrides:
toString in class ValueSet
Parameters:
indent -
Returns:
String