![JAR search and dependency download from the Maven repository](/logo.png)
jason.functions.time 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 programming language to develop BDI/cognitive agents
The newest version!
package jason.functions;
import jason.asSemantics.DefaultArithFunction;
import jason.asSemantics.TransitionSystem;
import jason.asSyntax.Term;
/**
Function: system.time
: encapsulates java System.currentTimeMillis(),
returns the current time in milliseconds.
@see jason.stdlib.time internal action time
@author Jomi
*/
public class time extends DefaultArithFunction {
public String getName() {
return "system.time";
}
@Override
public double evaluate(TransitionSystem ts, Term[] args) throws Exception {
return System.currentTimeMillis();
}
@Override
public boolean checkArity(int a) {
return a == 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy