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,java.io.Serializable
public class DVariableFactory extends XVariableFactory
A VariableFactory which can work with PartialDerivatives.- Author:
- Rich Morris Created on 19-Dec-2003
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.VariableFactory
defaultValue
-
-
Constructor Summary
Constructors Constructor Description DVariableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariablecreateVariable(java.lang.String name)Create a variable with a name but not value CallsVariableFactory.createVariable(String, Object)so subclasses need not override this method.VariablecreateVariable(java.lang.String name, java.lang.Object value)Create a variable with a name and value.-
Methods inherited from class com.singularsys.jep.VariableFactory
copyVariable, getDefaultValue, getLightWeightInstance, init, setDefaultValue
-
-
-
-
Method Detail
-
createVariable
public Variable createVariable(java.lang.String name, java.lang.Object value)
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:
- referece to Variable object
-
createVariable
public Variable createVariable(java.lang.String name)
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:
- referece to Variable object
-
-