public class QuantityRange extends Object
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
QuantityRange(Quantity min,
Quantity max)
Creates a QuantityRange from specified min and max
|
Modifier and Type | Method and Description |
---|---|
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
|
String |
toString()
Represent the range as a String, in the Quantity's default units
|
public static Quantity MIN_QUANTITY
public static Quantity MAX_QUANTITY
public static final QuantityRange INVALID_RANGE
public static final QuantityRange ALL_RANGE
public Quantity getMinimumRange()
public Quantity getMaximumRange()
public boolean intersects(QuantityRange range)
range
- the range to compare againstCopyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.