public abstract class UnconnectedWays extends Test
Test.isPrimitiveUsable(OsmPrimitive)
to denote which kind of primitives can be handled.Modifier and Type | Class and Description |
---|---|
private class |
UnconnectedWays.MyWaySegment |
static class |
UnconnectedWays.UnconnectedHighways
Unconnected highways test.
|
static class |
UnconnectedWays.UnconnectedNaturalOrLanduse
Unconnected natural/landuse test.
|
static class |
UnconnectedWays.UnconnectedPower
Unconnected power ways test.
|
static class |
UnconnectedWays.UnconnectedRailways
Unconnected railways test.
|
static class |
UnconnectedWays.UnconnectedWaterways
Unconnected waterways test.
|
Test.TagTest
Modifier and Type | Field and Description |
---|---|
private int |
code |
private java.awt.geom.Area |
dsArea |
private QuadBuckets<Node> |
endnodes |
private QuadBuckets<Node> |
endnodesHighway |
private QuadBuckets<Node> |
middlenodes |
private double |
mindist |
private double |
minmiddledist |
private java.util.Set<Node> |
othernodes |
protected static java.lang.String |
PREFIX |
protected static int |
UNCONNECTED_WAYS |
private java.util.Set<UnconnectedWays.MyWaySegment> |
ways |
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
UnconnectedWays(java.lang.String title)
Constructs a new
UnconnectedWays test. |
UnconnectedWays(java.lang.String title,
int code)
Constructs a new
UnconnectedWays test with the given code. |
Modifier and Type | Method and Description |
---|---|
protected void |
addErrors(Severity severity,
java.util.Map<Node,Way> errorMap,
java.lang.String message) |
private void |
addNode(Node n,
QuadBuckets<Node> s) |
void |
endTest()
Notification of the end of the test.
|
protected java.util.Map<Node,Way> |
getConnectedWayEndNodesNearOtherWay() |
protected java.util.Map<Node,Way> |
getWayEndNodesNearOtherHighway() |
protected java.util.Map<Node,Way> |
getWayEndNodesNearOtherWay() |
protected java.util.Map<Node,Way> |
getWayNodesNearOtherWay() |
(package private) java.util.List<UnconnectedWays.MyWaySegment> |
getWaySegments(Way w) |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, clear, compareTo, deletePrimitivesIfNeeded, equals, fixError, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit, visit
private final int code
protected static final int UNCONNECTED_WAYS
protected static final java.lang.String PREFIX
private java.util.Set<UnconnectedWays.MyWaySegment> ways
private QuadBuckets<Node> endnodes
private QuadBuckets<Node> endnodesHighway
private QuadBuckets<Node> middlenodes
private java.util.Set<Node> othernodes
private java.awt.geom.Area dsArea
private double mindist
private double minmiddledist
public UnconnectedWays(java.lang.String title)
UnconnectedWays
test.title
- The test titlepublic UnconnectedWays(java.lang.String title, int code)
UnconnectedWays
test with the given code.title
- The test titlecode
- The test codepublic void startTest(ProgressMonitor monitor)
Test
protected java.util.Map<Node,Way> getWayEndNodesNearOtherHighway()
protected java.util.Map<Node,Way> getWayEndNodesNearOtherWay()
protected java.util.Map<Node,Way> getWayNodesNearOtherWay()
protected java.util.Map<Node,Way> getConnectedWayEndNodesNearOtherWay()
protected final void addErrors(Severity severity, java.util.Map<Node,Way> errorMap, java.lang.String message)
public void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest()
to do this).
java.util.List<UnconnectedWays.MyWaySegment> getWaySegments(Way w)
public void visit(Way w)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
visit
in class Test
w
- The way to inspect.private void addNode(Node n, QuadBuckets<Node> s)