|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.msd.graph.TemplateNode.TemplateNavigator
protected class TemplateNode.TemplateNavigator
| Constructor Summary | |
|---|---|
protected |
TemplateNode.TemplateNavigator()
|
| Method Summary | |
|---|---|
int |
childCount(TemplateNode<N,L> node)
Returns the number of children of the specified node. |
TemplateNode<N,L> |
chooseCanonical(List<Compactor.Edge> eqCls)
Choose the canonical node from among equivalent nodes. |
TemplateNode<N,L> |
getChild(TemplateNode<N,L> node,
int index)
Returns the child of the specified node with the specified child index. |
int |
getHeight(TemplateNode<N,L> node)
Returns the height of the specified node. |
Object |
getVisitToken(TemplateNode<N,L> node)
Returns the visit token of the specified node. |
boolean |
isOutside(TemplateNode<N,L> node)
Returns true if the specified node is outside the bounds
for the discrimination. |
void |
setChild(TemplateNode<N,L> node,
int index,
TemplateNode<N,L> child)
Replaces an existing reference to a child node. |
void |
setHeight(TemplateNode<N,L> node,
int height)
Sets the height of the specified node. |
void |
setVisitToken(TemplateNode<N,L> node,
Object token)
Sets the visit token of the specified node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TemplateNode.TemplateNavigator()
| Method Detail |
|---|
public TemplateNode<N,L> getChild(TemplateNode<N,L> node,
int index)
Navigator
getChild in interface Navigator<TemplateNode<N,L>>
public void setChild(TemplateNode<N,L> node,
int index,
TemplateNode<N,L> child)
Navigator
setChild in interface Navigator<TemplateNode<N,L>>public int childCount(TemplateNode<N,L> node)
Navigator
childCount in interface Navigator<TemplateNode<N,L>>public Object getVisitToken(TemplateNode<N,L> node)
Navigator
getVisitToken in interface Navigator<TemplateNode<N,L>>
public void setVisitToken(TemplateNode<N,L> node,
Object token)
Navigator
setVisitToken in interface Navigator<TemplateNode<N,L>>public int getHeight(TemplateNode<N,L> node)
Navigator
getHeight in interface Navigator<TemplateNode<N,L>>
public void setHeight(TemplateNode<N,L> node,
int height)
Navigator
setHeight in interface Navigator<TemplateNode<N,L>>public boolean isOutside(TemplateNode<N,L> node)
Navigatortrue if the specified node is outside the bounds
for the discrimination. The node will not be visited.
isOutside in interface Navigator<TemplateNode<N,L>>public TemplateNode<N,L> chooseCanonical(List<Compactor.Edge> eqCls)
Navigator
chooseCanonical in interface Navigator<TemplateNode<N,L>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||