Package jason.asSemantics
Interface ArithFunction
- All Known Implementing Classes:
Abs,acos,asin,atan,Average,ceil,cos,Count,DefaultArithFunction,e,floor,Length,log,Max,mean,median,Min,pi,Random,Round,RuleToFunction,sin,Sqrt,StdDev,Sum,tan,time
public interface ArithFunction
Common interface for all arithmetic functions
-
Method Summary
Modifier and TypeMethodDescriptionbooleanreturns true if the arguments of the function can be unground (as in .count)booleancheckArity(int a) returns true if a is a good number of arguments for the functiondoubleevaluate(TransitionSystem ts, Term[] args) evaluates/computes the function based on the argsgetName()returns the name of the function
-
Method Details
-
getName
String getName()returns the name of the function -
evaluate
evaluates/computes the function based on the args- Throws:
Exception
-
checkArity
boolean checkArity(int a) returns true if a is a good number of arguments for the function -
allowUngroundTerms
boolean allowUngroundTerms()returns true if the arguments of the function can be unground (as in .count)
-