$darkmode
DENOPTIM
denoptim.programs.combinatorial.CEBLParameters Class Reference

Parameters controlling execution of the combinatorial algorithm for exploration of a fragment space by layer (CEBL). More...

Inheritance diagram for denoptim.programs.combinatorial.CEBLParameters:
[legend]
Collaboration diagram for denoptim.programs.combinatorial.CEBLParameters:
[legend]

Public Member Functions

 CEBLParameters ()
 Constructor. More...
 
ArrayList< DGraphgetRootGraphs ()
 
String getUIDFileName ()
 
boolean submitFitnessTask ()
 
String getDBRoot ()
 
void setDBRoot (String pathname)
 
int getNumberOfCPU ()
 
long getMaxWait ()
 
long getWaitStep ()
 
int getMaxLevel ()
 
boolean useGivenRoots ()
 
int getCheckPointStep ()
 
String getCheckPointName ()
 
CheckPoint getCheckPoint ()
 
boolean restartFromCheckPoint ()
 
boolean prepareFilesForTests ()
 
void interpretKeyword (String key, String value) throws DENOPTIMException
 Processes a keyword/value pair and assign the related parameters. More...
 
void checkParameters () throws DENOPTIMException
 Evaluate consistency of input parameters. More...
 
void processParameters () throws DENOPTIMException
 Processes all parameters and initialize related objects. More...
 
String getPrintedList ()
 Returns the list of parameters in a string with newline characters as delimiters. More...
 
- Public Member Functions inherited from denoptim.programs.RunTimeParameters
 RunTimeParameters (ParametersType paramType)
 Constructor. More...
 
String paramTypeName ()
 Returns a string defining the type the parameters collected here. More...
 
String getWorkDirectory ()
 Gets the pathname to the working directory. More...
 
void setWorkDirectory (String pathname)
 Gets the pathname to the working directory. More...
 
String getLogFilePathname ()
 Gets the pathname to the log file. More...
 
void setLogFilePathname (String pathname)
 Sets the pathname to the log file. More...
 
Logger getLogger ()
 Get the name of the program specific logger. More...
 
Logger startProgramSpecificLogger (String loggerIdentifier) throws SecurityException, IOException
 Starts a logger with the given name. More...
 
Logger startProgramSpecificLogger (String loggerIdentifier, boolean toLogFile) throws SecurityException, IOException
 Starts a logger with the given name. More...
 
Logger startConsoleLogger (String loggerIdentifier)
 Starts a program-specific logger that prints to System.err stream. More...
 
int getVerbosity ()
 Returns the level of verbosity, i.e., the amount of log that we want to print. More...
 
void setVerbosity (int l)
 Set the level of verbosity. More...
 
Randomizer getRandomizer ()
 Returns the current program-specific randomizer. More...
 
long getRandomSeed ()
 Returns the seed. More...
 
void setRandomizer (Randomizer rng)
 Sets the randomizer. More...
 
Randomizer startRandomizer ()
 Starts a program specific randomizer, i.e., a tool for generating random numbers and taking random decisions. More...
 
Randomizer startRandomizer (long seed)
 Starts a program specific randomizer, i.e., a tool for generating random numbers and taking random decisions. More...
 
void readParameterFile (String infile) throws DENOPTIMException
 Read the parameter TXT file line by line and interpret its content. More...
 
void readParameterLine (String line) throws DENOPTIMException
 
boolean containsParameters (ParametersType type)
 
RunTimeParameters getParameters (ParametersType type)
 
void setParameters (RunTimeParameters otherParams)
 
void interpretKeyword (String line) throws DENOPTIMException
 Processes a string looking for keyword and a possibly associated value. More...
 
abstract void interpretKeyword (String key, String value) throws DENOPTIMException
 Processes a keyword/value pair and assign the related parameters. More...
 
abstract void checkParameters () throws DENOPTIMException
 Evaluate consistency of input parameters. More...
 
abstract void processParameters () throws DENOPTIMException
 Processes all parameters and initialize related objects. More...
 
abstract String getPrintedList ()
 Returns the list of parameters in a string with newline characters as delimiters. More...
 
void printParameters ()
 Print all parameters. More...
 

Private Member Functions

void createWorkingDirectory ()
 

Private Attributes

String rootGraphsFile = null
 File with user defined list of root graphs. More...
 
boolean useGivenRoots = false
 Flag declaring that generation of graphs will use a given list of graphs as starting points for the exploration. More...
 
ArrayList< DGraphrootGraphs
 User defined list of root graphs. More...
 
String uidFile = "UID.txt"
 Unique identifier file. More...
 
boolean runFitnessTask = false
 Flag: optionally perform an evaluation of the fitness/descriptors on each accepted graph. More...
 
String dbRootDir = "."
 Folder containing DENOPTIMGraphs sorted by level and reported as Strings. More...
 
int numCPU = 1
 Number of processors. More...
 
long maxWait = 600000L
 Maximum wait for completion of a level (millisec) More...
 
long waitStep = 5000L
 Time step between each check for completion of a level (millisec) More...
 
int maxLevel = 2
 Maximum level accepted: number of frag-frag bond from the origin (i.e., the scaffolds) More...
 
int chkptStep = 100
 Number of combinations between every check out of the current position into a checkpoint file. More...
 
CheckPoint chkpt = null
 Checkpoint for restarting an interrupted FSE run. More...
 
String chkptFile = null
 Name of checkpoint file for restarting an interrupted FSE run. More...
 
boolean chkptRestart = false
 Flag defining a restart from checkpoint file. More...
 
boolean prepareChkAndSerForTests = false
 Flag requiring generation of the checkpoint files for the testing suite. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from denoptim.programs.RunTimeParameters
static boolean readYesNoTrueFalse (String s)
 Reads a string searching for any common way to say either yes/true (including shorthand t/y) or no/false (including shorthand f/n either). More...
 
- Public Attributes inherited from denoptim.programs.RunTimeParameters
final String NL = System.getProperty("line.separator")
 New line character. More...
 
- Protected Member Functions inherited from denoptim.programs.RunTimeParameters
void checkOtherParameters () throws DENOPTIMException
 Checks any of the parameter collections contained in this instance. More...
 
void processOtherParameters () throws DENOPTIMException
 Processes any of the parameter collections contained in this instance. More...
 
void ensureFileExistsIfSet (String pathname)
 Ensures a pathname is not empty nor null and that it does lead to an existing file or triggers an error. More...
 
void ensureFileExists (String pathname)
 Ensures a pathname does lead to an existing file or triggers an error. More...
 
void ensureNotNull (String paramName, String param, String paramKey)
 Ensures that a parameter is not null or triggers an error. More...
 
void ensureIsPositive (String paramName, int value, String paramKey)
 Ensures that a parameter is a positive number (x>=0) or triggers an error. More...
 
void ensureIsPositiveOrZero (String paramName, int value, String paramKey)
 Ensures that a parameter is a positive number (x>=0) or triggers an error. More...
 
void ensureInRange (String paramName, int value, int min, int max, String paramKey)
 Ensures that a parameter is within a range or triggers an error. More...
 
- Protected Attributes inherited from denoptim.programs.RunTimeParameters
boolean isMaster = true
 Flag signaling this is the master collection of parameters. More...
 
String workDir = System.getProperty("user.dir")
 Working directory. More...
 
String logFile = "unset"
 Log file. More...
 
int verbosity = 0
 Verbosity level for logger. More...
 
Map< ParametersType, RunTimeParametersotherParameters
 Collection of other parameters by type. More...
 

Detailed Description

Parameters controlling execution of the combinatorial algorithm for exploration of a fragment space by layer (CEBL).

Author
Marco Foscato

Definition at line 48 of file CEBLParameters.java.

Constructor & Destructor Documentation

◆ CEBLParameters()

denoptim.programs.combinatorial.CEBLParameters.CEBLParameters ( )

Constructor.

Definition at line 138 of file CEBLParameters.java.

References denoptim.programs.RunTimeParameters.ParametersType.CEBL_PARAMS.

Member Function Documentation

◆ checkParameters()

◆ createWorkingDirectory()

void denoptim.programs.combinatorial.CEBLParameters.createWorkingDirectory ( )
private

Definition at line 478 of file CEBLParameters.java.

References denoptim.files.FileUtils.addToRecentFiles(), denoptim.files.FileUtils.createDirectory(), denoptim.programs.combinatorial.CEBLParameters.dbRootDir, denoptim.files.FileFormat.FSE_RUN, denoptim.programs.RunTimeParameters.logFile, and denoptim.programs.RunTimeParameters.workDir.

Referenced by denoptim.programs.combinatorial.CEBLParameters.processParameters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCheckPoint()

CheckPoint denoptim.programs.combinatorial.CEBLParameters.getCheckPoint ( )

Definition at line 229 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.chkpt.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.exploreCombinationsAtGivenLevel(), denoptim.combinatorial.CombinatorialExplorerByLayer.makeCheckPoint(), and denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ getCheckPointName()

String denoptim.programs.combinatorial.CEBLParameters.getCheckPointName ( )

◆ getCheckPointStep()

int denoptim.programs.combinatorial.CEBLParameters.getCheckPointStep ( )

Definition at line 215 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.chkptStep.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.exploreCombinationsAtGivenLevel().

Here is the caller graph for this function:

◆ getDBRoot()

String denoptim.programs.combinatorial.CEBLParameters.getDBRoot ( )

Definition at line 166 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.dbRootDir.

Referenced by denoptim.combinatorial.CEBLUtils.getNameOfStorageDir(), denoptim.combinatorial.CEBLUtils.getNameOfStorageFile(), and denoptim.combinatorial.CEBLUtils.getNameOfStorageIndexFile().

Here is the caller graph for this function:

◆ getMaxLevel()

int denoptim.programs.combinatorial.CEBLParameters.getMaxLevel ( )

Definition at line 201 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.maxLevel.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ getMaxWait()

long denoptim.programs.combinatorial.CEBLParameters.getMaxWait ( )

Definition at line 187 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.maxWait.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ getNumberOfCPU()

int denoptim.programs.combinatorial.CEBLParameters.getNumberOfCPU ( )

Definition at line 180 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.numCPU.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.CombinatorialExplorerByLayer().

Here is the caller graph for this function:

◆ getPrintedList()

String denoptim.programs.combinatorial.CEBLParameters.getPrintedList ( )

Returns the list of parameters in a string with newline characters as delimiters.

Returns
the list of parameters in a string with newline characters as delimiters.

Reimplemented from denoptim.programs.RunTimeParameters.

Definition at line 506 of file CEBLParameters.java.

References denoptim.programs.RunTimeParameters.NL, denoptim.programs.RunTimeParameters.otherParameters, and denoptim.programs.RunTimeParameters.paramTypeName().

Here is the call graph for this function:

◆ getRootGraphs()

ArrayList< DGraph > denoptim.programs.combinatorial.CEBLParameters.getRootGraphs ( )

Definition at line 145 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.rootGraphs.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.exploreCombinationsAtGivenLevel().

Here is the caller graph for this function:

◆ getUIDFileName()

String denoptim.programs.combinatorial.CEBLParameters.getUIDFileName ( )

Definition at line 152 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.uidFile.

Referenced by denoptim.combinatorial.GraphBuildingTask.sendToFitnessProvider().

Here is the caller graph for this function:

◆ getWaitStep()

long denoptim.programs.combinatorial.CEBLParameters.getWaitStep ( )

Definition at line 194 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.waitStep.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.run().

Here is the caller graph for this function:

◆ interpretKeyword()

◆ prepareFilesForTests()

boolean denoptim.programs.combinatorial.CEBLParameters.prepareFilesForTests ( )

Definition at line 243 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.prepareChkAndSerForTests.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.exploreCombinationsAtGivenLevel().

Here is the caller graph for this function:

◆ processParameters()

◆ restartFromCheckPoint()

boolean denoptim.programs.combinatorial.CEBLParameters.restartFromCheckPoint ( )

Definition at line 236 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.chkptRestart.

Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.CombinatorialExplorerByLayer().

Here is the caller graph for this function:

◆ setDBRoot()

void denoptim.programs.combinatorial.CEBLParameters.setDBRoot ( String  pathname)

Definition at line 173 of file CEBLParameters.java.

◆ submitFitnessTask()

boolean denoptim.programs.combinatorial.CEBLParameters.submitFitnessTask ( )

Definition at line 159 of file CEBLParameters.java.

References denoptim.programs.combinatorial.CEBLParameters.runFitnessTask.

Referenced by denoptim.combinatorial.GraphBuildingTask.call().

Here is the caller graph for this function:

◆ useGivenRoots()

boolean denoptim.programs.combinatorial.CEBLParameters.useGivenRoots ( )

Member Data Documentation

◆ chkpt

CheckPoint denoptim.programs.combinatorial.CEBLParameters.chkpt = null
private

Checkpoint for restarting an interrupted FSE run.

Definition at line 113 of file CEBLParameters.java.

Referenced by denoptim.programs.combinatorial.CEBLParameters.getCheckPoint(), and denoptim.programs.combinatorial.CEBLParameters.processParameters().

◆ chkptFile

String denoptim.programs.combinatorial.CEBLParameters.chkptFile = null
private

◆ chkptRestart

boolean denoptim.programs.combinatorial.CEBLParameters.chkptRestart = false
private

◆ chkptStep

int denoptim.programs.combinatorial.CEBLParameters.chkptStep = 100
private

Number of combinations between every check out of the current position into a checkpoint file.

Definition at line 108 of file CEBLParameters.java.

Referenced by denoptim.programs.combinatorial.CEBLParameters.checkParameters(), denoptim.programs.combinatorial.CEBLParameters.getCheckPointStep(), and denoptim.programs.combinatorial.CEBLParameters.interpretKeyword().

◆ dbRootDir

String denoptim.programs.combinatorial.CEBLParameters.dbRootDir = "."
private

◆ maxLevel

int denoptim.programs.combinatorial.CEBLParameters.maxLevel = 2
private

Maximum level accepted: number of frag-frag bond from the origin (i.e., the scaffolds)

Definition at line 102 of file CEBLParameters.java.

Referenced by denoptim.programs.combinatorial.CEBLParameters.checkParameters(), denoptim.programs.combinatorial.CEBLParameters.getMaxLevel(), and denoptim.programs.combinatorial.CEBLParameters.interpretKeyword().

◆ maxWait

long denoptim.programs.combinatorial.CEBLParameters.maxWait = 600000L
private

Maximum wait for completion of a level (millisec)

Definition at line 91 of file CEBLParameters.java.

Referenced by denoptim.programs.combinatorial.CEBLParameters.getMaxWait(), and denoptim.programs.combinatorial.CEBLParameters.interpretKeyword().

◆ numCPU

int denoptim.programs.combinatorial.CEBLParameters.numCPU = 1
private

◆ prepareChkAndSerForTests

boolean denoptim.programs.combinatorial.CEBLParameters.prepareChkAndSerForTests = false
private

Flag requiring generation of the checkpoint files for the testing suite.

When true allows to stop the asyncronous, parallelized exploration of a fragment space so that checkpoint files and serialized graphs can be generated and used to prepare the test suite.

Definition at line 131 of file CEBLParameters.java.

Referenced by denoptim.programs.combinatorial.CEBLParameters.interpretKeyword(), and denoptim.programs.combinatorial.CEBLParameters.prepareFilesForTests().

◆ rootGraphs

ArrayList<DGraph> denoptim.programs.combinatorial.CEBLParameters.rootGraphs
private

◆ rootGraphsFile

String denoptim.programs.combinatorial.CEBLParameters.rootGraphsFile = null
private

◆ runFitnessTask

boolean denoptim.programs.combinatorial.CEBLParameters.runFitnessTask = false
private

Flag: optionally perform an evaluation of the fitness/descriptors on each accepted graph.

Definition at line 75 of file CEBLParameters.java.

Referenced by denoptim.programs.combinatorial.CEBLParameters.checkParameters(), and denoptim.programs.combinatorial.CEBLParameters.submitFitnessTask().

◆ uidFile

String denoptim.programs.combinatorial.CEBLParameters.uidFile = "UID.txt"
private

◆ useGivenRoots

boolean denoptim.programs.combinatorial.CEBLParameters.useGivenRoots = false
private

◆ waitStep

long denoptim.programs.combinatorial.CEBLParameters.waitStep = 5000L
private

Time step between each check for completion of a level (millisec)

Definition at line 96 of file CEBLParameters.java.

Referenced by denoptim.programs.combinatorial.CEBLParameters.getWaitStep(), and denoptim.programs.combinatorial.CEBLParameters.interpretKeyword().


The documentation for this class was generated from the following file: