public enum InequalityCondition extends Enum<InequalityCondition> implements Enumeration
constraints that use a threshold to determine if they
are satisfied or not, like the ThresholdStoppingConditionConstraint.| Enum Constant and Description |
|---|
EQUALS
Does whatever value equal the threshold given.
|
GREATER_THAN
Is the value greater than the threshold given.
|
GREATER_THAN_MINIMUM
Is the value greater than the lowest value computed up to now.
|
GREATER_THAN_OR_EQUAL
Is the value greater than or equal to the threshold given.
|
LESS_THAN
Is the value less than the threshold given.
|
LESS_THAN_MAXIMUM
Is the value less than the largest value computed up to now.
|
LESS_THAN_OR_EQUAL
Is the value less than or equal to the threshold given.
|
NOT_EQUALS
Does whatever value not equal the threshold given.
|
| Modifier and Type | Method and Description |
|---|---|
static InequalityCondition |
getDefault()
Get the enum constant that is considered to be the default.
|
static InequalityCondition |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static InequalityCondition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InequalityCondition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InequalityCondition EQUALS
ThresholdStoppingConditionConstraint it is best to only use this option with something
that is incremented slowly. A common error is to have the constraints
InequalityCriteria (get / set) set to InequalityCondition.EQUALS, but the
ThresholdStoppingConditionConstraint will only equal its threshold at one
instant, and when the propagator happens to miss that exact spot, the propagation never stops.public static final InequalityCondition NOT_EQUALS
public static final InequalityCondition GREATER_THAN
public static final InequalityCondition GREATER_THAN_OR_EQUAL
public static final InequalityCondition GREATER_THAN_MINIMUM
public static final InequalityCondition LESS_THAN
public static final InequalityCondition LESS_THAN_OR_EQUAL
public static final InequalityCondition LESS_THAN_MAXIMUM
public static InequalityCondition[] values()
for (InequalityCondition c : InequalityCondition.values()) System.out.println(c);
public static InequalityCondition valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
getValue in interface Enumeration@Nonnull public static InequalityCondition getFromValue(int value)
value - a numeric value.@Nonnull public static InequalityCondition getDefault()