Class DefaultFemaleAnalogExpressionSocket

    • Method Detail

      • isCompatible

        public boolean isCompatible​(MaleSocket socket)
        Is a particular male socket compatible with this female socket?
        Specified by:
        isCompatible in interface FemaleSocket
        Parameters:
        socket - the male socket
        Returns:
        true if the male socket can be connected to this female socket
      • evaluate

        public double evaluate()
                        throws JmriException
        Evaluate this expression.
        Specified by:
        evaluate in interface AnalogExpression
        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
      • getTriggerOnChange

        public boolean getTriggerOnChange()
        Get whenether this expression should trigger the ConditionalNG if the named beans it listens to changes state.
        Specified by:
        getTriggerOnChange in interface AnalogExpression
        Returns:
        true if trigger on change, false otherwise
      • setTriggerOnChange

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

        public java.lang.String getShortDescription​(java.util.Locale locale)
        Get a short description of this item.
        Specified by:
        getShortDescription in interface Base
        Parameters:
        locale - The locale to be used
        Returns:
        a short description
      • getLongDescription

        public java.lang.String getLongDescription​(java.util.Locale locale)
        Get a long description of this item.
        Specified by:
        getLongDescription in interface Base
        Parameters:
        locale - The locale to be used
        Returns:
        a long description