Enum Class KnotReport

java.lang.Object
java.lang.Enum<KnotReport>
org.djutils.math.functions.KnotReport
All Implemented Interfaces:
Serializable, Comparable<KnotReport>, Constable

public enum KnotReport extends Enum<KnotReport>
Knowledge about knots (discontinuities) of a MathFunction in some interval.

Copyright (c) 2024-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Enum Constant Details

    • NONE

      public static final KnotReport NONE
      It is certain that there are no knots in the interval.
    • KNOWN_FINITE

      public static final KnotReport KNOWN_FINITE
      There are a limited number of knots in the interval.
    • KNOWN_INFINITE

      public static final KnotReport KNOWN_INFINITE
      There are infinitely many knots in the interval.
    • UNKNOWN

      public static final KnotReport UNKNOWN
      The presence, or number of knots in the interval is not known.
  • Method Details

    • values

      public static KnotReport[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KnotReport valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isFinite

      public boolean isFinite()
      Report if the number of knots is finite.
      Returns:
      true for NONE, or KNOWN_FINITE; false for KNOWN_INFINITE, or UNKNOWN
    • combineWith

      public KnotReport combineWith(KnotReport other)
      Combine two KnotReports and return the combined knowledge.
      Parameters:
      other - the other KnotReport
      Returns:
      the combined KnotReport knowledge