Package com.singularsys.extensions.xjep
Class XVariableFactory
java.lang.Object
com.singularsys.jep.VariableFactory
com.singularsys.extensions.xjep.XVariableFactory
- All Implemented Interfaces:
JepComponent,Serializable
- Direct Known Subclasses:
DVariableFactory
A VariableFactory which creates XVariables (which have equations).
- Author:
- Rich Morris Created on 28-Feb-2004
- 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
-
XVariableFactory
public XVariableFactory()
-
-
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 classVariableFactory- 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 classVariableFactory- Parameters:
name- name of variable- Returns:
- reference to Variable object
-