Modifier and Type | Class and Description |
---|---|
protected class |
Highways.WrongRoundaboutHighway |
Modifier and Type | Field and Description |
---|---|
(package private) int |
carsWays |
protected static List<String> |
CLASSIFIED_HIGHWAYS
Classified highways in order of importance
|
(package private) int |
cyclistWays |
protected static List<String> |
ISO_COUNTRIES |
protected static List<String> |
KNOWN_SOURCE_MAXSPEED_CONTEXTS |
(package private) boolean |
leftByCars |
(package private) boolean |
leftByCyclists |
(package private) boolean |
leftByPedestrians |
protected static int |
MISSING_PEDESTRIAN_CROSSING |
(package private) int |
pedestrianWays |
protected static int |
SOURCE_MAXSPEED_CONTEXT_MISMATCH_VS_HIGHWAY |
protected static int |
SOURCE_MAXSPEED_CONTEXT_MISMATCH_VS_MAXSPEED |
protected static int |
SOURCE_MAXSPEED_UNKNOWN_CONTEXT |
protected static int |
SOURCE_MAXSPEED_UNKNOWN_COUNTRY_CODE |
protected static int |
WRONG_ROUNDABOUT_HIGHWAY |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
Highways()
Constructs a new
Highways test. |
Modifier and Type | Method and Description |
---|---|
Command |
fixError(TestError testError)
Fixes the error with the appropriate command
|
private void |
handleCarWay(Node n,
Way w) |
private void |
handleCyclistWay(Node n,
Way w) |
private void |
handlePedestrianWay(Node n,
Way w) |
boolean |
isFixable(TestError testError)
Returns true if the given error can be fixed automatically
|
private void |
testMissingPedestrianCrossing(Node n) |
private void |
testSourceMaxspeed(OsmPrimitive p,
boolean testContextHighway) |
private void |
testWrongRoundabout(Way w) |
void |
visit(Node n)
Visiting call for points.
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, endTest, getErrors, getName, initialize, isBuilding, isCanceled, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, startTest, testBeforeUpload, visit, visit
visit
protected static final int WRONG_ROUNDABOUT_HIGHWAY
protected static final int MISSING_PEDESTRIAN_CROSSING
protected static final int SOURCE_MAXSPEED_UNKNOWN_COUNTRY_CODE
protected static final int SOURCE_MAXSPEED_UNKNOWN_CONTEXT
protected static final int SOURCE_MAXSPEED_CONTEXT_MISMATCH_VS_MAXSPEED
protected static final int SOURCE_MAXSPEED_CONTEXT_MISMATCH_VS_HIGHWAY
protected static final List<String> CLASSIFIED_HIGHWAYS
protected static final List<String> KNOWN_SOURCE_MAXSPEED_CONTEXTS
protected static final List<String> ISO_COUNTRIES
boolean leftByPedestrians
boolean leftByCyclists
boolean leftByCars
int pedestrianWays
int cyclistWays
int carsWays
public Highways()
Highways
test.public void visit(Node n)
Visitor
private void testWrongRoundabout(Way w)
private void testMissingPedestrianCrossing(Node n)
private void handleCarWay(Node n, Way w)
private void handleCyclistWay(Node n, Way w)
private void handlePedestrianWay(Node n, Way w)
private void testSourceMaxspeed(OsmPrimitive p, boolean testContextHighway)
public boolean isFixable(TestError testError)
Test