| |
|
| java.lang.Object org.geotools.graph.build.line.OptLineGraphGenerator org.geotools.graph.build.line.OptDirectedLineGraphGenerator
OptDirectedLineGraphGenerator | public class OptDirectedLineGraphGenerator extends OptLineGraphGenerator (Code) | | An implementation of GraphGenerator used to generate an optimized graph
representing a 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 OptBasicEdge.
Nodes created by the generator are of type OptXYNode.
See Also: org.geotools.graph.structure.opt.OptEdge See Also: org.geotools.graph.structure.line.OptXYNode author: Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net |
m_in2count | HashMap m_in2count(Code) | | maps in coordinates to count / node *
|
m_out2count | HashMap m_out2count(Code) | | maps out coordinates to count / node *
|
OptDirectedLineGraphGenerator | public OptDirectedLineGraphGenerator()(Code) | | Constructs a new OptLineGraphGenerator.
|
add | public Graphable add(Object obj)(Code) | | Adds a line to the graph. Note that this method returns null since actual
building of the graph components is delayed until generate() is called.
Parameters: obj - A LineSegment object. null because the actual building of the graph components is delayeduntil generate() is called. |
generateEdge | protected Edge generateEdge(LineSegment line)(Code) | | |
generateNodes | protected void generateNodes()(Code) | | |
getEdge | public Edge getEdge(Coordinate c1, Coordinate c2)(Code) | | |
getInNodeMap | public Map getInNodeMap()(Code) | | Returns the coordinate to in node map. Note that before the call to
generate the map does not contain any nodes.
Coordinate to in node map. |
getOutNodeMap | public Map getOutNodeMap()(Code) | | Returns the coordinate to out node map. Note that before the call to
generate the map does not contain any nodes.
Coordinate to out node map. |
|
|
|