hep.aida.ref.pdf
Class Range
- java.lang.Object
-
- hep.aida.ref.pdf.Range
-
-
Field Summary
-
Fields inherited from interface hep.aida.ext.IRange
EXCLUDE_BOUNDS, INCLUDE_BOUNDS, INCLUDE_LOWER_BOUND, INCLUDE_UPPER_BOUND
-
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
Range
public Range()
Creates a new instance of Range.
-
Range
public Range(double lowerBound, double upperBound)Creates a new instance of Range with type INCLUDE_BOUNDS.- Parameters:
lowerBound- The lower bound.upperBound- The upper bound.
-
Range
public Range(double lowerBound, double upperBound, int type)Creates a new instance of Range.- Parameters:
lowerBound- The lower bound.upperBound- The upper bound.type- The Range type.
-
-
Method Detail
-
type
public int type()
Get the IRange type.
-
setType
public boolean setType(int type)
Set the IRange type.
-
lowerBound
public double lowerBound()
Get the lower bound.- Specified by:
lowerBoundin interfaceIRange- Returns:
- The lower bound.
-
upperBound
public double upperBound()
Get the upper bound.- Specified by:
upperBoundin interfaceIRange- Returns:
- The upper bound.
-
setLowerBound
public boolean setLowerBound(double lowerBound)
Set the lower bound.- Specified by:
setLowerBoundin interfaceIRange- Parameters:
lowerBound- The lower bound.- Returns:
trueif the lower bound was set succesfullyfalseif lowerBound is greater than the upper bound.
-
setUpperBound
public boolean setUpperBound(double upperBound)
Set the upper bound.- Specified by:
setUpperBoundin interfaceIRange- Parameters:
upperBound- The upper bound.- Returns:
trueif the upper bound was set succesfullyfalseif upperBound is smaller than the lower bound.
-
-
DMelt 3.0 © DataMelt by jWork.ORG