| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.graph.GraphComponent
org.geotools.graph.Edge
An Edge connects two nodes in the graph.
| Nested Class Summary | 
| Nested classes inherited from class org.geotools.feature.Feature | 
org.geotools.feature.Feature.NULL | 
| Constructor Summary | |
Edge(org.geotools.feature.Feature feature,
     Node nodeA,
     Node nodeB)
Creates an edge.  | 
|
| Method Summary | |
 com.vividsolutions.jts.geom.Geometry | 
buildGeometry()
Builds a Geometry object to represent the edge spatially.  | 
 boolean | 
endpointEquals(Edge other)
Compares the nodes of the edge with the nodes of another edge.  | 
 boolean | 
endpointEqualsReverse(Edge other)
Compares the nodes of the edge with the nodes of another edge in reverse order.  | 
 boolean | 
equals(Edge other)
Determines equality between two edges.  | 
 boolean | 
equals(java.lang.Object other)
Calls equals(Edge).  | 
 boolean | 
equalsReverse(Edge other)
Determines equality between two edges in reverse.  | 
 java.util.Collection | 
getAdjacentElements()
Returns the edges adjacent to this edge.  | 
 Node | 
getNodeA()
Returns the node at the source of the Edge.  | 
 Node | 
getNodeB()
Returns the node at the destination of the edge.  | 
 Node | 
getOtherNode(Node node)
Returns the node of the edge opposite of the specified node.  | 
 void | 
reverse(boolean deep)
Reverses the direction of the edge by swapping the two nodes.  | 
 java.lang.String | 
toString()
Returns the string representation of the edge.  | 
| 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 | 
public Edge(org.geotools.feature.Feature feature,
            Node nodeA,
            Node nodeB)
feature - Underlying Feature represented by the edge.nodeA - Node at the source of the edge.nodeB - Node at the destination of the edge.Node, 
Feature| Method Detail | 
public Node getNodeA()
public Node getNodeB()
public Node getOtherNode(Node node)
node - The node opposite of the desired node to be returned.
public java.util.Collection getAdjacentElements()
getAdjacentElements in class GraphComponentpublic void reverse(boolean deep)
deep - Indicates wether the geometry of the underlying feature
        represented by the edge should be reversed.public boolean endpointEquals(Edge other)
other - Edge to be compared.
public boolean endpointEqualsReverse(Edge other)
other - Edge to be compared to in reverse.
public boolean equals(java.lang.Object other)
Object.equals(Object)public boolean equals(Edge other)
other - Edge to be compared.
public boolean equalsReverse(Edge other)
other - Edge to be compared.
public com.vividsolutions.jts.geom.Geometry buildGeometry()
buildGeometry in class GraphComponentGeometrypublic java.lang.String toString()
Object.toString()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||