org.planx.xmlstore.koala.io
Class RawNodeNavigator<R extends Locatable>

java.lang.Object
  extended by 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

Constructor Summary
RawNodeNavigator(NodeFileSystem<R> fs)
           
 
Method Summary
 int childCount(RawNode node)
           
 RawNode chooseCanonical(List<org.planx.msd.graph.Compactor.Edge> eqCls)
          Calls IOPolicy.chooseCanonical(java.util.List.Edge>).
 RawNode getChild(RawNode node, int index)
           
 int getHeight(RawNode node)
           
 Object getVisitToken(RawNode node)
           
 boolean isOutside(RawNode parent, int childIndex)
          Calls IOPolicy.isOutside(org.planx.io.Locator, int, org.planx.io.Locator).
 void setChild(RawNode node, int childIndex, RawNode child)
           
 void setHeight(RawNode node, int height)
           
 void setVisitToken(RawNode node, Object token)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawNodeNavigator

public RawNodeNavigator(NodeFileSystem<R> fs)
Method Detail

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.