View Javadoc

1   /*
2   $Id: Variable.java 710 2005-03-21 16:34:22Z guest $
3   */
4   
5   
6   /*
7   Copyright (C) 2001-2002 Mainline Project (I3S - ESSI - CNRS -UNSA)
8   
9   This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13  
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  Lesser General Public License for more details.
18  
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  
23  For further information on the GNU Lesser General Public License,
24  see: http://www.gnu.org/copyleft/lesser.html
25  For further information on this library, contact: mainline@essi.fr
26  */
27  
28  
29  package fr.ove.openmath.jome.model;
30  
31  import fr.ove.openmath.jome.model.VariableOrNumber;
32  
33  /***
34  * Variable elements in the formula.
35  *
36  * @author © 2000 DIRAT Laurent
37  * @version 2.1 10/01/2000
38  */
39  public class Variable extends VariableOrNumber {
40      /***
41      * The default constructor.<BR>
42      * Constructs a variable with no name. A default constuctor is needed for dynamic instantiation.
43      * The name of hte variable must be set after instantiation
44      */
45      public Variable() {
46          this("");
47      }
48      
49      /***
50      * The constructor.<BR>
51      * Contstructs a variable with the specified name.
52      * @param varName the name of the variable.
53      */
54      public Variable(String varname) {
55          super("VARIABLE", varname, false, false);
56      }
57  }