Package jline

Class GlobalConstants

  • All Implemented Interfaces:

    
    public class GlobalConstants
    
                        

    Global constants for tolerances and solver configuration.

    This class defines system-wide constants used throughout the LINE solver including:

    • Numerical tolerances for convergence checks
    • Special values (infinity, zero threshold)
    • Version information
    • Verbosity settings

    The class follows a singleton pattern to ensure consistent configuration across all solver components.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static GlobalConstants getInstance() Returns the singleton instance of GlobalConstants.
      static VerboseLevel getVerbose() Gets the current verbosity level.
      static void setVerbose(VerboseLevel verbosity) Sets the verbosity level for solver output.
      static double getCoarseTol() Gets the coarse tolerance value.
      static double getFineTol() Gets the fine tolerance value.
      static double getZero() Gets the zero threshold value.
      static int getMaxInt() Gets the maximum integer value.
      static String getVersion() Gets the LINE solver version.
      • Methods inherited from class java.lang.Object

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

      • GlobalConstants

        GlobalConstants()
    • Method Detail

      • getInstance

         static GlobalConstants getInstance()

        Returns the singleton instance of GlobalConstants. Creates the instance if it doesn't exist.

        Returns:

        the singleton GlobalConstants instance

      • getVerbose

         static VerboseLevel getVerbose()

        Gets the current verbosity level.

        Returns:

        the current VerboseLevel setting

      • setVerbose

         static void setVerbose(VerboseLevel verbosity)

        Sets the verbosity level for solver output.

        Parameters:
        verbosity - the desired verbosity level
      • getCoarseTol

         static double getCoarseTol()

        Gets the coarse tolerance value.

        Returns:

        coarse tolerance (1e-3)

      • getFineTol

         static double getFineTol()

        Gets the fine tolerance value.

        Returns:

        fine tolerance (1e-8)

      • getZero

         static double getZero()

        Gets the zero threshold value.

        Returns:

        zero threshold (1e-14)

      • getMaxInt

         static int getMaxInt()

        Gets the maximum integer value.

        Returns:

        maximum integer value

      • getVersion

         static String getVersion()

        Gets the LINE solver version.

        Returns:

        version string