This module supports the configuration of the analysis system and provides access to some values in Config file.
It also provides an operation to get the port number of the analysis server (which is implicitly started if necessary).
data CConfig
Configuration info used during execution of CASS. It contains the properties from the RC file, the current debug level, the options passed to CASS, and an IORef for statistics.
Constructors:
data CASSStats
Constructors:
Known instances:
The banner of the CASS system.
The base directory of the analysis tool containing all programs and documentations. It is used to copy the configuration file, to the find executables of the server and the workers, and to find the documentation of the various analyses.
The directory containing the documentations of the various analyses.
The name of the main executable. Used to start workers in CASS.Server
.
The address of the server when it is connected from the worker clients.
timeout for network message passing: -1 is wait time infinity
curryInfoRequest2CASS
:: [(String, String)]
The requests and analysis names currently support by CurryInfo.
Taken from CurryInfo.Analysis
of package curry-info
.
getStatistics
:: CConfig -> IO String
Gets the statistics from the current configuration.
setNumModAnalyzed
:: Int -> CConfig -> IO ()
Sets the number of modules to be analyzed in the configuration.
incAnaMods
:: CConfig -> IO ()
Increments the number of modules analyzed by CASS.
incCurryInfoMods
:: CConfig -> IO ()
Increments the number of modules with infos taken from CurryInfo.
getDefaultCConfig
:: IO CConfig
Gets the default configuration which has no properties and is quiet.
debugLevel
:: CConfig -> DLevel
Returns the debug level from the current configuration.
setDebugLevel
:: Int -> CConfig -> CConfig
Returns the debug level from the current configuration.
useCurryInfo
:: CConfig -> Bool
Returns the curryinfo flag from the current configuration.
useCurryInfoWeb
:: CConfig -> Bool
Returns the curryinfo web flag from the current configuration.
fixpointMethod
:: CConfig -> String
Returns the fixpoint computation method from Config file
withPrelude
:: CConfig -> Bool
Gets the option to analyze also the prelude from Config file
getDefaultPath
:: CConfig -> IO String
Gets the default load path from the property file (added at the end of CURRYPATH).
numberOfWorkers
:: CConfig -> Int
number of worker threads running at the same time
storeServerPortNumber
:: Int -> IO ()
Stores the current server port number together with the pid of the server process.
removeServerPortNumber
:: IO ()
Removes the currently stored server port number.