public class TurnrestrictionTest extends Test
Test.TagTest
Modifier and Type | Field and Description |
---|---|
protected static int |
FROM_CLOSED_WAY |
protected static int |
FROM_EQUALS_TO |
protected static int |
FROM_VIA_NODE |
protected static int |
FROM_VIA_WAY |
protected static int |
MIX_VIA |
protected static int |
MORE_FROM |
protected static int |
MORE_TO |
protected static int |
MORE_VIA |
protected static int |
NO_FROM |
protected static int |
NO_TO |
protected static int |
NO_VIA |
protected static int |
SUPERFLUOUS |
private static java.util.List<java.lang.String> |
SUPPORTED_RESTRICTIONS |
protected static int |
TO_CLOSED_WAY |
protected static int |
TO_VIA_NODE |
protected static int |
TO_VIA_WAY |
protected static int |
UNCONNECTED_VIA |
protected static int |
UNEXPECTED_ROLE |
protected static int |
UNEXPECTED_TYPE |
protected static int |
UNKNOWN_RESTRICTION |
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, stopwatch, testBeforeUpload
Constructor and Description |
---|
TurnrestrictionTest()
Constructs a new
TurnrestrictionTest . |
Modifier and Type | Method and Description |
---|---|
private void |
checkIfConnected(Relation r,
Way previous,
Way current,
java.lang.String msg,
int code) |
private static boolean |
hasSupportedRestrictionTag(Relation r) |
private static boolean |
isFullOneway(Way w) |
void |
visit(Relation r)
Visiting call for relations.
|
addGui, clear, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit, visit, visit
protected static final int NO_VIA
protected static final int NO_FROM
protected static final int NO_TO
protected static final int MORE_VIA
protected static final int MORE_FROM
protected static final int MORE_TO
protected static final int UNEXPECTED_ROLE
protected static final int UNEXPECTED_TYPE
protected static final int FROM_VIA_NODE
protected static final int TO_VIA_NODE
protected static final int FROM_VIA_WAY
protected static final int TO_VIA_WAY
protected static final int MIX_VIA
protected static final int UNCONNECTED_VIA
protected static final int SUPERFLUOUS
protected static final int FROM_EQUALS_TO
protected static final int UNKNOWN_RESTRICTION
protected static final int TO_CLOSED_WAY
protected static final int FROM_CLOSED_WAY
private static final java.util.List<java.lang.String> SUPPORTED_RESTRICTIONS
public TurnrestrictionTest()
TurnrestrictionTest
.private static boolean hasSupportedRestrictionTag(Relation r)
public void visit(Relation r)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
visit
in class Test
r
- The relation to inspect.private static boolean isFullOneway(Way w)
private void checkIfConnected(Relation r, Way previous, Way current, java.lang.String msg, int code)