Class ContinuousClothoidTest

java.lang.Object
org.opentrafficsim.core.geometry.ContinuousClothoidTest

public class ContinuousClothoidTest extends Object
Tests the generation of clothoids with various input.

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

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Test clothoids created with curvatures and an A-value.
    void
    Test clothoids created with curvatures and a length.
    void
    Tests that a clothoid offset is on the right side and at the right direction, for clothoids that are reflected or not, and clothoids that are opposite or not.
    void
    Tests whether clothoid between two directed points are correct.
    void
    Tests whether clothoid between two directed points on a line, or just not on a line, are correct.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContinuousClothoidTest

      public ContinuousClothoidTest()
  • Method Details

    • testPoints

      @Test public void testPoints() throws OtsGeometryException
      Tests whether clothoid between two directed points are correct.
      Throws:
      OtsGeometryException - if segment number is not available on the line
    • testStraight

      @Test public void testStraight()
      Tests whether clothoid between two directed points on a line, or just not on a line, are correct. This test is separate from TestPoints() because the random procedure generates very few straight situations.
    • testLength

      @Test public void testLength() throws OtsGeometryException
      Test clothoids created with curvatures and a length.
      Throws:
      OtsGeometryException - if segment number is not available on the line
    • testA

      @Test public void testA() throws OtsGeometryException
      Test clothoids created with curvatures and an A-value.
      Throws:
      OtsGeometryException - if segment number is not available on the line
    • testOffset

      @Test public void testOffset()
      Tests that a clothoid offset is on the right side and at the right direction, for clothoids that are reflected or not, and clothoids that are opposite or not.