KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lsmp > djep > xjep > XVariableFactory


1 /* @author rich
2  * Created on 28-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.xjep;
9 import org.nfunk.jep.*;
10
11 /**
12  * A VariableFactory which creates XVariables (which have equations).
13  *
14  * @author Rich Morris
15  * Created on 28-Feb-2004
16  */

17 public class XVariableFactory extends VariableFactory {
18
19     public Variable createVariable(String JavaDoc name, Object JavaDoc value) {
20         return new XVariable(name,value);
21     }
22
23     public Variable createVariable(String JavaDoc name) {
24         return new XVariable(name);
25     }
26 }
27
Popular Tags