org.openstreetmap.josm.data.validation.tests
Class TurnrestrictionTest

java.lang.Object
  extended by org.openstreetmap.josm.data.osm.visitor.AbstractVisitor
      extended by org.openstreetmap.josm.data.validation.Test
          extended by org.openstreetmap.josm.data.validation.tests.TurnrestrictionTest
All Implemented Interfaces:
Visitor

public class TurnrestrictionTest
extends Test


Field Summary
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
           
protected static int TO_VIA_NODE
           
protected static int TO_VIA_WAY
           
protected static int UNCONNECTED_VIA
           
protected static int UNKNOWN_ROLE
           
protected static int UNKNOWN_TYPE
           
 
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload
 
Constructor Summary
TurnrestrictionTest()
           
 
Method Summary
private  void checkIfConnected(Way previous, Way current, java.lang.String msg, int code)
           
 void visit(Relation r)
          Visiting call for relations.
 
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, ok, setBeforeUpload, setPartialSelection, startTest, testBeforeUpload, visit, visit, visit
 
Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_VIA

protected static final int NO_VIA
See Also:
Constant Field Values

NO_FROM

protected static final int NO_FROM
See Also:
Constant Field Values

NO_TO

protected static final int NO_TO
See Also:
Constant Field Values

MORE_VIA

protected static final int MORE_VIA
See Also:
Constant Field Values

MORE_FROM

protected static final int MORE_FROM
See Also:
Constant Field Values

MORE_TO

protected static final int MORE_TO
See Also:
Constant Field Values

UNKNOWN_ROLE

protected static final int UNKNOWN_ROLE
See Also:
Constant Field Values

UNKNOWN_TYPE

protected static final int UNKNOWN_TYPE
See Also:
Constant Field Values

FROM_VIA_NODE

protected static final int FROM_VIA_NODE
See Also:
Constant Field Values

TO_VIA_NODE

protected static final int TO_VIA_NODE
See Also:
Constant Field Values

FROM_VIA_WAY

protected static final int FROM_VIA_WAY
See Also:
Constant Field Values

TO_VIA_WAY

protected static final int TO_VIA_WAY
See Also:
Constant Field Values

MIX_VIA

protected static final int MIX_VIA
See Also:
Constant Field Values

UNCONNECTED_VIA

protected static final int UNCONNECTED_VIA
See Also:
Constant Field Values

SUPERFLUOUS

protected static final int SUPERFLUOUS
See Also:
Constant Field Values
Constructor Detail

TurnrestrictionTest

public TurnrestrictionTest()
Method Detail

visit

public void visit(Relation r)
Description copied from interface: Visitor
Visiting call for relations.

Specified by:
visit in interface Visitor
Overrides:
visit in class Test
Parameters:
r - The relation to inspect.

checkIfConnected

private void checkIfConnected(Way previous,
                              Way current,
                              java.lang.String msg,
                              int code)


JOSM