Enum Class LogicBlock.Comparator
- All Implemented Interfaces:
Serializable, Comparable<LogicBlock.Comparator>, Constable
- Enclosing class:
LogicBlock
Comparison operators used to convert a continuous signal to a boolean.
- Version:
- 1.0
- Author:
- ESOL
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTrue when measured value equals threshold (within tolerance).True when measured value >= threshold.True when measured value > threshold.True when measured value <= threshold.True when measured value < threshold. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicBlock.ComparatorReturns the enum constant of this class with the specified name.static LogicBlock.Comparator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GREATER_THAN
True when measured value > threshold. -
GREATER_EQUAL
True when measured value >= threshold. -
LESS_THAN
True when measured value < threshold. -
LESS_EQUAL
True when measured value <= threshold. -
EQUAL
True when measured value equals threshold (within tolerance).
-
-
Constructor Details
-
Comparator
private Comparator()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-