Class CrossingWays.Ways
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.CrossingWays
-
- org.openstreetmap.josm.data.validation.tests.CrossingWays.Ways
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
- Enclosing class:
- CrossingWays
public static class CrossingWays.Ways extends CrossingWays
General crossing ways test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.tests.CrossingWays
CrossingWays.Boundaries, CrossingWays.MessageHelper, CrossingWays.SelfCrossing, CrossingWays.Ways
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
Fields Modifier and Type Field Description protected static intCROSSING_WAYS-
Fields inherited from class org.openstreetmap.josm.data.validation.tests.CrossingWays
BARRIER, code, HIGHWAY, LANDUSE, RAILWAY, WATERWAY
-
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 Ways()Constructs a new crossingWaystest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) CrossingWays.MessageHelpercreateMessage(Way w1, Way w2)(package private) booleanignoreWaySegmentCombination(Way w1, Way w2)booleanisPrimitiveUsable(OsmPrimitive w)Determines if the primitive is usable for tests.-
Methods inherited from class org.openstreetmap.josm.data.validation.tests.CrossingWays
endTest, findIntersectingWay, getSegments, getSegments, isCoastline, isHighway, isProposedOrAbandoned, isRailway, isSelfCrossing, isSubwayOrTramOrRazed, isWaterArea, runTest, startTest, 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, visit
-
-
-
-
Field Detail
-
CROSSING_WAYS
protected static final int CROSSING_WAYS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Ways
public Ways()
Constructs a new crossingWaystest.
-
-
Method Detail
-
isPrimitiveUsable
public boolean isPrimitiveUsable(OsmPrimitive w)
Description copied from class:TestDetermines if the primitive is usable for tests.- Overrides:
isPrimitiveUsablein classTest- Parameters:
w- The primitive- Returns:
trueif the primitive can be tested,falseotherwise
-
ignoreWaySegmentCombination
boolean ignoreWaySegmentCombination(Way w1, Way w2)
- Specified by:
ignoreWaySegmentCombinationin classCrossingWays
-
createMessage
CrossingWays.MessageHelper createMessage(Way w1, Way w2)
- Overrides:
createMessagein classCrossingWays
-
-