public class RangeValueType extends Object implements ResourceRequirement
| Constructor and Description |
|---|
RangeValueType() |
RangeValueType(double exact)
Create the exact requirements
|
RangeValueType(double exact,
double epsilon)
Create the exact requirements
|
RangeValueType(double exact,
double lowerBound,
double upperBound) |
RangeValueType(double exact,
double epsilon,
double lowerBound,
boolean includeLowerBound,
double upperBound,
boolean includeUpperBound)
Create the range requirements
|
RangeValueType(double exact,
double epsilon,
double lowerBound,
boolean includeLowerBound,
double upperBound,
boolean includeUpperBound,
boolean enabled) |
RangeValueType(double exact,
double epsilon,
double lowerBound,
double upperBound)
Create the range requirements
|
| Modifier and Type | Method and Description |
|---|---|
RangeValueType |
clone() |
boolean |
equals(Object o) |
double |
getEpsilon()
Get epsilon
|
double |
getExact()
Get exact requirements
|
double |
getLowerBound()
Get lower bound
|
double |
getUpperBound()
Get upper bound
|
boolean |
isEnabled() |
boolean |
isIncludeLowerBound() |
boolean |
isIncludeUpperBound() |
boolean |
lowerThanDouble(double value)
Test if requirements are met
|
void |
setEnabled(boolean enabled) |
void |
setEpsilon(double epsilon)
Set epsilon
|
void |
setExact(double exact)
Set exact requirements
|
void |
setIncludeLowerBound(boolean includeLowerBound) |
void |
setIncludeUpperBound(boolean includeUpperBound) |
void |
setLowerBound(double lowerBound)
Set lower bound
|
void |
setUpperBound(double upperBound)
Set upper bound
|
String |
toString() |
public RangeValueType(double exact,
double epsilon,
double lowerBound,
boolean includeLowerBound,
double upperBound,
boolean includeUpperBound,
boolean enabled)
public RangeValueType(double exact,
double epsilon,
double lowerBound,
boolean includeLowerBound,
double upperBound,
boolean includeUpperBound)
exact - -
the exact valuelowerBound - -
the lower boundupperBound - -
the upper boundincludelowerBound - -
true, if lowerBound should be included in rangeincludeUpperBound - -
true, if upperBound should be included in rangepublic RangeValueType(double exact,
double epsilon,
double lowerBound,
double upperBound)
exact - -
the exact valuelowerBound - -
the lower boundupperBound - -
the upper boundpublic RangeValueType(double exact,
double lowerBound,
double upperBound)
public RangeValueType(double exact,
double epsilon)
exact - -
the exact valueepsilon - -
the epsilon arround exactpublic RangeValueType(double exact)
exact - -
the exact valuepublic RangeValueType()
public double getExact()
public void setExact(double exact)
exact - -
the exact requirementspublic double getEpsilon()
public void setEpsilon(double epsilon)
epsilon - -
epsilon belonging to to exact requirementspublic double getLowerBound()
public void setLowerBound(double lowerBound)
lowerBound - -
the lower boundpublic double getUpperBound()
public void setUpperBound(double upperBound)
upperBound - -
the upper boundpublic boolean lowerThanDouble(double value)
value - -
the tested valuetrue if value is in the range and not less than
the exact valuepublic boolean isIncludeLowerBound()
public void setIncludeLowerBound(boolean includeLowerBound)
public boolean isIncludeUpperBound()
public void setIncludeUpperBound(boolean includeUpperBound)
public RangeValueType clone()
public boolean isEnabled()
isEnabled in interface ResourceRequirementpublic void setEnabled(boolean enabled)
setEnabled in interface ResourceRequirementCopyright © 2011–2014 The Apache Software Foundation. All rights reserved.