public class SimilarNamedWays extends Test
Test.TagTest| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.awt.geom.Point2D,java.util.List<Way>> |
cellWays
All ways, grouped by cells
|
private MultiMap<Way,Way> |
errorWays
The already detected errors
|
protected static int |
SIMILAR_NAMED |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload| Constructor and Description |
|---|
SimilarNamedWays()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
endTest()
Notification of the end of the test.
|
int |
getLevenshteinDistance(java.lang.String s,
java.lang.String t)
Compute Levenshtein distance
|
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, visitvisitprotected static final int SIMILAR_NAMED
private java.util.Map<java.awt.geom.Point2D,java.util.List<Way>> cellWays
public SimilarNamedWays()
public void startTest(ProgressMonitor monitor)
Testpublic void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest() to do this).
public int getLevenshteinDistance(java.lang.String s, java.lang.String t)
s - First wordt - Second word