Package jason.asSyntax
Interface NumberTerm
- All Superinterfaces:
java.lang.Cloneable
,java.lang.Comparable<Term>
,java.io.Serializable
,Term
,ToDOM
,ToJson
- All Known Implementing Classes:
ArithExpr
,ArithFunctionTerm
,NumberTermImpl
,UnnamedVar
,VarTerm
public interface NumberTerm extends Term
The interface for numeric terms of AgentSpeak language
-
Method Summary
Modifier and Type Method Description double
solve()
returns the numeric value of the termMethods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface jason.asSyntax.Term
capply, clone, cloneNS, countVars, equals, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumes
Methods inherited from interface jason.util.ToJson
getAsJson, getAsJsonStr
-
Method Details
-
solve
returns the numeric value of the term- Throws:
NoValueException
-