|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jason.asSemantics.DefaultArithFunction jason.functions.Min
public class Min
Function: math.min(N1,N2)
: encapsulates java Math.min(N1,N2).
It also returns the min number of a list.
Examples:
math.min(1,3)
: returns 1.math.min([3,a,"s",5])
: returns 3.
Max
,
Serialized FormConstructor Summary | |
---|---|
Min()
|
Method Summary | |
---|---|
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 |
Methods inherited from class jason.asSemantics.DefaultArithFunction |
---|
allowUngroundTerms, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Min()
Method Detail |
---|
public java.lang.String getName()
ArithFunction
getName
in interface ArithFunction
getName
in class DefaultArithFunction
public double evaluate(TransitionSystem ts, Term[] args) throws java.lang.Exception
ArithFunction
evaluate
in interface ArithFunction
evaluate
in class DefaultArithFunction
java.lang.Exception
public boolean checkArity(int a)
ArithFunction
checkArity
in interface ArithFunction
checkArity
in class DefaultArithFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |