|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.graph.GraphComponent org.geotools.graph.Node org.geotools.graph.PointNode org.geotools.graph.InOutNode
A Node which sperates adjacent edges into two categories. Those in which the node is the terminal node of the edge (in edges), and those in which the node is the source node of the edge (out edges).
Nested Class Summary |
Nested classes inherited from class org.geotools.feature.Feature |
org.geotools.feature.Feature.NULL |
Constructor Summary | |
InOutNode(org.geotools.feature.Feature feature,
EdgeList edgeList,
com.vividsolutions.jts.geom.Coordinate coord)
InOutNode constructor. |
Method Summary | |
java.util.Collection |
getAdjacentElements()
Returns the terminal nodes of all edges adjacent to the node. |
int |
getInDegree()
Returns the in degree of the node. |
Edge |
getInEdge(Node source)
Returns an edge in which the node is the terminal node, and the source node is specified. |
java.util.List |
getInEdges()
Returns a list of edges in which the node is the terminal node. |
java.util.List |
getInNodes()
Returns a list of nodes in which the node is the terminal node. |
int |
getOutDegree()
Returns the out degree of the node. |
Edge |
getOutEdge(Node terminal)
Returns an edge in which the node is the source node, and the terminal node is specified. |
java.util.List |
getOutEdges()
Returns a list of edges in which the node is the source node. |
java.util.List |
getOutNodes()
Returns a list of nodes in which the node is the source node of the edge shared between them. |
Methods inherited from class org.geotools.graph.PointNode |
asCoordinate, buildGeometry, x, y |
Methods inherited from class org.geotools.graph.Node |
addEdge, getDegree, getEdge, getEdgeList, getOtherEdges, removeEdge, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InOutNode(org.geotools.feature.Feature feature, EdgeList edgeList, com.vividsolutions.jts.geom.Coordinate coord)
super(feature,edgeList,coord);
feature
- FeatureedgeList
- InOutEdgeListcoord
- CoordinateMethod Detail |
public java.util.List getInNodes()
public java.util.List getInEdges()
public Edge getInEdge(Node source)
source
- The source node of the edge to be returned.
public java.util.List getOutNodes()
public java.util.List getOutEdges()
public Edge getOutEdge(Node terminal)
terminal
- The terminal node of the edge to be returned.
public int getInDegree()
public int getOutDegree()
public java.util.Collection getAdjacentElements()
getAdjacentElements
in class Node
GraphComponent.getAdjacentElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |