com.vividsolutions.jcs.conflate.roads
Class RoadNode

java.lang.Object
  extended bycom.vividsolutions.jcs.graph.Node
      extended bycom.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.


Field Summary
 
Fields inherited from class com.vividsolutions.jcs.graph.Node
deStar, pt
 
Constructor Summary
RoadNode(com.vividsolutions.jts.geom.Coordinate pt)
           
 
Method Summary
 void addMatch(RoadNode matchNode, double matchValue)
           
 void clearMatch()
           
 int compareTo(java.lang.Object o2)
           
 RoadEdge findClosestEdge(double angle, double[] resultAngleDiff)
           
 RoadNode getMatch()
           
 Matches getMatches()
           
 NodeMatching getMatching()
           
 double getMatchValue()
           
 double getMaxAdjacentNodeDistance()
           
 boolean hasMatch()
           
static boolean isNodeConsistent(RoadNode matchNode, RoadNode[] nodes)
           
static boolean isNodeSetConsistent(RoadNode[] nodes1, RoadNode[] nodes2)
           
 void setMatch(RoadNode matchNode)
           
 void setMatch(RoadNode matchNode, double matchValue)
           
 void setMatching(NodeMatching nodeMatching)
           
 void setMatchMaximum(RoadNode matchNode, double matchValue)
           
 
Methods inherited from class com.vividsolutions.jcs.graph.Node
addOutEdge, getCoordinate, getDegree, getEdgesBetween, getIndex, getOutEdges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoadNode

public RoadNode(com.vividsolutions.jts.geom.Coordinate pt)
Method Detail

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