org.jscience.mathematics.analysis.expressions
Class OperatorExpression

java.lang.Object
  extended by org.jscience.mathematics.analysis.expressions.OperatorExpression
All Implemented Interfaces:
java.io.Serializable, Expression, JavaExpressible, XMLExpressible
Direct Known Subclasses:
BinaryOperator, QuartaryOperator, TernaryOperator, UnaryOperator

public abstract class OperatorExpression
extends java.lang.Object
implements Expression

Abstract class used as super class for classes representing both unary and binary operators (and more).

See Also:
Expression, UnaryOperator, BinaryOperator, DataExpression, Serialized Form

Field Summary
protected  Expression firstOperand
          The first (and maybe only) Expression object an operator works on.
 
Constructor Summary
OperatorExpression(Expression e1)
          Creates a new OperatorExpression object, and assigns the operand to the given Expression.
 
Method Summary
 boolean contains(Expression e)
          DOCUMENT ME!
 Expression factor(Expression e)
          DOCUMENT ME!
 Expression getFirstOperand()
          Returns the first operand that the OperatorExpression object works on.
 Expression isolate(Expression e)
          DOCUMENT ME!
 Expression isolate(Expression f, Expression e)
          DOCUMENT ME!
 void setFirstOperand(Expression e1)
          Assigns the first (and maybe only) operand that the OperatorExpression object works on to a given Expression object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jscience.mathematics.analysis.expressions.Expression
diff, eval, getElements, isDifferentiable, isExpandable, optimize, replace, toJava, toTaylorMap, toXML
 

Field Detail

firstOperand

protected Expression firstOperand
The first (and maybe only) Expression object an operator works on.

Since:
1.0
Constructor Detail

OperatorExpression

public OperatorExpression(Expression e1)
Creates a new OperatorExpression object, and assigns the operand to the given Expression.

Parameters:
e1 - The Expression object that the operator should work on.
Method Detail

setFirstOperand

public void setFirstOperand(Expression e1)
Assigns the first (and maybe only) operand that the OperatorExpression object works on to a given Expression object.

Parameters:
e1 - An Expression object.
Since:
1.0
See Also:
getFirstOperand()

getFirstOperand

public Expression getFirstOperand()
Returns the first operand that the OperatorExpression object works on.

Returns:
An Expression object that represents the first operand that the OperatorExpression object works on.
Since:
1.0
See Also:
setFirstOperand(org.jscience.mathematics.analysis.expressions.Expression)

contains

public boolean contains(Expression e)
DOCUMENT ME!

Specified by:
contains in interface Expression
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!

isolate

public Expression isolate(Expression e)
DOCUMENT ME!

Specified by:
isolate in interface Expression
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!

isolate

public Expression isolate(Expression f,
                          Expression e)
DOCUMENT ME!

Specified by:
isolate in interface Expression
Parameters:
f - DOCUMENT ME!
e - DOCUMENT ME!
Returns:
DOCUMENT ME!

factor

public Expression factor(Expression e)
DOCUMENT ME!

Specified by:
factor in interface Expression
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!