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

jason.functions.time Maven / Gradle / Ivy

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