|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lsmp.djep.matrixJep.MatrixEvaluator
public class MatrixEvaluator
This visitor evaluates a the tree representing the equation.
Constructor Summary | |
---|---|
MatrixEvaluator()
|
Method Summary | |
---|---|
java.lang.Object |
eval(Node node)
Evaluates a node and returns and object with the value of the node. |
MatrixValueI |
evaluate(MatrixNodeI node,
MatrixJep mj)
|
java.lang.Object |
visit(ASTConstant node,
java.lang.Object data)
constants |
java.lang.Object |
visit(ASTFunNode node,
java.lang.Object data)
other functions |
java.lang.Object |
visit(ASTStart node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
multi dimensional differentiable variables |
java.lang.Object |
visit(SimpleNode node,
java.lang.Object data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixEvaluator()
Method Detail |
---|
public MatrixValueI evaluate(MatrixNodeI node, MatrixJep mj) throws ParseException
ParseException
public java.lang.Object eval(Node node) throws ParseException
EvaluatorI
eval
in interface EvaluatorI
ParseException
- if errors occur during evaluation;public java.lang.Object visit(SimpleNode node, java.lang.Object data)
visit
in interface ParserVisitor
public java.lang.Object visit(ASTStart node, java.lang.Object data)
visit
in interface ParserVisitor
public java.lang.Object visit(ASTConstant node, java.lang.Object data)
visit
in interface ParserVisitor
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws ParseException
visit
in interface ParserVisitor
ParseException
public java.lang.Object visit(ASTFunNode node, java.lang.Object data) throws ParseException
visit
in interface ParserVisitor
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |