
jason.functions.e Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jason Show documentation
Show all versions of jason Show documentation
Jason is a fully-fledged interpreter for an extended version of AgentSpeak, a BDI agent-oriented logic programming language.
package jason.functions;
import jason.asSemantics.DefaultArithFunction;
import jason.asSemantics.TransitionSystem;
import jason.asSyntax.Term;
/**
Function: math.e
: encapsulates java Math.E.
Example:
-
math.e
: returns 2.718.
@author Jomi
*/
public class e extends DefaultArithFunction {
public String getName() {
return "math.e";
}
@Override
public double evaluate(TransitionSystem ts, Term[] args) throws Exception {
return Math.E;
}
@Override
public boolean checkArity(int a) {
return a == 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy