org.openstreetmap.josm.data.validation.tests
Class CrossingWays.ExtendedSegment

java.lang.Object
  extended by org.openstreetmap.josm.data.validation.tests.CrossingWays.ExtendedSegment
Enclosing class:
CrossingWays

public static class CrossingWays.ExtendedSegment
extends java.lang.Object

A way segment with some additional information


Field Summary
 boolean coastline
          The coastline type
 java.lang.String layer
          The layer
 Node n1
           
 Node n2
           
 java.lang.String railway
          The railway type
 java.lang.String waterway
          The waterway type
 WaySegment ws
           
 
Constructor Summary
CrossingWays.ExtendedSegment(WaySegment ws, java.lang.String layer, java.lang.String railway, boolean coastline, java.lang.String waterway)
          Constructor
 
Method Summary
 boolean intersects(CrossingWays.ExtendedSegment s2)
          Checks whether this segment crosses other segment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

n1

public Node n1

n2

public Node n2

ws

public WaySegment ws

layer

public java.lang.String layer
The layer


railway

public java.lang.String railway
The railway type


waterway

public java.lang.String waterway
The waterway type


coastline

public boolean coastline
The coastline type

Constructor Detail

CrossingWays.ExtendedSegment

public CrossingWays.ExtendedSegment(WaySegment ws,
                                    java.lang.String layer,
                                    java.lang.String railway,
                                    boolean coastline,
                                    java.lang.String waterway)
Constructor

Parameters:
ws - The way segment
layer - The layer of the way this segment is in
railway - The railway type of the way this segment is in
coastline - The coastline flag of the way the segment is in
waterway - The waterway type of the way this segment is in
Method Detail

intersects

public boolean intersects(CrossingWays.ExtendedSegment s2)
Checks whether this segment crosses other segment

Parameters:
s2 - The other segment
Returns:
true if both segments crosses


JOSM