Package jline
Class GlobalConstants
-
- All Implemented Interfaces:
public class GlobalConstantsGlobal 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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static doubleCoarseTolpublic final static booleanDummyModepublic final static doubleFineTolpublic final static doubleImmediatepublic final static doubleInfpublic final static intMaxIntpublic final static doubleNegInfpublic final static StringVersionpublic final static doubleZeropublic static VerboseLevelVerbose
-
Constructor Summary
Constructors Constructor Description GlobalConstants()
-
Method Summary
Modifier and Type Method Description static GlobalConstantsgetInstance()Returns the singleton instance of GlobalConstants. static VerboseLevelgetVerbose()Gets the current verbosity level. static voidsetVerbose(VerboseLevel verbosity)Sets the verbosity level for solver output. static doublegetCoarseTol()Gets the coarse tolerance value. static doublegetFineTol()Gets the fine tolerance value. static doublegetZero()Gets the zero threshold value. static intgetMaxInt()Gets the maximum integer value. static StringgetVersion()Gets the LINE solver version. -
-
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
-
-
-
-