public class SimilarNamedWays extends Test
| Modifier and Type | Field and Description |
|---|---|
private Map<Point2D,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(String s,
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, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visitvisitprotected static final int SIMILAR_NAMED
public SimilarNamedWays()
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 int getLevenshteinDistance(String s, String t)
s - First wordt - Second word