Interface StringExpression

All Superinterfaces:
Base, PropertyChangeProvider
All Known Subinterfaces:
FemaleStringExpressionSocket, MaleStringExpressionSocket, StringExpressionBean
All Known Implementing Classes:
AbstractStringExpression, DebuggerMaleStringExpressionSocket, DefaultFemaleStringExpressionSocket, DefaultMaleStringExpressionSocket, StringExpressionConstant, StringExpressionMemory, StringFormula

public interface StringExpression
extends Base
String expression is used in LogixNG to answer a question that can give a string value as result.
  • Method Details

    • evaluate

      Evaluate this expression.
      Returns:
      the result of the evaluation
      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