public class DuplicateNode extends Test
| Modifier and Type | Class and Description |
|---|---|
private static class |
DuplicateNode.NodeHash |
Test.TagTest| Modifier and Type | Field and Description |
|---|---|
protected static int |
DUPLICATE_NODE |
protected static int |
DUPLICATE_NODE_BOUNDARY |
protected static int |
DUPLICATE_NODE_BUILDING |
protected static int |
DUPLICATE_NODE_HIGHWAY |
protected static int |
DUPLICATE_NODE_LANDUSE |
protected static int |
DUPLICATE_NODE_MIXED |
protected static int |
DUPLICATE_NODE_NATURAL |
protected static int |
DUPLICATE_NODE_OTHER |
protected static int |
DUPLICATE_NODE_POWER |
protected static int |
DUPLICATE_NODE_RAILWAY |
protected static int |
DUPLICATE_NODE_WATERWAY |
private Storage<java.lang.Object> |
potentialDuplicates
The map of potential duplicates.
|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload| Constructor and Description |
|---|
DuplicateNode()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TestError> |
buildTestErrors(Test parentTest,
java.util.List<Node> nodes)
Returns the list of "duplicate nodes" errors for the given selection of node and parent test
|
void |
endTest()
Notification of the end of the test.
|
Command |
fixError(TestError testError)
Merge the nodes into one.
|
boolean |
isFixable(TestError testError)
Returns true if the given error can be fixed automatically
|
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Node n)
Visiting call for points.
|
addGui, deletePrimitivesIfNeeded, equals, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visitvisitprotected static final int DUPLICATE_NODE
protected static final int DUPLICATE_NODE_MIXED
protected static final int DUPLICATE_NODE_OTHER
protected static final int DUPLICATE_NODE_BUILDING
protected static final int DUPLICATE_NODE_BOUNDARY
protected static final int DUPLICATE_NODE_HIGHWAY
protected static final int DUPLICATE_NODE_LANDUSE
protected static final int DUPLICATE_NODE_NATURAL
protected static final int DUPLICATE_NODE_POWER
protected static final int DUPLICATE_NODE_RAILWAY
protected static final int DUPLICATE_NODE_WATERWAY
private Storage<java.lang.Object> potentialDuplicates
public DuplicateNode()
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 java.util.List<TestError> buildTestErrors(Test parentTest, java.util.List<Node> nodes)
parentTest - The parent test of returned errorsnodes - The nodes selction to look intopublic void visit(Node n)
Visitorpublic Command fixError(TestError testError)