Class LogicBlock.LogicInput

java.lang.Object
neqsim.process.controllerdevice.LogicBlock.LogicInput
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LogicBlock.ChainedLogicInput, LogicBlock.FixedLogicInput
Enclosing class:
LogicBlock

public static class LogicBlock.LogicInput extends Object implements Serializable
Input definition based on a measurement device and threshold comparison.
Version:
1.0
Author:
ESOL
See Also:
  • Field Details

  • Constructor Details

    • LogicInput

      public LogicInput(MeasurementDeviceInterface device, double threshold, LogicBlock.Comparator comparator)
      Create a logic input.
      Parameters:
      device - the measurement device
      threshold - the threshold value
      comparator - how to compare
  • Method Details

    • evaluate

      public boolean evaluate(double equalityTolerance)
      Evaluate this input to a boolean.
      Parameters:
      equalityTolerance - tolerance for EQUAL comparison
      Returns:
      true if the condition is met
    • getDevice

      public MeasurementDeviceInterface getDevice()
      Get the measurement device.
      Returns:
      the device
    • getThreshold

      public double getThreshold()
      Get the threshold.
      Returns:
      the threshold
    • getComparator

      public LogicBlock.Comparator getComparator()
      Get the comparator.
      Returns:
      the comparator