Package com.singularsys.extensions.xjep
Class XVariableTable
- java.lang.Object
-
- java.util.Observable
-
- com.singularsys.jep.VariableTable
-
- com.singularsys.extensions.xjep.XVariableTable
-
- All Implemented Interfaces:
JepComponent,java.io.Serializable
- Direct Known Subclasses:
DVariableTable
public class XVariableTable extends VariableTable
An extension of the VariableTable with a few new features. A print methods which can print the equation of a variable.- Author:
- Rich Morris Created on 18-Mar-2004
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.VariableTable
table, vf
-
-
Constructor Summary
Constructors Constructor Description XVariableTable()Create a new XSymbolTable with the given variable factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(Jep j)Initialize the component.VariableTablenewInstance()Creates a new SymbolTable with the same variable factory as this, and the same set of constants.voidprint(PrintVisitor pv)Prints the contents of the symbol table displaying its equations and value.-
Methods inherited from class com.singularsys.jep.VariableTable
addConstant, addVariable, addVariable, clear, clearValues, containsKey, containsVariable, copyConstantsFrom, copyVariablesFrom, getLightWeightInstance, getVariable, getVariableFactory, getVariables, isEmpty, keySet, remove, remove, removeNonConstants, setVariableFactory, size, toString, values
-
-
-
-
Method Detail
-
init
public void init(Jep j)
Description copied from interface:JepComponentInitialize the component. This methods is called whenever a component is added to Jep. Hence it allows components to keep track of the other components they may rely on.- Specified by:
initin interfaceJepComponent- Overrides:
initin classVariableTable- Parameters:
j- the current Jep instance
-
newInstance
public VariableTable newInstance() throws JepException
Creates a new SymbolTable with the same variable factory as this, and the same set of constants.- Throws:
JepException
-
print
public void print(PrintVisitor pv)
Prints the contents of the symbol table displaying its equations and value.
-
-