com.vividsolutions.jcs.conflate.roads
Class RoadNode
java.lang.Object
com.vividsolutions.jcs.graph.Node
com.vividsolutions.jcs.conflate.roads.RoadNode
- All Implemented Interfaces:
- java.lang.Comparable
- public class RoadNode
- extends Node
- implements java.lang.Comparable
Models a node (intersection of two or more road edges) in a Road network.
Note that this includes intersections of degree two with both adjacent
edges being the same road.
| Fields inherited from class com.vividsolutions.jcs.graph.Node |
deStar, pt |
|
Constructor Summary |
RoadNode(com.vividsolutions.jts.geom.Coordinate pt)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoadNode
public RoadNode(com.vividsolutions.jts.geom.Coordinate pt)
isNodeSetConsistent
public static boolean isNodeSetConsistent(RoadNode[] nodes1,
RoadNode[] nodes2)
isNodeConsistent
public static boolean isNodeConsistent(RoadNode matchNode,
RoadNode[] nodes)
hasMatch
public boolean hasMatch()
getMatch
public RoadNode getMatch()
setMatch
public void setMatch(RoadNode matchNode)
setMatch
public void setMatch(RoadNode matchNode,
double matchValue)
addMatch
public void addMatch(RoadNode matchNode,
double matchValue)
getMatches
public Matches getMatches()
clearMatch
public void clearMatch()
setMatchMaximum
public void setMatchMaximum(RoadNode matchNode,
double matchValue)
getMatching
public NodeMatching getMatching()
setMatching
public void setMatching(NodeMatching nodeMatching)
getMatchValue
public double getMatchValue()
getMaxAdjacentNodeDistance
public double getMaxAdjacentNodeDistance()
findClosestEdge
public RoadEdge findClosestEdge(double angle,
double[] resultAngleDiff)
compareTo
public int compareTo(java.lang.Object o2)
- Specified by:
compareTo in interface java.lang.Comparable