Class ConflictTest

java.lang.Object
org.opentrafficsim.road.network.lane.ConflictTest
All Implemented Interfaces:
Serializable, Remote, EventListener, org.djutils.event.EventListener

public class ConflictTest extends Object implements org.djutils.event.EventListener
Test the Conflict class.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Peter Knoppers
See Also:
  • Constructor Details

    • ConflictTest

      public ConflictTest()
  • Method Details

    • testConstructor

      @Test public void testConstructor() throws NetworkException, OtsGeometryException
      Test the Conflict class.
      Throws:
      NetworkException - on error
      OtsGeometryException - on error
    • intersections

      public Set<org.djutils.draw.point.Point2d> intersections(org.djutils.draw.line.Polygon2d a, org.djutils.draw.line.Polygon2d b)
      Find all 2D (ignoring Z) intersections between two OtsLine2d objects.
      Parameters:
      a - Polygon2d; the first polyline
      b - Polygon2d; the second polyline
      Returns:
      Set<Point2d>; the intersections
    • notify

      public final void notify(org.djutils.event.Event event) throws RemoteException
      Specified by:
      notify in interface org.djutils.event.EventListener
      Throws:
      RemoteException