Package com.singularsys.extensions.djep
Class DVariableFactory
java.lang.Object
com.singularsys.jep.VariableFactory
com.singularsys.extensions.xjep.XVariableFactory
com.singularsys.extensions.djep.DVariableFactory
- All Implemented Interfaces:
JepComponent,Serializable
A VariableFactory which can work with PartialDerivatives.
- Author:
- Rich Morris Created on 19-Dec-2003
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.VariableFactory
defaultValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVariable(String name) Create a variable with a name but not value CallsVariableFactory.createVariable(String, Object)so subclasses need not override this method.createVariable(String name, Object value) Create a variable with a name and value.Methods inherited from class com.singularsys.jep.VariableFactory
copyVariable, getDefaultValue, getLightWeightInstance, init, setDefaultValue
-
Constructor Details
-
DVariableFactory
public DVariableFactory()
-
-
Method Details
-
createVariable
Description copied from class:VariableFactoryCreate a variable with a name and value. Subclasses should overwrite this method to return variables of the correct type- Overrides:
createVariablein classXVariableFactory- Parameters:
name- name of variablevalue- initial value- Returns:
- reference to Variable object
-
createVariable
Description copied from class:VariableFactoryCreate a variable with a name but not value CallsVariableFactory.createVariable(String, Object)so subclasses need not override this method.- Overrides:
createVariablein classXVariableFactory- Parameters:
name- name of variable- Returns:
- reference to Variable object
-