|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ToleranceMode>
org.qtitools.qti.node.expression.operator.ToleranceMode
public enum ToleranceMode
Enumeration for equal expression.
Equal| Enum Constant Summary | |
|---|---|
ABSOLUTE
In absolute mode the result of the comparison is true if the value of the second expression, y is within the following range defined by the first value, x. |
|
EXACT
Exact comparing. |
|
RELATIVE
In relative mode, t0 and t1 are treated as percentages and the following range is used instead. |
|
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Method Summary | |
|---|---|
abstract boolean |
isEqual(double firstNumber,
double secondNumber,
double tolerance1,
double tolerance2,
boolean includeLowerBound,
boolean includeUpperBound)
Returns true if given numbers are equal; false otherwise. |
static ToleranceMode |
parseToleranceMode(java.lang.String toleranceMode)
Parses string representation of ToleranceMode. |
java.lang.String |
toString()
|
static ToleranceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ToleranceMode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ToleranceMode EXACT
public static final ToleranceMode ABSOLUTE
x - t0, x + t1
public static final ToleranceMode RELATIVE
x * (1 - t0 / 100), x * (1 + t1 / 100)
| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
| Method Detail |
|---|
public static final ToleranceMode[] values()
for(ToleranceMode c : ToleranceMode.values())
System.out.println(c);
public static ToleranceMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
public abstract boolean isEqual(double firstNumber,
double secondNumber,
double tolerance1,
double tolerance2,
boolean includeLowerBound,
boolean includeUpperBound)
firstNumber - first number to comparesecondNumber - second number to comparetolerance1 - tolerance for lower boundarytolerance2 - tolerance for upper boundaryincludeLowerBound - accept lower boundaryincludeUpperBound - accept upper boundary
public java.lang.String toString()
toString in class java.lang.Enum<ToleranceMode>public static ToleranceMode parseToleranceMode(java.lang.String toleranceMode)
ToleranceMode.
toleranceMode - string representation of ToleranceMode
ToleranceMode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||