|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsky.science.QuantityRange
public class QuantityRange
A range object which contain two Quantities to make up the range.
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
| Field Summary | |
|---|---|
static QuantityRange |
ALL_RANGE
An all-encompassing range, from MIN_QUANTITY to MAX_QUANTITY |
static QuantityRange |
INVALID_RANGE
A QuantityRange with null values for both max and min |
static Quantity |
MAX_QUANTITY
Maximum possible Quantity/ |
static Quantity |
MIN_QUANTITY
Minimum possible Quantity (largest negative value). |
| Constructor Summary | |
|---|---|
QuantityRange(Quantity min,
Quantity max)
Creates a QuantityRange from specified min and max |
|
| Method Summary | |
|---|---|
Quantity |
getMaximumRange()
Get the maximum range value. |
Quantity |
getMinimumRange()
Get the minimum range value. |
boolean |
intersects(QuantityRange range)
Returns whether or not this range intersects the parameter range |
java.lang.String |
toString()
Represent the range as a String, in the Quantity's default units |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static Quantity MIN_QUANTITY
public static Quantity MAX_QUANTITY
public static final QuantityRange INVALID_RANGE
public static final QuantityRange ALL_RANGE
| Constructor Detail |
|---|
public QuantityRange(Quantity min,
Quantity max)
min - the minimum range valuemax - the maximum range value| Method Detail |
|---|
public Quantity getMinimumRange()
public Quantity getMaximumRange()
public boolean intersects(QuantityRange range)
range - the range to compare against
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||