public final class Test extends Object
 Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Modifier and Type | Method and Description | 
|---|---|
| static String | checkAll(OTSLine3D reference,
        double offset)Apply all offset methods and check the results. | 
| static boolean | checkOffsetLine(OTSLine3D referenceLine,
               double offset,
               OTSLine3D.OffsetMethod offsetMethod)Check the offsetLine method. | 
| static void | main(String[] args) | 
| static void | test1()Kink near end of design line. | 
| static void | test2()Kink halfway (far from any endpoint). | 
| static void | test3()Kink plus decreasing width. | 
| static void | test4()Two kinks, (too) close together. | 
| static void | test5()Two-segment design line with minimal change of direction. | 
| static void | test6()Straight design line with some noise (sufficiently far from the end points). | 
| static void | test7()Straight design line with more noise (sufficiently far from the end points). | 
| static void | test8()Straight design line with more noise (close to the end points). | 
| static String | timeLimitedCheckOffsetLine(OTSLine3D reference,
                          double offset,
                          OTSLine3D.OffsetMethod offsetMethod,
                          int timeLimitMillis) | 
public static String checkAll(OTSLine3D reference, double offset)
reference - OTSLine3D; reference lineoffset - double; the offsetpublic static String timeLimitedCheckOffsetLine(OTSLine3D reference, double offset, OTSLine3D.OffsetMethod offsetMethod, int timeLimitMillis)
reference - OTSLine3D; the reference lineoffset - double; the offsetoffsetMethod - OTSLine3D.OffsetMethod; the offset methodtimeLimitMillis - int; maximum running time in millisecondspublic static void main(String[] args) throws NetworkException, OTSGeometryException
args - String[]; argsNetworkException - on errorOTSGeometryException - on errorpublic static boolean checkOffsetLine(OTSLine3D referenceLine, double offset, OTSLine3D.OffsetMethod offsetMethod)
referenceLine - OTSLine3D; the reference lineoffset - double; the offsetoffsetMethod - OTSLine3D.OffsetMethod; the offset methodpublic static void test1()
                  throws OTSGeometryException
OTSGeometryException - on errorpublic static void test2()
                  throws OTSGeometryException
OTSGeometryException - on errorpublic static void test3()
                  throws OTSGeometryException
OTSGeometryException - on errorpublic static void test4()
                  throws OTSGeometryException
OTSGeometryException - on errorpublic static void test5()
                  throws OTSGeometryException
OTSGeometryException - on errorpublic static void test6()
                  throws OTSGeometryException
OTSGeometryException - on errorpublic static void test7()
                  throws OTSGeometryException
OTSGeometryException - on errorpublic static void test8()
                  throws OTSGeometryException
OTSGeometryException - on errorCopyright © 2014–2019 Delft University of Technology. All rights reserved.