KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lsmp > djep > matrixJep > nodeTypes > ASTMVarNode


1 /* @author rich
2  * Created on 01-Feb-2004
3  *
4  * This code is covered by a Creative Commons
5  * Attribution, Non Commercial, Share Alike license
6  * <a HREF="http://creativecommons.org/licenses/by-nc-sa/1.0">License</a>
7  */

8 package org.lsmp.djep.matrixJep.nodeTypes;
9 import org.nfunk.jep.*;
10 import org.lsmp.djep.matrixJep.*;
11 import org.lsmp.djep.vectorJep.*;
12 import org.lsmp.djep.vectorJep.values.*;
13
14 /**
15  * @author Rich Morris
16  * Created on 01-Feb-2004
17  */

18 public class ASTMVarNode extends ASTVarNode implements MatrixNodeI
19 {
20     private MatrixVariableI mvar=null;
21
22     public ASTMVarNode(int i) {super(i);}
23     public Dimensions getDim() {return mvar.getDimensions();}
24     public void setVar(Variable var)
25     {
26         mvar = (MatrixVariableI) var;
27         super.setVar(var);
28     }
29     public MatrixValueI getMValue() {return mvar.getMValue();}
30 }
31
Popular Tags