public class CrossingWays extends Test
| Modifier and Type | Class and Description |
|---|---|
static class |
CrossingWays.ExtendedSegment
A way segment with some additional information
|
| Modifier and Type | Field and Description |
|---|---|
private Map<Point2D,List<CrossingWays.ExtendedSegment>> |
cellSegments
All way segments, grouped by cells
|
protected static int |
CROSSING_WAYS |
private Set<WaySegment> |
errorSegments
The already detected errors
|
private Map<List<Way>,List<WaySegment>> |
seenWays
The already detected ways in error
|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload| Constructor and Description |
|---|
CrossingWays()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
endTest()
Notification of the end of the test.
|
List<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.
|
addGui, deletePrimitivesIfNeeded, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visitvisitprotected static final int CROSSING_WAYS
private Map<Point2D,List<CrossingWays.ExtendedSegment>> cellSegments
private Set<WaySegment> errorSegments
public CrossingWays()
public void startTest(ProgressMonitor monitor)
Testpublic void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest() to do this).
public List<List<CrossingWays.ExtendedSegment>> getSegments(Node n1, Node n2)
n1 - The first noden2 - The second node