|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlinearalgebra.symbolic.AbstractUnknown
public abstract class AbstractUnknown
Field Summary | |
---|---|
private boolean |
containsAnswerCache
|
private SymbolicValue |
containsNodeCache
|
private java.util.ArrayList<SymbolicValue> |
m_parents
|
Fields inherited from interface linearalgebra.symbolic.SymbolicValue |
---|
ADDS, LEAF, MULT |
Constructor Summary | |
---|---|
AbstractUnknown()
|
Method Summary | |
---|---|
void |
addParent(SymbolicValue parent)
Adds a parent to the nodes parent list. |
protected void |
appendParenthesisString(SymbolicValue v,
java.lang.StringBuffer str)
|
boolean |
contains(SymbolicValue v,
SymbolicValue parent)
Searches the tree for the SymbolicValue v. |
SymbolicValue |
getParent(int index)
Returns the parent specified by the index. |
int |
getParentCount()
Returns the number of nodes that have this subtree as a child. |
boolean |
isNormal()
Checks if each child in the tree should be operated on first according to the operator precedence. |
void |
removeParent(SymbolicValue parent)
|
SymbolicValue |
scale(SymbolicValue v)
|
void |
subTreeChanged()
Invalidates cached information about the tree. |
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 |
---|
getChild, getChildCount, getNumericValue, getPrecedence |
Field Detail |
---|
private java.util.ArrayList<SymbolicValue> m_parents
private SymbolicValue containsNodeCache
private boolean containsAnswerCache
Constructor Detail |
---|
public AbstractUnknown()
Method Detail |
---|
public final SymbolicValue scale(SymbolicValue v)
scale
in interface SymbolicValue
public boolean isNormal()
SymbolicValue
isNormal
in interface SymbolicValue
public final int getParentCount()
SymbolicValue
getParentCount
in interface SymbolicValue
public final void addParent(SymbolicValue parent)
SymbolicValue
addParent
in interface SymbolicValue
public final void removeParent(SymbolicValue parent)
removeParent
in interface SymbolicValue
public final SymbolicValue getParent(int index)
SymbolicValue
getParent
in interface SymbolicValue
public boolean contains(SymbolicValue v, SymbolicValue parent)
SymbolicValue
contains
in interface SymbolicValue
public void subTreeChanged()
SymbolicValue
subTreeChanged
in interface SymbolicValue
protected final void appendParenthesisString(SymbolicValue v, java.lang.StringBuffer str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |