Package org.meteoinfo.jts.geomgraph
Class NodeMap
- java.lang.Object
-
- org.meteoinfo.jts.geomgraph.NodeMap
-
public class NodeMap extends java.lang.ObjectA map of nodes, indexed by the coordinate of the node
-
-
Constructor Summary
Constructors Constructor Description NodeMap(NodeFactory nodeFact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(EdgeEnd e)Adds a node for the start point of this EdgeEnd (if one does not already exist in this map).NodeaddNode(Coordinate coord)This method expects that a node has a coordinate value.NodeaddNode(Node n)Nodefind(Coordinate coord)java.util.CollectiongetBoundaryNodes(int geomIndex)java.util.Iteratoriterator()voidprint(java.io.PrintStream out)java.util.Collectionvalues()
-
-
-
Constructor Detail
-
NodeMap
public NodeMap(NodeFactory nodeFact)
-
-
Method Detail
-
addNode
public Node addNode(Coordinate coord)
This method expects that a node has a coordinate value.
-
add
public void add(EdgeEnd e)
Adds a node for the start point of this EdgeEnd (if one does not already exist in this map). Adds the EdgeEnd to the (possibly new) node.
-
find
public Node find(Coordinate coord)
- Returns:
- the node if found; null otherwise
-
iterator
public java.util.Iterator iterator()
-
values
public java.util.Collection values()
-
getBoundaryNodes
public java.util.Collection getBoundaryNodes(int geomIndex)
-
print
public void print(java.io.PrintStream out)
-
-