Package com.singularsys.extensions.xjep
Class XVariableTable
java.lang.Object
com.singularsys.jep.VariableTable
com.singularsys.extensions.xjep.XVariableTable
- All Implemented Interfaces:
JepComponent,Serializable
- Direct Known Subclasses:
DVariableTable
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:
-
Field Summary
Fields inherited from class com.singularsys.jep.VariableTable
table, vf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitialize the component.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
-
Constructor Details
-
XVariableTable
public XVariableTable()Create a new XSymbolTable with the given variable factory.
-
-
Method Details
-
init
Description copied from interface:JepComponentInitialize the component. This method 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
Creates a new SymbolTable with the same variable factory as this, and the same set of constants.- Throws:
JepException
-
print
Prints the contents of the symbol table displaying its equations and value.
-