01: /*************************************************************************
02: * *
03: * 1) This source code file, in unmodified form, and compiled classes *
04: * derived from it can be used and distributed without restriction, *
05: * including for commercial use. (Attribution is not required *
06: * but is appreciated.) *
07: * *
08: * 2) Modified versions of this file can be made and distributed *
09: * provided: the modified versions are put into a Java package *
10: * different from the original package, edu.hws; modified *
11: * versions are distributed under the same terms as the original; *
12: * and the modifications are documented in comments. (Modification *
13: * here does not include simply making subclasses that belong to *
14: * a package other than edu.hws, which can be done without any *
15: * restriction.) *
16: * *
17: * David J. Eck *
18: * Department of Mathematics and Computer Science *
19: * Hobart and William Smith Colleges *
20: * Geneva, New York 14456, USA *
21: * Email: eck@hws.edu WWW: http://math.hws.edu/eck/ *
22: * *
23: *************************************************************************/package edu.hws.jcm.data;
24:
25: /**
26: * A MathObject is just an object that has setName and getName methods.
27: * MathObjects can be registered with a Parser (meaning that they are
28: * stored in the SymbolTable associated with the Parser, and can
29: * be used in expressions parsed by the Parser).
30: */
31: public interface MathObject extends java.io.Serializable {
32: /**
33: * Get the name of this object.
34: */
35: public String getName();
36:
37: /**
38: * Set the name of this object. This should not be done if
39: * the MathObject is registered with a Parser.
40: */
41: public void setName(String name);
42:
43: }
|