|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jason.asSemantics.DefaultArithFunction
public abstract class DefaultArithFunction
Useful default implementation of all methods of ArithFunction interface.
Constructor Summary | |
---|---|
DefaultArithFunction()
|
Method Summary | |
---|---|
boolean |
allowUngroundTerms()
returns true if the arguments of the function can be unground (as in .count) |
boolean |
checkArity(int a)
returns true if a is a good number of arguments for the function |
double |
evaluate(TransitionSystem ts,
Term[] args)
evaluates/computes the function based on the args |
java.lang.String |
getName()
returns the name of the function |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultArithFunction()
Method Detail |
---|
public java.lang.String getName()
ArithFunction
getName
in interface ArithFunction
public boolean checkArity(int a)
ArithFunction
checkArity
in interface ArithFunction
public double evaluate(TransitionSystem ts, Term[] args) throws java.lang.Exception
ArithFunction
evaluate
in interface ArithFunction
java.lang.Exception
public boolean allowUngroundTerms()
ArithFunction
allowUngroundTerms
in interface ArithFunction
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |