org.jscience.mathematics.analysis.expressions
Class NamedDataExpression

java.lang.Object
  extended by org.jscience.mathematics.analysis.expressions.DataExpression
      extended by org.jscience.mathematics.analysis.expressions.NamedDataExpression
All Implemented Interfaces:
java.io.Serializable, Expression, NumericalDifferentiable, JavaExpressible, Named, XMLExpressible
Direct Known Subclasses:
Parameter, Variable

public abstract class NamedDataExpression
extends DataExpression
implements NumericalDifferentiable, Named

Abstract class used as superclass for classes representing named data.

See Also:
Expression, DataExpression, Variable, Parameter, Serialized Form

Field Summary
protected  java.lang.String name
          The name the named DataExpression object should be characterized by.
 
Fields inherited from class org.jscience.mathematics.analysis.expressions.DataExpression
value
 
Constructor Summary
NamedDataExpression(java.lang.String name)
          Creates a NamedDataExpression with a given name.
NamedDataExpression(java.lang.String name, double value)
          Creates a NamedDataExpression with a given name and value.
 
Method Summary
 Expression diff(NamedDataExpression x)
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 double numDiff(int i)
          DOCUMENT ME!
 double numEval()
          DOCUMENT ME!
 void resetNumDiff(int i)
          DOCUMENT ME!
 void resetNumEval()
          DOCUMENT ME!
 void setIndex(int i)
          Set the index for this NamedDataExpression.
 void setName(java.lang.String name)
          Sets the name of the NamedDataExpression object.
 void setNumberOfIndependents(int n)
          DOCUMENT ME!
 void setValue(double x)
          The setValue method sets the value of the NamedDataExpression.
 java.lang.String toJava()
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.mathematics.analysis.expressions.DataExpression
contains, eval, factor, getElements, isDifferentiable, isExpandable, isolate, isolate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jscience.mathematics.analysis.expressions.Expression
optimize, replace, toTaylorMap, toXML
 

Field Detail

name

protected java.lang.String name
The name the named DataExpression object should be characterized by.

Constructor Detail

NamedDataExpression

public NamedDataExpression(java.lang.String name,
                           double value)
Creates a NamedDataExpression with a given name and value.

Parameters:
name - The name the NamedDataExpression object should be characterized by.
value - The value the NamedDataExpression object should have.

NamedDataExpression

public NamedDataExpression(java.lang.String name)
Creates a NamedDataExpression with a given name. The value is set to a default value of 0.

Parameters:
name - The name the NamedDataExpression object should be characterized by.
Method Detail

setValue

public void setValue(double x)
The setValue method sets the value of the NamedDataExpression.

Overrides:
setValue in class DataExpression
Parameters:
x - DOCUMENT ME!
See Also:
DataExpression.eval()

setName

public void setName(java.lang.String name)
Sets the name of the NamedDataExpression object.

Parameters:
name - The name the NamedDataExpression object should be characterized by.
Since:
1.0
See Also:
DataExpression.setValue(double)

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

diff

public Expression diff(NamedDataExpression x)
DOCUMENT ME!

Specified by:
diff in interface Expression
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

setIndex

public void setIndex(int i)
Set the index for this NamedDataExpression.

Specified by:
setIndex in interface NumericalDifferentiable
Parameters:
i - DOCUMENT ME!

numDiff

public double numDiff(int i)
DOCUMENT ME!

Specified by:
numDiff in interface NumericalDifferentiable
Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

numEval

public double numEval()
DOCUMENT ME!

Specified by:
numEval in interface NumericalDifferentiable
Returns:
DOCUMENT ME!

resetNumEval

public void resetNumEval()
DOCUMENT ME!

Specified by:
resetNumEval in interface NumericalDifferentiable

setNumberOfIndependents

public void setNumberOfIndependents(int n)
DOCUMENT ME!

Specified by:
setNumberOfIndependents in interface NumericalDifferentiable
Parameters:
n - DOCUMENT ME!

resetNumDiff

public void resetNumDiff(int i)
DOCUMENT ME!

Specified by:
resetNumDiff in interface NumericalDifferentiable
Parameters:
i - DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

toJava

public java.lang.String toJava()
DOCUMENT ME!

Specified by:
toJava in interface Expression
Specified by:
toJava in interface JavaExpressible
Returns:
DOCUMENT ME!