Class BufferingTests

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

public class BufferingTests
extends java.lang.Object
Test the alternative offset line classes.
Author:
Peter Knoppers
  • Constructor Summary

    Constructors 
    Constructor Description
    BufferingTests()  
  • Method Summary

    Modifier and Type Method Description
    void fractionalOffsetLineTest()
    Test the offsetLine method that takes relative fraction and offsets arrays.
    static void main​(java.lang.String[] args)  
    void testVariousBufferings()
    Test some very simple cases of offset line.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • testVariousBufferings

      public void testVariousBufferings() throws org.opentrafficsim.core.geometry.OTSGeometryException
      Test some very simple cases of offset line.
      Throws:
      org.opentrafficsim.core.geometry.OTSGeometryException - if that happens uncaught; this test has failed
    • fractionalOffsetLineTest

      public void fractionalOffsetLineTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
      Test the offsetLine method that takes relative fraction and offsets arrays.
      Throws:
      org.opentrafficsim.core.geometry.OTSGeometryException - if that happens uncaught; this test has failed
    • main

      public static void main​(java.lang.String[] args) throws org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.geometry.OTSGeometryException
      Parameters:
      args - String[]; args
      Throws:
      org.opentrafficsim.core.network.NetworkException - on error
      org.opentrafficsim.core.geometry.OTSGeometryException - on error