Class UnconnectedWays.UnconnectedRailways
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.UnconnectedWays
-
- org.openstreetmap.josm.data.validation.tests.UnconnectedWays.UnconnectedRailways
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
- Enclosing class:
- UnconnectedWays
public static class UnconnectedWays.UnconnectedRailways extends UnconnectedWays
Unconnected railways test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.tests.UnconnectedWays
UnconnectedWays.UnconnectedHighways, UnconnectedWays.UnconnectedNaturalOrLanduse, UnconnectedWays.UnconnectedPower, UnconnectedWays.UnconnectedRailways, UnconnectedWays.UnconnectedWaterways
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
UNCONNECTED_RAILWAYS
-
Fields inherited from class org.openstreetmap.josm.data.validation.tests.UnconnectedWays
DETOUR_FACTOR, PREFIX, UNCONNECTED_WAYS
-
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, stopwatch, testBeforeUpload
-
-
Constructor Summary
Constructors Constructor Description UnconnectedRailways()
Constructs a newUnconnectedRailways
test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
ignoreUnconnectedEndNode(Node n)
Check if unconnected end node should be ignored.protected boolean
isCandidate(OsmPrimitive p)
-
Methods inherited from class org.openstreetmap.josm.data.validation.tests.UnconnectedWays
addErrors, endTest, getHighwayEndNodesNearOtherHighway, getWantedParentWay, getWayEndNodesNearOtherWay, getWayNodesNearOtherWay, getWaySegments, isPrimitiveUsable, isWantedWay, startTest, visit, visit
-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit
-
-
-
-
Field Detail
-
UNCONNECTED_RAILWAYS
static final int UNCONNECTED_RAILWAYS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnconnectedRailways
public UnconnectedRailways()
Constructs a newUnconnectedRailways
test.
-
-
Method Detail
-
isCandidate
protected boolean isCandidate(OsmPrimitive p)
- Specified by:
isCandidate
in classUnconnectedWays
-
ignoreUnconnectedEndNode
protected boolean ignoreUnconnectedEndNode(Node n)
Description copied from class:UnconnectedWays
Check if unconnected end node should be ignored.- Overrides:
ignoreUnconnectedEndNode
in classUnconnectedWays
- Parameters:
n
- the node- Returns:
- true if node should be ignored
-
-