linearalgebra.symbolic
Class UnaryOperator
java.lang.Object
linearalgebra.symbolic.AbstractUnknown
linearalgebra.symbolic.UnaryOperator
- All Implemented Interfaces:
- SymbolicValue
- Direct Known Subclasses:
- Inverse, Negative
public abstract class UnaryOperator
- extends AbstractUnknown
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_child
private SymbolicValue m_child
UnaryOperator
public UnaryOperator(SymbolicValue child)
setChild
protected final void setChild(SymbolicValue child)
getChild
public final SymbolicValue getChild(int index)
- Description copied from interface:
SymbolicValue
- Returns the child node specifed by this index.
Throws ArrayOutOfBoundsException if index is invalid.
getChildCount
public final int getChildCount()
- Description copied from interface:
SymbolicValue
- Returns the number of child nodes beneath this tree.
getNumericValue
public final double getNumericValue()
throws UnboundValueError
- Throws:
UnboundValueError
doOperation
protected abstract double doOperation(double child)