Class LogicBlock.FixedLogicInput
java.lang.Object
neqsim.process.controllerdevice.LogicBlock.LogicInput
neqsim.process.controllerdevice.LogicBlock.FixedLogicInput
- All Implemented Interfaces:
Serializable
- Enclosing class:
LogicBlock
Fixed boolean input for testing or permanent interlocks.
- Version:
- 1.0
- Author:
- ESOL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final longFields inherited from class LogicBlock.LogicInput
comparator, device, threshold -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(double equalityTolerance) Evaluate this input to a boolean.Methods inherited from class LogicBlock.LogicInput
getComparator, getDevice, getThreshold
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
fixedValue
private final boolean fixedValue
-
-
Constructor Details
-
FixedLogicInput
FixedLogicInput(boolean fixedValue)
-
-
Method Details
-
evaluate
public boolean evaluate(double equalityTolerance) Description copied from class:LogicBlock.LogicInputEvaluate this input to a boolean.- Overrides:
evaluatein classLogicBlock.LogicInput- Parameters:
equalityTolerance- tolerance for EQUAL comparison- Returns:
- true if the condition is met
-