Package com.singularsys.jep.reals
Class RealVariableTable
- java.lang.Object
-
- java.util.Observable
-
- com.singularsys.jep.VariableTable
-
- com.singularsys.jep.reals.RealVariableTable
-
- All Implemented Interfaces:
JepComponent
,java.io.Serializable
public class RealVariableTable extends VariableTable
A VariableTable which definespi, e, true, false
but not the complex numberi
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.VariableTable
table, vf
-
-
Constructor Summary
Constructors Constructor Description RealVariableTable(boolean hasBoolean)
Constructor with delayed initialisation of constants.RealVariableTable(VariableFactory varFac)
Constructor when the VariableFactory is known beforehand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Jep j)
Will add constants if we now have a variable factory.-
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 Detail
-
RealVariableTable
public RealVariableTable(boolean hasBoolean)
Constructor with delayed initialisation of constants. The constants will be added once the init method is called- Parameters:
hasBoolean
- whether boolean variable true/false are added- Since:
- Jep 3.5
-
RealVariableTable
public RealVariableTable(VariableFactory varFac)
Constructor when the VariableFactory is known beforehand. Initialises the constants.- Parameters:
varFac
-
-
-
Method Detail
-
init
public void init(Jep j)
Will add constants if we now have a variable factory.- Specified by:
init
in interfaceJepComponent
- Overrides:
init
in classVariableTable
- Parameters:
j
- the current Jep instance
-
-