Class DualBoundConstraintsTest


  • public class DualBoundConstraintsTest
    extends java.lang.Object

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

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version Aug 16, 2017
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkConstraint​(double low, double high, boolean includeLow, boolean includeHigh)
      Create a DoubleBound for the given values and test it.
      void testNumericalConstraints()
      Test the DoubleBound Constraints.
      • Methods inherited from class java.lang.Object

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

      • DualBoundConstraintsTest

        public DualBoundConstraintsTest()
    • Method Detail

      • testNumericalConstraints

        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 DoubleBound
        high - double; the high limit of the DoubleBound
        includeLow - boolean; does the DoubleBound include the low limit value
        includeHigh - boolean; does the DoubleBound include the high limit value