org.lsmp.djep.djep
Class DVariableFactory

java.lang.Object
  extended by org.nfunk.jep.VariableFactory
      extended by org.lsmp.djep.xjep.XVariableFactory
          extended by org.lsmp.djep.djep.DVariableFactory
Direct Known Subclasses:
MatrixVariableFactory

public class DVariableFactory
extends XVariableFactory

A VariableFactory which can work with PartialDerivatives.

Author:
Rich Morris Created on 19-Dec-2003

Constructor Summary
DVariableFactory()
           
 
Method Summary
 PartialDerivative createDerivative(DVariable var, java.lang.String[] dnames, Node eqn)
          Creates a partial derivative of a given variable.
 Variable createVariable(java.lang.String name)
          Create a variable with a name but not value
 Variable createVariable(java.lang.String name, java.lang.Object value)
          Create a variable with a name and value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DVariableFactory

public DVariableFactory()
Method Detail

createDerivative

public PartialDerivative createDerivative(DVariable var,
                                          java.lang.String[] dnames,
                                          Node eqn)
Creates a partial derivative of a given variable.


createVariable

public Variable createVariable(java.lang.String name,
                               java.lang.Object value)
Description copied from class: VariableFactory
Create a variable with a name and value

Overrides:
createVariable in class XVariableFactory

createVariable

public Variable createVariable(java.lang.String name)
Description copied from class: VariableFactory
Create a variable with a name but not value

Overrides:
createVariable in class XVariableFactory


http://www.singularsys.com/jep Copyright © 2007 Singular Systems