|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.osm.visitor.AbstractVisitor
org.openstreetmap.josm.data.validation.Test
org.openstreetmap.josm.data.validation.tests.CrossingWays
public class CrossingWays
Tests if there are segments that crosses in the same layer
Nested Class Summary | |
---|---|
static class |
CrossingWays.ExtendedSegment
A way segment with some additional information |
Field Summary | |
---|---|
(package private) java.util.Map<java.awt.geom.Point2D,java.util.List<CrossingWays.ExtendedSegment>> |
cellSegments
All way segments, grouped by cells |
protected static int |
CROSSING_WAYS
|
(package private) java.util.HashSet<WaySegment> |
errorSegments
The already detected errors |
(package private) java.util.Map<java.util.List<Way>,java.util.List<WaySegment>> |
ways_seen
The already detected ways in error |
Fields inherited from class org.openstreetmap.josm.data.validation.Test |
---|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload |
Constructor Summary | |
---|---|
CrossingWays()
Constructor |
Method Summary | |
---|---|
void |
endTest()
Notification of the end of the test. |
java.util.List<java.util.List<CrossingWays.ExtendedSegment>> |
getSegments(Node n1,
Node n2)
Returns all the cells this segment crosses. |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor |
void |
visit(Way w)
Visiting call for lines. |
Methods inherited from class org.openstreetmap.josm.data.validation.Test |
---|
addGui, deletePrimitivesIfNeeded, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visit |
Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor |
---|
visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int CROSSING_WAYS
java.util.Map<java.awt.geom.Point2D,java.util.List<CrossingWays.ExtendedSegment>> cellSegments
java.util.HashSet<WaySegment> errorSegments
java.util.Map<java.util.List<Way>,java.util.List<WaySegment>> ways_seen
Constructor Detail |
---|
public CrossingWays()
Method Detail |
---|
public void startTest(ProgressMonitor monitor)
Test
startTest
in class Test
monitor
- the progress monitorpublic void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest()
to do this).
endTest
in class Test
public void visit(Way w)
Visitor
visit
in interface Visitor
visit
in class Test
w
- The way to inspect.public java.util.List<java.util.List<CrossingWays.ExtendedSegment>> getSegments(Node n1, Node n2)
n1
- The first noden2
- The second node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |