All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jason.functions.pi Maven / Gradle / Ivy

Go to download

Jason is a fully-fledged interpreter for an extended version of AgentSpeak, a BDI agent-oriented logic programming language.

There is a newer version: 2.3
Show newest version
package jason.functions;

import jason.asSemantics.DefaultArithFunction;
import jason.asSemantics.TransitionSystem;
import jason.asSyntax.Term;

/** 
  

Function: math.pi: encapsulates java Math.PI.

Example:

  • math.pi: returns 3.14.
@author Jomi */ public class pi extends DefaultArithFunction { public String getName() { return "math.pi"; } @Override public double evaluate(TransitionSystem ts, Term[] args) throws Exception { return Math.PI; } @Override public boolean checkArity(int a) { return a == 0; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy