|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SymbolicValue
Field Summary | |
---|---|
static int |
ADDS
|
static int |
LEAF
|
static int |
MULT
|
Method Summary | |
---|---|
void |
addParent(SymbolicValue parent)
Adds a parent to the nodes parent list. |
boolean |
contains(SymbolicValue v,
SymbolicValue parent)
Searches the tree for the SymbolicValue v. |
SymbolicValue |
getChild(int index)
Returns the child node specifed by this index. |
int |
getChildCount()
Returns the number of child nodes beneath this tree. |
double |
getNumericValue()
|
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. |
int |
getPrecedence()
Returns an order-of-operations indicator. |
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. |
Field Detail |
---|
static final int LEAF
static final int ADDS
static final int MULT
Method Detail |
---|
SymbolicValue scale(SymbolicValue v)
double getNumericValue() throws UnboundValueError
UnboundValueError
boolean isNormal()
int getPrecedence()
int getChildCount()
SymbolicValue getChild(int index)
index
- int getParentCount()
void addParent(SymbolicValue parent)
parent
- void removeParent(SymbolicValue parent)
SymbolicValue getParent(int index)
index
- boolean contains(SymbolicValue v, SymbolicValue parent)
v
- parent
- void subTreeChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |