Class AnalogExpressionConstant

    • Method Detail

      • getDeepCopy

        public Base getDeepCopy​(java.util.Map<java.lang.String,​java.lang.String> systemNames,
                                java.util.Map<java.lang.String,​java.lang.String> userNames)
        Description copied from interface: Base
        Create a deep copy of myself and my children The item needs to try to lookup itself in both systemNames and userNames to see if the user has given a new system name and/or a new user name.If no new system name is given, an auto system name is used. If no user name is given, a null user name is used.
        systemNames - a map of old and new system name
        userNames - a map of old system name and new user name
        a deep copy
      • setValue

        public void setValue​(double value)
      • evaluate

        public double evaluate()
        Evaluate this expression.
        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.
      • getChild

        public FemaleSocket getChild​(int index)
                              throws java.lang.IllegalArgumentException,
        Description copied from class: AbstractBase
        Get a child of this item
        Specified by:
        getChild in interface Base
        getChild in class AbstractBase
        index - the index of the child to get
        the child
        java.lang.IllegalArgumentException - if the index is less than 0 or greater or equal with the value returned by getChildCount()
      • getShortDescription

        public java.lang.String getShortDescription​(java.util.Locale locale)
        Description copied from interface: Base
        Get a short description of this item.
        locale - The locale to be used
        a short description
      • getLongDescription

        public java.lang.String getLongDescription​(java.util.Locale locale)
        Description copied from interface: Base
        Get a long description of this item.
        locale - The locale to be used
        a long description
      • setup

        public void setup()
        Setup this object and its children. This method is used to lookup system names for child sockets, turnouts, sensors, and so on.
      • disposeMe

        public void disposeMe()
        Dispose this class. Listeners do not need to be unregistered by this method since they are unregistered by dispose().
        disposeMe in class AbstractBase