Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jason.asSemantics;
Common interface for all arithmetic functions

public interface ArithFunction {

returns the name of the function
    public String getName();
evaluates/computes the function based on the args
    public double evaluate(TransitionSystem tsTerm[] argsthrows Exception ;
returns true if a is a good number of arguments for the function
    public boolean checkArity(int a);
returns true if the arguments of the function can be unground (as in .count)
    public boolean allowUngroundTerms();
New to GrepCode? Check out our FAQ X