Package org.opentrafficsim.core.geometry
Class Test
java.lang.Object
org.opentrafficsim.core.geometry.Test
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:
- Alexander Verbraeck, Peter Knoppers
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static booleanPrint detailed output. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidtest1()Kink near end of design line.static voidtest2()Kink halfway (far from any endpoint).static voidtest3()Kink plus decreasing width.static voidtest4()Two kinks, (too) close together.static voidtest5()Two-segment design line with minimal change of direction.static voidtest6()Straight design line with some noise (sufficiently far from the end points).static voidtest7()Straight design line with more noise (sufficiently far from the end points).static voidtest8()Straight design line with more noise (close to the end points).
-
Field Details
-
printDetails
static boolean printDetailsPrint detailed output.
-
-
Method Details
-
test1
Kink near end of design line.- Throws:
OtsGeometryException- on error
-
test2
Kink halfway (far from any endpoint).- Throws:
OtsGeometryException- on error
-
test3
Kink plus decreasing width.- Throws:
OtsGeometryException- on error
-
test4
Two kinks, (too) close together.- Throws:
OtsGeometryException- on error
-
test5
Two-segment design line with minimal change of direction.- Throws:
OtsGeometryException- on error
-
test6
Straight design line with some noise (sufficiently far from the end points).- Throws:
OtsGeometryException- on error
-
test7
Straight design line with more noise (sufficiently far from the end points).- Throws:
OtsGeometryException- on error
-
test8
Straight design line with more noise (close to the end points).- Throws:
OtsGeometryException- on error
-