Class DualBoundConstraintsTest
java.lang.Object
org.opentrafficsim.base.parameters.DualBoundConstraintsTest
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, Wouter Schakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
checkConstraint
(double low, double high, boolean includeLow, boolean includeHigh) Create a DoubleBound for the given values and test it.final void
Test the DoubleBound Constraints.
-
Constructor Details
-
DualBoundConstraintsTest
public DualBoundConstraintsTest()
-
-
Method Details
-
testNumericalConstraints
@Test public final void testNumericalConstraints()Test the DoubleBound Constraints. -
checkConstraint
public final void checkConstraint(double low, double high, boolean includeLow, boolean includeHigh) Create a DoubleBound for the given values and test it.- Parameters:
low
- double; the low limit of the DoubleBoundhigh
- double; the high limit of the DoubleBoundincludeLow
- boolean; does the DoubleBound include the low limit valueincludeHigh
- boolean; does the DoubleBound include the high limit value
-