hep.aida.ext
Interface IRange
-
-
Field Summary
Fields Modifier and Type Field and Description static intEXCLUDE_BOUNDSstatic intINCLUDE_BOUNDSThe IRange types.static intINCLUDE_LOWER_BOUNDstatic intINCLUDE_UPPER_BOUND
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanisInRange(double value)Check if a value is within the IRange.doublelowerBound()Get the lower bound.booleansetLowerBound(double lowerBound)Set the lower bound.booleansetType(int type)Set the IRange type.booleansetUpperBound(double upperBound)Set the upper bound.inttype()Get the IRange type.doubleupperBound()Get the upper bound.
-
-
-
Field Detail
-
INCLUDE_BOUNDS
static final int INCLUDE_BOUNDS
The IRange types. It determines if the boundaries are inside or outside the range.- See Also:
- Constant Field Values
-
INCLUDE_UPPER_BOUND
static final int INCLUDE_UPPER_BOUND
- See Also:
- Constant Field Values
-
INCLUDE_LOWER_BOUND
static final int INCLUDE_LOWER_BOUND
- See Also:
- Constant Field Values
-
EXCLUDE_BOUNDS
static final int EXCLUDE_BOUNDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
int type()
Get the IRange type.- Returns:
- The IRange type.
-
setType
boolean setType(int type)
Set the IRange type.- Parameters:
type- The IRange type.- Returns:
trueif the type was set succesfullyfalseotherwise
-
lowerBound
double lowerBound()
Get the lower bound.- Returns:
- The lower bound.
-
upperBound
double upperBound()
Get the upper bound.- Returns:
- The upper bound.
-
setLowerBound
boolean setLowerBound(double lowerBound)
Set the lower bound.- Parameters:
lowerBound- The lower bound.- Returns:
trueif the lower bound was set succesfullyfalseif lowerBound is greater than the upper bound.
-
setUpperBound
boolean setUpperBound(double upperBound)
Set the upper bound.- Parameters:
upperBound- The upper bound.- Returns:
trueif the upper bound was set succesfullyfalseif upperBound is smaller than the lower bound.
-
isInRange
boolean isInRange(double value)
Check if a value is within the IRange.- Parameters:
value- The value to check.- Returns:
trueif the value is within the range.falseotherwise.
-
-
DMelt 3.0 © DataMelt by jWork.ORG