public class SnakeRoadNetworkWalk
extends java.lang.Object
SnakeRoadCheck| Modifier | Constructor and Description |
|---|---|
protected |
SnakeRoadNetworkWalk(org.openstreetmap.atlas.geography.atlas.items.Edge edge,
org.openstreetmap.atlas.utilities.scalars.Angle threshold) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDirectConnections(java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> edges) |
protected void |
checkIfEdgeHeadingDifferenceExceedsThreshold(org.openstreetmap.atlas.geography.atlas.items.Edge incoming,
org.openstreetmap.atlas.geography.atlas.items.Edge outgoing)
Checks if the difference in heading between the incoming and outgoing
Edges exceeds
the threshold |
protected void |
clearOneLayerRemovedConnections() |
protected void |
filterFalsePositives()
We filter false positives for two cases.
|
protected java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> |
getConnectedMasterEdgeOfTheSameWay(org.openstreetmap.atlas.geography.atlas.items.Edge edge)
Returns all connected master, non-visited
Edges that are a continuation of the same
OSM way |
protected java.util.Queue<org.openstreetmap.atlas.geography.atlas.items.Edge> |
getDirectConnections() |
protected long |
getGreatestEncounteredValence() |
protected java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> |
getOneLayerRemovedConnections() |
protected java.util.TreeSet<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> |
getVisitedEdges() |
protected boolean |
isSnakeRoad() |
protected void |
populateOneLayerRemovedConnections(java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> edges) |
protected void |
visitEdge(org.openstreetmap.atlas.geography.atlas.items.Edge comingFrom,
org.openstreetmap.atlas.geography.atlas.items.Edge comingTo)
Adds the given
Edge to the visited set and updates the greatest valence value |
protected SnakeRoadNetworkWalk(org.openstreetmap.atlas.geography.atlas.items.Edge edge,
org.openstreetmap.atlas.utilities.scalars.Angle threshold)
protected void addDirectConnections(java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> edges)
protected void checkIfEdgeHeadingDifferenceExceedsThreshold(org.openstreetmap.atlas.geography.atlas.items.Edge incoming,
org.openstreetmap.atlas.geography.atlas.items.Edge outgoing)
Edges exceeds
the thresholdincoming - The incoming Edgeoutgoing - The outgoing Edgeprotected void clearOneLayerRemovedConnections()
protected void filterFalsePositives()
protected java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> getConnectedMasterEdgeOfTheSameWay(org.openstreetmap.atlas.geography.atlas.items.Edge edge)
Edges that are a continuation of the same
OSM wayedge - the Edge from which we're seeking connectionsEdgesprotected java.util.Queue<org.openstreetmap.atlas.geography.atlas.items.Edge> getDirectConnections()
protected long getGreatestEncounteredValence()
protected java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> getOneLayerRemovedConnections()
protected java.util.TreeSet<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> getVisitedEdges()
protected boolean isSnakeRoad()
protected void populateOneLayerRemovedConnections(java.util.Set<org.openstreetmap.atlas.geography.atlas.items.Edge> edges)
protected void visitEdge(org.openstreetmap.atlas.geography.atlas.items.Edge comingFrom,
org.openstreetmap.atlas.geography.atlas.items.Edge comingTo)
Edge to the visited set and updates the greatest valence valuecomingFrom - the Edge we are coming fromcomingTo - the Edge we are coming to