linearalgebra.symbolic
Class Negative

java.lang.Object
  extended by linearalgebra.symbolic.AbstractUnknown
      extended by linearalgebra.symbolic.UnaryOperator
          extended by linearalgebra.symbolic.Negative
All Implemented Interfaces:
SymbolicValue

public class Negative
extends UnaryOperator


Field Summary
 
Fields inherited from interface linearalgebra.symbolic.SymbolicValue
ADDS, LEAF, MULT
 
Constructor Summary
Negative(SymbolicValue v)
           
 
Method Summary
protected  double doOperation(double child)
           
 int getPrecedence()
          Returns an order-of-operations indicator.
 java.lang.String getString()
           
 
Methods inherited from class linearalgebra.symbolic.UnaryOperator
getChild, getChildCount, getNumericValue, setChild
 
Methods inherited from class linearalgebra.symbolic.AbstractUnknown
addParent, appendParenthesisString, contains, getParent, getParentCount, isNormal, removeParent, scale, subTreeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Negative

public Negative(SymbolicValue v)
Method Detail

getPrecedence

public int getPrecedence()
Description copied from interface: SymbolicValue
Returns an order-of-operations indicator. Lower numbers mean lower precedence. This does not influence the execution order of the tree. It was originally intended to allow the tree to insert parenthesis when printing itself.


getString

public java.lang.String getString()

doOperation

protected double doOperation(double child)
Specified by:
doOperation in class UnaryOperator