jason.functions
Class log

Package class diagram package log
java.lang.Object
  extended by jason.asSemantics.DefaultArithFunction
      extended by jason.functions.log
All Implemented Interfaces:
ArithFunction, java.io.Serializable

public class log
extends DefaultArithFunction

Function: math.log(N): encapsulates java Math.log(N), returns the natural logarithm (base e) of N.

See Also:
Serialized Form

Constructor Summary
log()
           
 
Method Summary
 boolean checkArity(int a)
          returns true if a is a good number of arguments for the function
 double evaluate(TransitionSystem ts, Term[] args)
          evaluates/computes the function based on the args
 java.lang.String getName()
          returns the name of the function
 
Methods inherited from class jason.asSemantics.DefaultArithFunction
allowUngroundTerms, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

log

public log()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ArithFunction
returns the name of the function

Specified by:
getName in interface ArithFunction
Overrides:
getName in class DefaultArithFunction

evaluate

public double evaluate(TransitionSystem ts,
                       Term[] args)
                throws java.lang.Exception
Description copied from interface: ArithFunction
evaluates/computes the function based on the args

Specified by:
evaluate in interface ArithFunction
Overrides:
evaluate in class DefaultArithFunction
Throws:
java.lang.Exception

checkArity

public boolean checkArity(int a)
Description copied from interface: ArithFunction
returns true if a is a good number of arguments for the function

Specified by:
checkArity in interface ArithFunction
Overrides:
checkArity in class DefaultArithFunction