Interface AnalogExpression

All Superinterfaces:
Base, PropertyChangeProvider
All Known Subinterfaces:
AnalogExpressionBean, FemaleAnalogExpressionSocket, MaleAnalogExpressionSocket
All Known Implementing Classes:
AbstractAnalogExpression, AnalogExpressionAnalogIO, AnalogExpressionConstant, AnalogExpressionMemory, AnalogFormula, DebuggerMaleAnalogExpressionSocket, DefaultFemaleAnalogExpressionSocket, DefaultMaleAnalogExpressionSocket, TimeSinceMidnight

public interface AnalogExpression
extends Base
Analog expression is used in LogixNG to answer a question that can give an analog value as result.
  • Method Details

    • evaluate

      double evaluate() throws JmriException
      Evaluate this expression.
      Returns:
      the result of the evaluation. The male socket that holds this expression throws an exception if this value is a Double.NaN or an infinite number.
      Throws:
      JmriException - when an exception occurs
    • setTriggerOnChange

      void setTriggerOnChange​(boolean triggerOnChange)
      Set whenether this expression should trigger the ConditionalNG if the named beans it listens to changes state.
      Parameters:
      triggerOnChange - true if trigger on change, false otherwise
    • getTriggerOnChange

      Get whenether this expression should trigger the ConditionalNG if the named beans it listens to changes state.
      Returns:
      true if trigger on change, false otherwise