linearalgebra.symbolic
Class LeafUnknown

java.lang.Object
  extended by linearalgebra.symbolic.AbstractUnknown
      extended by linearalgebra.symbolic.LeafUnknown
All Implemented Interfaces:
SymbolicValue
Direct Known Subclasses:
ConstantSymbol

public abstract class LeafUnknown
extends AbstractUnknown


Field Summary
 
Fields inherited from interface linearalgebra.symbolic.SymbolicValue
ADDS, LEAF, MULT
 
Constructor Summary
LeafUnknown()
           
 
Method Summary
 SymbolicValue getChild(int index)
          Returns the child node specifed by this index.
 int getChildCount()
          Returns the number of child nodes beneath this tree.
 int getPrecedence()
          Returns an order-of-operations indicator.
 
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
 
Methods inherited from interface linearalgebra.symbolic.SymbolicValue
getNumericValue
 

Constructor Detail

LeafUnknown

public LeafUnknown()
Method Detail

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.


getPrecedence

public final 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.