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

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.OverlappingWays
All Implemented Interfaces:
Visitor

public class OverlappingWays
extends Test

Tests if there are overlapping ways


Field Summary
(package private)  MultiMap<Pair<Node,Node>,WaySegment> nodePairs
          Bag of all way segments
protected static int OVERLAPPING_AREA
           
protected static int OVERLAPPING_HIGHWAY
           
protected static int OVERLAPPING_HIGHWAY_AREA
           
protected static int OVERLAPPING_RAILWAY
           
protected static int OVERLAPPING_RAILWAY_AREA
           
protected static int OVERLAPPING_WAY
           
protected static int OVERLAPPING_WAY_AREA
           
 
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload
 
Constructor Summary
OverlappingWays()
          Constructor
 
Method Summary
 void endTest()
          Notification of the end of the test.
 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

nodePairs

MultiMap<Pair<Node,Node>,WaySegment> nodePairs
Bag of all way segments


OVERLAPPING_HIGHWAY

protected static final int OVERLAPPING_HIGHWAY
See Also:
Constant Field Values

OVERLAPPING_RAILWAY

protected static final int OVERLAPPING_RAILWAY
See Also:
Constant Field Values

OVERLAPPING_WAY

protected static final int OVERLAPPING_WAY
See Also:
Constant Field Values

OVERLAPPING_HIGHWAY_AREA

protected static final int OVERLAPPING_HIGHWAY_AREA
See Also:
Constant Field Values

OVERLAPPING_RAILWAY_AREA

protected static final int OVERLAPPING_RAILWAY_AREA
See Also:
Constant Field Values

OVERLAPPING_WAY_AREA

protected static final int OVERLAPPING_WAY_AREA
See Also:
Constant Field Values

OVERLAPPING_AREA

protected static final int OVERLAPPING_AREA
See Also:
Constant Field Values
Constructor Detail

OverlappingWays

public OverlappingWays()
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

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.


JOSM