org.geotools.graph.util
Class GraphFuser

java.lang.Object
  extended byorg.geotools.graph.util.GraphFuser
All Implemented Interfaces:
GraphWalker

public class GraphFuser
extends java.lang.Object
implements GraphWalker


Nested Class Summary
static interface GraphFuser.FeatureJoiner
           
 
Constructor Summary
GraphFuser(GraphBuilder builder, GraphFuser.FeatureJoiner joiner)
           
 
Method Summary
 void finish()
          Called when the graph traversal is completed.
 void fuse()
           
 void init(GraphComponent element)
          Inializes a graph component
 boolean isVisited(GraphComponent element)
          Determines if a graph component has been visited.
 int visit(GraphComponent element, GraphTraversal traversal)
          Visits a graph componenet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFuser

public GraphFuser(GraphBuilder builder,
                  GraphFuser.FeatureJoiner joiner)
Method Detail

fuse

public void fuse()

init

public void init(GraphComponent element)
Description copied from interface: GraphWalker
Inializes a graph component

Specified by:
init in interface GraphWalker

isVisited

public boolean isVisited(GraphComponent element)
Description copied from interface: GraphWalker
Determines if a graph component has been visited.

Specified by:
isVisited in interface GraphWalker

visit

public int visit(GraphComponent element,
                 GraphTraversal traversal)
Description copied from interface: GraphWalker
Visits a graph componenet.

Specified by:
visit in interface GraphWalker
Parameters:
element - The component to visit.
traversal - The traversal controlling the sequence of graph component visits.

finish

public void finish()
Description copied from interface: GraphWalker
Called when the graph traversal is completed.

Specified by:
finish in interface GraphWalker