|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--time_constraint.constr_eval.bintree
The bintree
class implements the tree that represents the
constraint. A constraint is written in the polish infix form. An example is:
(B,S,x,p) - and(Once([A;S;y;0],before([A;T;x;0])))
The related tree is:
Field Summary | |
bintree |
left
Represents the left tree of the binary tree. |
binnode |
n
Represents a node of the binary tree. |
bintree |
parent
Represents the binary tree whose son is n . |
bintree |
right
Represents the right tree of the binary tree. |
Constructor Summary | |
bintree()
Initializes the binary tree. |
Method Summary | |
void |
add(binnode n1)
Adds the node n1 to the binary tree. |
void |
buildtree(java.util.StringTokenizer st,
java.util.Vector table)
Constructs the binary tree from the string st . |
boolean |
emptyTree()
Checks if the binary tree is empty. |
void |
writetree()
Writes the tree to standard output. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public binnode n
public bintree left
public bintree right
public bintree parent
n
.Constructor Detail |
public bintree()
Method Detail |
public void add(binnode n1)
n1
to the binary tree.public void buildtree(java.util.StringTokenizer st, java.util.Vector table)
st
.st
- is the string containing the constraint.table
- represents the evaluation environment (a vector of vardom
) of the
existential and universal quantifier.public void writetree()
public boolean emptyTree()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |