org.planx.xmlstore.koala.io
Class RawNodeNavigator<R extends Locatable>
java.lang.Object
org.planx.xmlstore.koala.io.RawNodeNavigator<R>
- All Implemented Interfaces:
- org.planx.msd.graph.Navigator<RawNode>
public class RawNodeNavigator<R extends Locatable>
- extends Object
- implements org.planx.msd.graph.Navigator<RawNode>
Handles navigation of nodes.
- Author:
- Thomas Ambus
RawNodeNavigator
public RawNodeNavigator(NodeFileSystem<R> fs)
isOutside
public boolean isOutside(RawNode parent,
int childIndex)
- Calls
IOPolicy.isOutside(org.planx.io.Locator, int, org.planx.io.Locator).
- Specified by:
isOutside in interface org.planx.msd.graph.Navigator<RawNode>
chooseCanonical
public RawNode chooseCanonical(List<org.planx.msd.graph.Compactor.Edge> eqCls)
- Calls
IOPolicy.chooseCanonical(java.util.List.Edge>).
- Specified by:
chooseCanonical in interface org.planx.msd.graph.Navigator<RawNode>
getChild
public RawNode getChild(RawNode node,
int index)
- Specified by:
getChild in interface org.planx.msd.graph.Navigator<RawNode>
setChild
public void setChild(RawNode node,
int childIndex,
RawNode child)
- Specified by:
setChild in interface org.planx.msd.graph.Navigator<RawNode>
childCount
public int childCount(RawNode node)
- Specified by:
childCount in interface org.planx.msd.graph.Navigator<RawNode>
getVisitToken
public Object getVisitToken(RawNode node)
- Specified by:
getVisitToken in interface org.planx.msd.graph.Navigator<RawNode>
setVisitToken
public void setVisitToken(RawNode node,
Object token)
- Specified by:
setVisitToken in interface org.planx.msd.graph.Navigator<RawNode>
getHeight
public int getHeight(RawNode node)
- Specified by:
getHeight in interface org.planx.msd.graph.Navigator<RawNode>
setHeight
public void setHeight(RawNode node,
int height)
- Specified by:
setHeight in interface org.planx.msd.graph.Navigator<RawNode>
Copyright © 2004-2005 Plan-X. All Rights Reserved.