|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.function.Range
Implementation of IRange.
Field Summary |
Fields inherited from interface hep.aida.ext.IRange |
EXCLUDE_BOUNDS, INCLUDE_BOUNDS, INCLUDE_LOWER_BOUND, INCLUDE_UPPER_BOUND |
Constructor Summary | |
Range()
Creates a new instance of Range. |
|
Range(double lowerBound,
double upperBound)
Creates a new instance of Range with type INCLUDE_BOUNDS. |
|
Range(double lowerBound,
double upperBound,
int type)
Creates a new instance of Range. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Range()
public Range(double lowerBound, double upperBound)
lowerBound
- The lower bound.upperBound
- The upper bound.public Range(double lowerBound, double upperBound, int type)
lowerBound
- The lower bound.upperBound
- The upper bound.type
- The Range type.Method Detail |
public int type()
type
in interface IRange
public boolean setType(int type)
setType
in interface IRange
type
- The IRange type.
true
if the type was set succesfully
false
otherwisepublic double lowerBound()
lowerBound
in interface IRange
public double upperBound()
upperBound
in interface IRange
public boolean setLowerBound(double lowerBound)
setLowerBound
in interface IRange
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)
setUpperBound
in interface IRange
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)
isInRange
in interface IRange
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 |