org.geotools.graph.network
Class NetworkEdge

java.lang.Object
  extended byorg.geotools.graph.GraphComponent
      extended byorg.geotools.graph.Edge
          extended byorg.geotools.graph.network.NetworkEdge
All Implemented Interfaces:
org.geotools.feature.Feature

public class NetworkEdge
extends Edge

An Edge connects two nodes in the network.


Nested Class Summary
 
Nested classes inherited from class org.geotools.feature.Feature
org.geotools.feature.Feature.NULL
 
Constructor Summary
NetworkEdge(org.geotools.feature.Feature feature, Node nodeA, Node nodeB)
          Creates a NetworkEdge instance.
 
Method Summary
 com.vividsolutions.jts.geom.Geometry buildGeometry()
          Builds a Geometry object to represent the network edge spatially.
 
Methods inherited from class org.geotools.graph.Edge
endpointEquals, endpointEqualsReverse, equals, equals, equalsReverse, getAdjacentElements, getNodeA, getNodeB, getOtherNode, reverse, toString
 
Methods inherited from class org.geotools.graph.GraphComponent
compareTo, getAttribute, getAttribute, getAttributes, getBounds, getCount, getDefaultGeometry, getFeature, getFeatureType, getID, getNumberOfAttributes, getParent, getSchema, isVisited, schema, setAttribute, setAttribute, setAttributes, setCount, setDefaultGeometry, setParent, setVisited
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkEdge

public NetworkEdge(org.geotools.feature.Feature feature,
                   Node nodeA,
                   Node nodeB)
Creates a NetworkEdge instance.

Parameters:
feature - Underlying Feature represented by the edge.
nodeA - Node at the source of the edge.
nodeB - Node at the destination of the edge.
Method Detail

buildGeometry

public com.vividsolutions.jts.geom.Geometry buildGeometry()
Builds a Geometry object to represent the network edge spatially.

Overrides:
buildGeometry in class Edge
See Also:
Geometry