|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for a Range.
| Field Summary | |
static int |
EXCLUDE_BOUNDS
|
static int |
INCLUDE_BOUNDS
The IRange types. |
static int |
INCLUDE_LOWER_BOUND
|
static int |
INCLUDE_UPPER_BOUND
|
| Method Summary | |
boolean |
isInRange(double value)
Check if a value is within the IRange. |
double |
lowerBound()
Get the lower bound. |
boolean |
setLowerBound(double lowerBound)
Set the lower bound. |
boolean |
setType(int type)
Set the IRange type. |
boolean |
setUpperBound(double upperBound)
Set the upper bound. |
int |
type()
Get the IRange type. |
double |
upperBound()
Get the upper bound. |
| Field Detail |
public static final int INCLUDE_BOUNDS
public static final int INCLUDE_UPPER_BOUND
public static final int INCLUDE_LOWER_BOUND
public static final int EXCLUDE_BOUNDS
| Method Detail |
public int type()
public boolean setType(int type)
type - The IRange type.
true if the type was set succesfully
false otherwisepublic double lowerBound()
public double upperBound()
public boolean setLowerBound(double lowerBound)
lowerBound - The lower bound.
true if the lower bound was set succesfully
false if lowerBound is greater than the upper bound.public boolean setUpperBound(double upperBound)
upperBound - The upper bound.
true if the upper bound was set succesfully
false if upperBound is smaller than the lower bound.public boolean isInRange(double value)
value - The value to check.
true if the value is within the range.
false otherwise.
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||