KickJava   Java API By Example, From Geeks To Geeks.

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


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.vectorJep.*;
11 import org.lsmp.djep.vectorJep.values.*;
12
13 /**
14  * @author Rich Morris
15  * Created on 01-Feb-2004
16  */

17 public class ASTMFunNode extends ASTFunNode implements MatrixNodeI
18 {
19     private MatrixValueI mvar=null;
20
21     public ASTMFunNode(int i) { super(i);}
22
23     public Dimensions getDim() {return mvar.getDim(); }
24
25     public void setDim(Dimensions dim) {
26         mvar = Tensor.getInstance(dim);
27     }
28
29     public MatrixValueI getMValue() {return mvar;}
30     
31 }
32
Popular Tags