Package | Description |
---|---|
jason.asSyntax |
Modifier and Type | Class and Description |
---|---|
class |
ArithExpr
Represents and solve arithmetic expressions like "10 + 30".
|
class |
ArithFunctionTerm
Represents an arithmetic function, like math.max(arg1,arg2) -- a functor (math.max) and two arguments.
|
class |
NumberTermImpl
Immutable class that implements a term that represents a number
|
class |
UnnamedVar
Represents an unnamed variable '_'.
|
class |
VarTerm
Represents a variable Term: like X (starts with upper case).
|
Modifier and Type | Field and Description |
---|---|
protected NumberTerm |
ArithFunctionTerm.value |
Modifier and Type | Method and Description |
---|---|
NumberTerm |
NumberTermImpl.clone() |
NumberTerm |
ArithFunctionTerm.clone() |
NumberTerm |
ArithExpr.clone()
make a hard copy of the terms
|
static NumberTerm |
ASSyntax.createNumber(double vl)
creates a new number term
|
NumberTerm |
ArithExpr.getLHS()
gets the LHS of this Expression
|
NumberTerm |
ArithExpr.getRHS()
gets the RHS of this Expression
|
static NumberTerm |
ArithExpr.parseExpr(Agent ag,
java.lang.String sExpr)
returns some Term that can be evaluated as Number
|
static NumberTerm |
ArithExpr.parseExpr(java.lang.String sExpr)
returns some Term that can be evaluated as Number
|
static NumberTerm |
ASSyntax.parseNumber(java.lang.String sNumber)
creates a new number term by parsing a string
|
Constructor and Description |
---|
ArithExpr(ArithExpr.ArithmeticOp oper,
NumberTerm t1) |
ArithExpr(NumberTerm t1,
ArithExpr.ArithmeticOp oper,
NumberTerm t2) |