org.geotools.graph.build.line
Class BasicDirectedLineGraphGenerator

java.lang.Object
  extended byorg.geotools.graph.build.line.BasicLineGraphGenerator
      extended byorg.geotools.graph.build.line.BasicDirectedLineGraphGenerator
All Implemented Interfaces:
GraphGenerator, LineGraphGenerator

public class BasicDirectedLineGraphGenerator
extends BasicLineGraphGenerator

An implementation of GraphGenerator used to generate a graph representing a directed line network. Graphs are generated by supplying the generator with objects of type LineSegment via the add(Object) method.

For each line segment added, an edge in the graph is created. The builder records the end coordinates of each line added, and maintains a map of coordinates to nodes, creating nodes when neccessary.

Edges created by the generator are of type BasicDirectedEdge and contain an object of type LineSegment.
Nodes created by the generator are of type BasicDirectedXYNode and contain an object of type Coordinate.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
See Also:
org.geotools.graph.structure.basic.BasicDirectedXYNode, BasicDirectedEdge, LineSegment, Coordinate

Constructor Summary
BasicDirectedLineGraphGenerator()
          Constructs a new BasicDirectedLineGraphGenerator.
 
Methods inherited from class org.geotools.graph.build.line.BasicLineGraphGenerator
add, get, getEdge, getGraph, getGraphBuilder, getNode, getNodeMap, remove, setGraphBuilder, setObject, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDirectedLineGraphGenerator

public BasicDirectedLineGraphGenerator()
Constructs a new BasicDirectedLineGraphGenerator.



Copyright © GeoTools. All Rights Reserved.