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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static double
CoarseTol
public final static boolean
DummyMode
public final static double
FineTol
public final static double
Immediate
public final static double
Inf
public final static int
MaxInt
public final static double
NegInf
public final static String
Version
public final static double
Zero
public static VerboseLevel
Verbose
-
Constructor Summary
Constructors Constructor Description GlobalConstants()
-
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. -
-
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
-
-
-
-