com.ibm.tivoli.maximo.expression

Class Function

    • Field Detail

      • hasCachedValue

        protected boolean hasCachedValue
      • funcKey

        protected java.lang.String funcKey
      • funcError

        protected java.lang.Exception funcError
    • Constructor Detail

      • Function

        public Function(Expression exp,
                        java.lang.String name,
                        int numParams)
        Creates a new function with given name and parameter count.
        Parameters:
        name - The name of the function.
        numParams - The number of parameters for this function.
    • Method Detail

      • validateSignature

        public void validateSignature(java.lang.Integer expectedArgs,
                                      java.util.List actArgs)
      • lazyEval

        public LazyNumber lazyEval(java.util.List lazyParams)
        Description copied from class: LazyFunction
        Implementation for this function.
        Specified by:
        lazyEval in class LazyFunction
        Returns:
        The function must return a new BigDecimal value as a computing result.
      • wrapMXException

        protected void wrapMXException(MXException me)
      • getCachedFuncValue

        public java.lang.Double getCachedFuncValue(java.lang.String key)
      • cacheFuncValue

        public void cacheFuncValue(java.lang.String key,
                                   java.lang.Double value)
      • hasCachedFuncValue

        public boolean hasCachedFuncValue(java.lang.String key)
      • errorLog

        protected void errorLog(java.lang.String msg,
                                MboRemote mbo)
      • mboKeyDebugId

        protected java.lang.String mboKeyDebugId(MboRemote mbo)
      • getStringValForHashCode

        public java.lang.String getStringValForHashCode(java.math.BigDecimal hashCode)
      • funcKey

        protected java.lang.String funcKey(java.util.List parameters)
      • eval

        public java.math.BigDecimal eval(java.util.List parameters)
        Implementation for this function.
        Parameters:
        parameters - Parameters will be passed by the expression evaluator as a List of BigDecimal values.
        Returns:
        The function must return a new BigDecimal value as a computing result.
        Throws:
        java.lang.Exception
      • getFuncError

        public java.lang.Exception getFuncError()
      • setFuncError

        public void setFuncError(java.lang.Exception e)