Uses of Interface
jason.asSemantics.ArithFunction

Packages that use ArithFunction
Package Description
jason.asSemantics  
jason.asSyntax  
jason.asSyntax.directives  
jason.functions  
  • Uses of ArithFunction in jason.asSemantics

    Classes in jason.asSemantics that implement ArithFunction
    Modifier and Type Class Description
    class  DefaultArithFunction
    Useful default implementation of all methods of ArithFunction interface.
    Fields in jason.asSemantics with type parameters of type ArithFunction
    Modifier and Type Field Description
    private java.util.Map<java.lang.String,​ArithFunction> Agent.functions  
    Methods in jason.asSemantics that return ArithFunction
    Modifier and Type Method Description
    ArithFunction Agent.getFunction​(java.lang.String function, int arity)
    get the object the implements the arithmetic function function/arity, either global (like math.max) or local (like .count).
    Method parameters in jason.asSemantics with type arguments of type ArithFunction
    Modifier and Type Method Description
    void Agent.addFunction​(java.lang.Class<? extends ArithFunction> c)
    register an arithmetic function implemented in Java
    private void Agent.addFunction​(java.lang.Class<? extends ArithFunction> c, boolean user)
    register an arithmetic function implemented in Java
  • Uses of ArithFunction in jason.asSyntax

    Fields in jason.asSyntax declared as ArithFunction
    Modifier and Type Field Description
    private ArithFunction ArithFunctionTerm.function  
    Constructors in jason.asSyntax with parameters of type ArithFunction
    Constructor Description
    ArithFunctionTerm​(ArithFunction function)  
  • Uses of ArithFunction in jason.asSyntax.directives

    Fields in jason.asSyntax.directives with type parameters of type ArithFunction
    Modifier and Type Field Description
    private static java.util.Map<java.lang.String,​ArithFunction> FunctionRegister.functions  
    Methods in jason.asSyntax.directives that return ArithFunction
    Modifier and Type Method Description
    static ArithFunction FunctionRegister.getFunction​(java.lang.String function, int arity)  
    Method parameters in jason.asSyntax.directives with type arguments of type ArithFunction
    Modifier and Type Method Description
    static void FunctionRegister.addFunction​(java.lang.Class<? extends ArithFunction> c)
    add new global function (shared among all agents in the JVM)
    private static void FunctionRegister.addJasonFunction​(java.lang.Class<? extends ArithFunction> c)  
  • Uses of ArithFunction in jason.functions

    Classes in jason.functions that implement ArithFunction
    Modifier and Type Class Description
    class  Abs
    Function: math.abs(N): encapsulates java Math.abs(N).
    class  acos
    Function: math.acos(N): encapsulates java Math.acos(N), returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.
    class  asin
    Function: math.asin(N): encapsulates java Math.asin(N), returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2.
    class  atan
    Function: math.atan(N): encapsulates java Math.atan(N), returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2.
    class  Average
    Deprecated.
    use function mean instead
    class  ceil
    Function: math.ceil(N): encapsulates java Math.ceil(N), returns the smallest double value that is not less than the argument and is equal to a mathematical integer.
    class  cos
    Function: math.cos(N): encapsulates java Math.cos(N), returns the trigonometric cosine of an angle.
    class  Count
    Function: .count(B): counts the number of occurrences of a particular belief (pattern) in the agent's belief base, as the internal action .count.
    class  e
    Function: math.e: encapsulates java Math.E.
    class  floor
    Function: math.floor(N): encapsulates java Math.floor(N), returns the largest double value that is not greater than the argument and is equal to a mathematical integer.
    class  Length
    Function: .length(L): returns the size of either the list or string L.
    class  log
    Function: math.log(N): encapsulates java Math.log(N), returns the natural logarithm (base e) of N.
    class  Max
    Function: math.max(N1,N2): encapsulates java Math.max(N1,N2).
    class  mean
    Function: math.mean(L): returns the average mean of all values of L.
    class  median
    Function: math.median(L): returns the median of values in L.
    class  Min
    Function: math.min(N1,N2): encapsulates java Math.min(N1,N2).
    class  pi
    Function: math.pi: encapsulates java Math.PI.
    class  Random
    Function: math.random(N): encapsulates java Math.random; If N is not informed: returns a value greater than or equal to 0.0 and less than 1.0; If N is informed: returns a value greater than or equal to 0.0 and less than N.
    class  Round
    Function: math.round(N): encapsulates java Math.round(N); returns the closest integer to the argument.
    class  RuleToFunction
    Wraps a rule into a function.
    class  sin
    Function: math.sin(N): encapsulates java Math.sin(N), returns the trigonometric sine of an angle.
    class  Sqrt
    Function: math.sqrt(N): encapsulates java Math.sqrt(N); returns the correctly rounded positive square root of N.
    class  StdDev
    Function: math.std_dev(L): returns the standard deviation of all values of L.
    class  Sum
    Function: math.sum(L): sums all values of L.
    class  tan
    Function: math.tan(N): encapsulates java Math.tan(N), returns the trigonometric tangent of an angle.
    class  time
    Function: system.time: encapsulates java System.currentTimeMillis(), returns the current time in milliseconds.