org.openstreetmap.josm.data.validation.tests
Class UnconnectedWays

java.lang.Object
  extended by org.openstreetmap.josm.data.osm.visitor.AbstractVisitor
      extended by org.openstreetmap.josm.data.validation.Test
          extended by org.openstreetmap.josm.data.validation.tests.UnconnectedWays
All Implemented Interfaces:
Visitor

public class UnconnectedWays
extends Test

Tests if there are segments that crosses in the same layer


Nested Class Summary
private  class UnconnectedWays.MyWaySegment
           
 
Field Summary
(package private)  DataSet ds
           
(package private)  java.awt.geom.Area ds_area
           
(package private)  QuadBuckets<Node> endnodes
           
(package private)  QuadBuckets<Node> endnodes_highway
           
(package private)  QuadBuckets<Node> middlenodes
           
(package private)  double mindist
           
(package private)  double minmiddledist
           
(package private)  QuadBuckets<Node> nodecache
           
(package private)  java.util.Set<Node> othernodes
           
protected static java.lang.String PREFIX
           
protected static int UNCONNECTED_WAYS
           
(package private)  java.util.Set<UnconnectedWays.MyWaySegment> ways
           
 
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload
 
Constructor Summary
UnconnectedWays()
          Constructor
 
Method Summary
private  void addNode(Node n, QuadBuckets<Node> s)
           
 void endTest()
          Notification of the end of the test.
(package private)  java.util.List<UnconnectedWays.MyWaySegment> getWaySegments(Way w)
           
 void startTest(ProgressMonitor monitor)
          Start the test using a given progress monitor
 void visit(Node n)
          Visiting call for points.
 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
 
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

UNCONNECTED_WAYS

protected static final int UNCONNECTED_WAYS
See Also:
Constant Field Values

PREFIX

protected static final java.lang.String PREFIX

ways

java.util.Set<UnconnectedWays.MyWaySegment> ways

endnodes

QuadBuckets<Node> endnodes

endnodes_highway

QuadBuckets<Node> endnodes_highway

middlenodes

QuadBuckets<Node> middlenodes

othernodes

java.util.Set<Node> othernodes

nodecache

QuadBuckets<Node> nodecache

ds_area

java.awt.geom.Area ds_area

ds

DataSet ds

mindist

double mindist

minmiddledist

double minmiddledist
Constructor Detail

UnconnectedWays

public UnconnectedWays()
Constructor

Method Detail

startTest

public void startTest(ProgressMonitor monitor)
Description copied from class: Test
Start the test using a given progress monitor

Overrides:
startTest in class Test
Parameters:
monitor - the progress monitor

endTest

public void endTest()
Description copied from class: Test
Notification of the end of the test. The tester may perform additional actions and destroy the used structures.

If you override this method, don't forget to cleanup Test.progressMonitor (most overrides call super.endTest() to do this).

Overrides:
endTest in class Test

getWaySegments

java.util.List<UnconnectedWays.MyWaySegment> getWaySegments(Way w)

visit

public void visit(Way w)
Description copied from interface: Visitor
Visiting call for lines.

Specified by:
visit in interface Visitor
Overrides:
visit in class Test
Parameters:
w - The way to inspect.

visit

public void visit(Node n)
Description copied from interface: Visitor
Visiting call for points.

Specified by:
visit in interface Visitor
Overrides:
visit in class Test
Parameters:
n - The node to inspect.

addNode

private void addNode(Node n,
                     QuadBuckets<Node> s)


JOSM