public abstract class CrossingWays extends Test
Modifier and Type | Class and Description |
---|---|
static class |
CrossingWays.Barrier
Crossing barriers ways test.
|
static class |
CrossingWays.Boundaries
Crossing boundaries ways test.
|
static class |
CrossingWays.Ways
General crossing ways test.
|
Test.TagTest
Modifier and Type | Field and Description |
---|---|
private Map<Point2D,List<WaySegment>> |
cellSegments
All way segments, grouped by cells
|
protected static int |
CROSSING_WAYS |
private Set<WaySegment> |
errorSegments
The already detected errors
|
private static String |
HIGHWAY |
private static String |
RAILWAY |
private Map<List<Way>,List<WaySegment>> |
seenWays
The already detected ways in error
|
private static String |
WATERWAY |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
CrossingWays(String title)
Constructs a new
CrossingWays test. |
Modifier and Type | Method and Description |
---|---|
(package private) abstract String |
createMessage(Way w1,
Way w2) |
void |
endTest()
Notification of the end of the test.
|
(package private) static String |
getLayer(OsmPrimitive w) |
List<List<WaySegment>> |
getSegments(EastNorth n1,
EastNorth n2)
Returns all the cells this segment crosses.
|
(package private) abstract boolean |
ignoreWaySegmentCombination(Way w1,
Way w2) |
(package private) static boolean |
isCoastline(OsmPrimitive w) |
(package private) static boolean |
isProposedOrAbandoned(OsmPrimitive w) |
(package private) static boolean |
isSubwayOrTram(OsmPrimitive w) |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, equals, fixError, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visit
visit
protected static final int CROSSING_WAYS
private static final String HIGHWAY
private static final String RAILWAY
private static final String WATERWAY
private Map<Point2D,List<WaySegment>> cellSegments
private Set<WaySegment> errorSegments
public CrossingWays(String title)
CrossingWays
test.title
- The test titlepublic void startTest(ProgressMonitor monitor)
Test
public void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest()
to do this).
static String getLayer(OsmPrimitive w)
static boolean isCoastline(OsmPrimitive w)
static boolean isSubwayOrTram(OsmPrimitive w)
static boolean isProposedOrAbandoned(OsmPrimitive w)
abstract boolean ignoreWaySegmentCombination(Way w1, Way w2)
abstract String createMessage(Way w1, Way w2)
public List<List<WaySegment>> getSegments(EastNorth n1, EastNorth n2)
n1
- The first EastNorthn2
- The second EastNorth