public class DoubleRange extends Object implements Serializable
| Constructor and Description |
|---|
DoubleRange(double minInclusive,
double maxInclusive) |
DoubleRange(double min,
double max,
boolean minIncl,
boolean maxIncl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static DoubleRange |
fromXtceComplement(double minExclusive,
double maxExclusive,
double minInclusive,
double maxInclusive)
Returns a range from the XTCE float range used for alarms which is in fact a union of two ranges
|
double |
getMax() |
double |
getMin() |
int |
hashCode() |
int |
inRange(double v)
Checks if the value is in range.
|
DoubleRange |
intersectWith(DoubleRange other)
E.g.
|
boolean |
isMaxInclusive() |
boolean |
isMinInclusive() |
String |
toString() |
public DoubleRange(double min,
double max,
boolean minIncl,
boolean maxIncl)
public DoubleRange(double minInclusive,
double maxInclusive)
public static DoubleRange fromXtceComplement(double minExclusive, double maxExclusive, double minInclusive, double maxInclusive)
minExclusive - maxExclusive - minInclusive - maxInclusive - public double getMax()
public double getMin()
public boolean isMinInclusive()
public boolean isMaxInclusive()
public int inRange(double v)
v - public DoubleRange intersectWith(DoubleRange other)
Copyright © 2019 Space Applications Services. All rights reserved.