public class Coastlines extends Test
Modifier and Type | Field and Description |
---|---|
private List<Way> |
coastlines |
private Area |
downloadedArea |
protected static int |
REVERSED_COASTLINE |
protected static int |
UNCONNECTED_COASTLINE |
protected static int |
UNORDERED_COASTLINE |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
Coastlines()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
endTest()
Notification of the end of the test.
|
Command |
fixError(TestError testError)
Fixes the error with the appropriate command
|
private static boolean |
isCoastline(OsmPrimitive osm) |
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(Way way)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, getErrors, getName, initialize, isBuilding, isCanceled, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visit
visit
protected static final int UNORDERED_COASTLINE
protected static final int REVERSED_COASTLINE
protected static final int UNCONNECTED_COASTLINE
private List<Way> coastlines
private Area downloadedArea
public Coastlines()
public void startTest(ProgressMonitor monitor)
Test
public void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest()
to do this).
public void visit(Way way)
Visitor
private static boolean isCoastline(OsmPrimitive osm)
public Command fixError(TestError testError)
Test