$darkmode
DENOPTIM
denoptim.gui.FSEParametersForm Class Reference

Form collecting input parameters for a combinatorial/virtual screening experiment performed by FragSpaceExplorer. More...

Inheritance diagram for denoptim.gui.FSEParametersForm:
[legend]
Collaboration diagram for denoptim.gui.FSEParametersForm:
[legend]

Public Member Functions

 FSEParametersForm (Dimension d)
 
void importParametersFromDenoptimParamsFile (String fileName) throws Exception
 Imports parameters from a properly formatted parameters file. More...
 
void importSingleParameter (String key, String value) throws Exception
 
void putParametersToString (StringBuilder sb) throws Exception
 
- Public Member Functions inherited from denoptim.gui.ParametersForm
 ParametersForm ()
 Empty constructor. More...
 
void importParametersFromDenoptimParamsFile (String fileName) throws Exception
 
void importSingleParameter (String key, String value) throws Exception
 
void putParametersToString (StringBuilder sb) throws Exception
 
boolean hasUnsavedChanges ()
 Returns the flag signaling unsaved changes. More...
 
void setUnsavedChanges (boolean val)
 Set the status of the flag signaling unsaved changes. More...
 
void showUnknownKeyWarning (Component parent, String paramType)
 Shown a warning dialog that informs the user about having found text that is not present in the ParametersForm implementation and is treated as free text. More...
 
void importParametersFromDenoptimParamsFile (String fileName) throws Exception
 
void importSingleParameter (String key, String value) throws Exception
 
void putParametersToString (StringBuilder sb) throws Exception
 
boolean hasUnsavedChanges ()
 
void setUnsavedChanges (boolean val)
 

Package Attributes

JPanel block
 
JPanel localBlock1
 
JPanel localBlock2
 
JPanel advOptsBlock
 
JPanel lineSrcOrNew
 
JRadioButton rdbSrcOrNew
 
JPanel lineFSESource
 
JLabel lblFSESource
 
JTextField txtFSESource
 
JButton btnFSESource
 
JButton btnLoadFSESource
 
String keyPar2 = "FSE-MaxLevel"
 
JPanel linePar2
 
JLabel lblPar2
 
JTextField txtPar2
 
String keyPar7 = "FSE-NumOfProcessors"
 
JPanel linePar7
 
JLabel lblPar7
 
JTextField txtPar7
 
String keyPar3 = "FSE-UIDFile"
 
JPanel linePar3
 
JLabel lblPar3
 
JTextField txtPar3
 
JButton btnPar3
 
String keyPar9 = "FSE-RootGraphs"
 
JPanel linePar9
 
JLabel lblPar9
 
JTextField txtPar9
 
JButton btnPar9
 
String keyPar8 = "FSE-Verbosity"
 
JPanel linePar8
 
JLabel lblPar8
 
JTextField txtPar8
 
String keyPar1 = "FSE-WorkDir"
 
JPanel linePar1
 
JLabel lblPar1
 
JTextField txtPar1
 
JButton btnPar1
 
String keyPar4 = "FSE-DBRootFolder"
 
JPanel linePar4
 
JLabel lblPar4
 
JTextField txtPar4
 
JButton btnPar4
 
String keyPar5 = "FSE-MaxWait"
 
JPanel linePar5
 
JLabel lblPar5
 
JTextField txtPar5
 
String keyPar6 = "FSE-WaitStep"
 
JPanel linePar6
 
JLabel lblPar6
 
JTextField txtPar6
 
String keyPar11 = "FSE-CheckPointStepLength"
 
JPanel linePar11
 
JLabel lblPar11
 
JTextField txtPar11
 
String keyPar12 = "FSE-RestartFromCheckpoint"
 
JPanel linePar12
 
JLabel lblPar12
 
JTextField txtPar12
 
JButton btnPar12
 
String NL = System.getProperty("line.separator")
 
- Package Attributes inherited from denoptim.gui.ParametersForm
final Dimension fileLabelSize = new Dimension(250,28)
 Default sizes for file pathname labels. More...
 
final int preferredHeight
 Default text field height. More...
 
final Dimension fileFieldSize = new Dimension(350,preferredHeight)
 Default sizes for file pathname fields. More...
 
final Dimension strFieldSize = new Dimension(75,preferredHeight)
 Default sizes for short pathname fields (i.e., string or number) More...
 

Private Attributes

Map< String, Object > mapKeyFieldToValueField
 Map connecting the parameter keyword and the field containing the parameter value. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 Version. More...
 

Additional Inherited Members

- Protected Member Functions inherited from denoptim.gui.ParametersForm
String getStringIfNotEmpty (String key, JTextField field, String prefix, String suffix)
 Produced the KEY:VALUE string for a general text field. More...
 
String getStringIfNotEmpty (String key, JEditorPane field, boolean multipleLines)
 Produced the KEY:VALUE string for a general text editor pane The text can include numbers, characters, or both. More...
 
String getStringIfNotEmpty (String key, JTextField field)
 Produced the KEY:VALUE string for a general text field. More...
 
String getStringForKVLine (String key, JSpinner spinner)
 Produced the KEY:VALUE string for a general spinner. More...
 
String getStringIfSelected (String key, JRadioButton btn)
 Produced the KEY:VALUE string for a on/off button. More...
 
String getStringFromTable (String key, JTable tab)
 Produced an overall string including one or more KEY:VALUE strings taken from a table. More...
 
String getStringFromTable (String key, JTable tab, boolean skipHeader)
 Produced an overall string including one or more KEY:VALUE strings taken from a table. More...
 
String getStringFromTable (String key, JTable tab, int[] fields, boolean skipHeader)
 Produced an overall string including one or more KEY:VALUE strings taken from a table. More...
 
String getStringFromTable (String key, JTable tab, int[] fields, String sep, boolean skipHeader)
 Produced an overall string including one or more KEY:VALUE strings taken from a table. More...
 
void importParametersFromDenoptimParamsFile (String fileName, String keyRoot) throws Exception
 Reads in the parameters from a text file collecting
DENOPTIM parameters in the form of KEY=VALUE lines. More...
 
void preliminatyTasksUponImportingParams ()
 Overwritten by subclasses. More...
 
void adaptVisibility ()
 Overwritten by subclasses. More...
 
void importParameterFromLine (String line) throws Exception
 
void addToUnformattedTxt (String key, String value)
 
JPanel getPanelForUnformattedInput ()
 
String getTextForUnformattedSettings ()
 
void clearUnformattedTxtArea ()
 
- Protected Attributes inherited from denoptim.gui.ParametersForm
boolean unsavedChanges = false
 Flag notifying that some data was not saved. More...
 
FieldListener fieldListener
 Listener for changes in parameters of this form. More...
 
RdbFieldChange rdbFieldChange
 Listener for changes in radio button-bound parameters. More...
 
TabFieldChange tabFieldChange
 Listener for changes in table-bound parameters. More...
 
CmbFieldChange cmbFieldChange
 Listener for changes in combo box-bound parameters. More...
 
Map< String, Boolean > checkedFlags = new HashMap<String,Boolean>()
 Map of keyword to search for when reading a parameters file. More...
 
JTextArea txtUnformattedInput = new JTextArea(5,20)
 Storage of unformatted text for input files. More...
 
boolean foundCLIOnlyContent = false
 Flag recording we have imported text containing a line that is not interpreted as a GUI-controllable parameter. More...
 

Detailed Description

Form collecting input parameters for a combinatorial/virtual screening experiment performed by FragSpaceExplorer.

Definition at line 48 of file FSEParametersForm.java.

Constructor & Destructor Documentation

◆ FSEParametersForm()

denoptim.gui.FSEParametersForm.FSEParametersForm ( Dimension  d)

Definition at line 141 of file FSEParametersForm.java.

References denoptim.gui.FSEParametersForm.advOptsBlock, denoptim.gui.FSEParametersForm.block, denoptim.gui.FSEParametersForm.btnFSESource, denoptim.gui.FSEParametersForm.btnLoadFSESource, denoptim.gui.FSEParametersForm.btnPar1, denoptim.gui.FSEParametersForm.btnPar12, denoptim.gui.FSEParametersForm.btnPar3, denoptim.gui.FSEParametersForm.btnPar4, denoptim.gui.FSEParametersForm.btnPar9, denoptim.gui.ParametersForm.fieldListener, denoptim.gui.ParametersForm.fileFieldSize, denoptim.gui.ParametersForm.fileLabelSize, denoptim.gui.FSEParametersForm.importParametersFromDenoptimParamsFile(), denoptim.gui.FSEParametersForm.keyPar1, denoptim.gui.FSEParametersForm.keyPar11, denoptim.gui.FSEParametersForm.keyPar12, denoptim.gui.FSEParametersForm.keyPar2, denoptim.gui.FSEParametersForm.keyPar3, denoptim.gui.FSEParametersForm.keyPar4, denoptim.gui.FSEParametersForm.keyPar5, denoptim.gui.FSEParametersForm.keyPar6, denoptim.gui.FSEParametersForm.keyPar7, denoptim.gui.FSEParametersForm.keyPar8, denoptim.gui.FSEParametersForm.keyPar9, denoptim.gui.FSEParametersForm.lblFSESource, denoptim.gui.FSEParametersForm.lblPar1, denoptim.gui.FSEParametersForm.lblPar11, denoptim.gui.FSEParametersForm.lblPar12, denoptim.gui.FSEParametersForm.lblPar2, denoptim.gui.FSEParametersForm.lblPar3, denoptim.gui.FSEParametersForm.lblPar4, denoptim.gui.FSEParametersForm.lblPar5, denoptim.gui.FSEParametersForm.lblPar6, denoptim.gui.FSEParametersForm.lblPar7, denoptim.gui.FSEParametersForm.lblPar8, denoptim.gui.FSEParametersForm.lblPar9, denoptim.gui.FSEParametersForm.lineFSESource, denoptim.gui.FSEParametersForm.linePar1, denoptim.gui.FSEParametersForm.linePar11, denoptim.gui.FSEParametersForm.linePar12, denoptim.gui.FSEParametersForm.linePar2, denoptim.gui.FSEParametersForm.linePar3, denoptim.gui.FSEParametersForm.linePar4, denoptim.gui.FSEParametersForm.linePar5, denoptim.gui.FSEParametersForm.linePar6, denoptim.gui.FSEParametersForm.linePar7, denoptim.gui.FSEParametersForm.linePar8, denoptim.gui.FSEParametersForm.linePar9, denoptim.gui.FSEParametersForm.lineSrcOrNew, denoptim.gui.FSEParametersForm.localBlock1, denoptim.gui.FSEParametersForm.localBlock2, denoptim.gui.FSEParametersForm.mapKeyFieldToValueField, denoptim.gui.GUIFileOpener.pickFileForTxtField(), denoptim.gui.GUIFileOpener.pickFolderForTxtField(), denoptim.gui.ParametersForm.preferredHeight, denoptim.gui.FSEParametersForm.rdbSrcOrNew, denoptim.gui.ParametersForm.strFieldSize, denoptim.gui.FSEParametersForm.txtFSESource, denoptim.gui.FSEParametersForm.txtPar1, denoptim.gui.FSEParametersForm.txtPar11, denoptim.gui.FSEParametersForm.txtPar12, denoptim.gui.FSEParametersForm.txtPar2, denoptim.gui.FSEParametersForm.txtPar3, denoptim.gui.FSEParametersForm.txtPar4, denoptim.gui.FSEParametersForm.txtPar5, denoptim.gui.FSEParametersForm.txtPar6, denoptim.gui.FSEParametersForm.txtPar7, denoptim.gui.FSEParametersForm.txtPar8, and denoptim.gui.FSEParametersForm.txtPar9.

Here is the call graph for this function:

Member Function Documentation

◆ importParametersFromDenoptimParamsFile()

void denoptim.gui.FSEParametersForm.importParametersFromDenoptimParamsFile ( String  fileName) throws Exception

Imports parameters from a properly formatted parameters file.

The file is a text file with lines containing KEY=VALUE pairs. The visibility of the blocks of content is set accordingly to the parameters.

Parameters
fileNamethe pathname of the file to read
Exceptions
Exception

Reimplemented from denoptim.gui.ParametersForm.

Definition at line 479 of file FSEParametersForm.java.

References denoptim.gui.FSEParametersForm.advOptsBlock, denoptim.gui.ParametersForm.clearUnformattedTxtArea(), denoptim.gui.FSEParametersForm.importParametersFromDenoptimParamsFile(), denoptim.gui.FSEParametersForm.localBlock1, denoptim.gui.FSEParametersForm.localBlock2, denoptim.gui.FSEParametersForm.rdbSrcOrNew, and denoptim.gui.ParametersForm.showUnknownKeyWarning().

Referenced by denoptim.gui.FSEParametersForm.FSEParametersForm(), denoptim.gui.FSEParametersForm.importParametersFromDenoptimParamsFile(), and denoptim.gui.FSEParametersForm.putParametersToString().

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

◆ importSingleParameter()

void denoptim.gui.FSEParametersForm.importSingleParameter ( String  key,
String  value 
) throws Exception

Reimplemented from denoptim.gui.ParametersForm.

Definition at line 496 of file FSEParametersForm.java.

References denoptim.gui.ParametersForm.addToUnformattedTxt(), and denoptim.gui.FSEParametersForm.mapKeyFieldToValueField.

Here is the call graph for this function:

◆ putParametersToString()

void denoptim.gui.FSEParametersForm.putParametersToString ( StringBuilder  sb) throws Exception

Member Data Documentation

◆ advOptsBlock

JPanel denoptim.gui.FSEParametersForm.advOptsBlock
package

◆ block

JPanel denoptim.gui.FSEParametersForm.block
package

◆ btnFSESource

JButton denoptim.gui.FSEParametersForm.btnFSESource
package

◆ btnLoadFSESource

JButton denoptim.gui.FSEParametersForm.btnLoadFSESource
package

◆ btnPar1

JButton denoptim.gui.FSEParametersForm.btnPar1
package

◆ btnPar12

JButton denoptim.gui.FSEParametersForm.btnPar12
package

◆ btnPar3

JButton denoptim.gui.FSEParametersForm.btnPar3
package

◆ btnPar4

JButton denoptim.gui.FSEParametersForm.btnPar4
package

◆ btnPar9

JButton denoptim.gui.FSEParametersForm.btnPar9
package

◆ keyPar1

String denoptim.gui.FSEParametersForm.keyPar1 = "FSE-WorkDir"
package

◆ keyPar11

String denoptim.gui.FSEParametersForm.keyPar11 = "FSE-CheckPointStepLength"
package

◆ keyPar12

String denoptim.gui.FSEParametersForm.keyPar12 = "FSE-RestartFromCheckpoint"
package

◆ keyPar2

String denoptim.gui.FSEParametersForm.keyPar2 = "FSE-MaxLevel"
package

◆ keyPar3

String denoptim.gui.FSEParametersForm.keyPar3 = "FSE-UIDFile"
package

◆ keyPar4

String denoptim.gui.FSEParametersForm.keyPar4 = "FSE-DBRootFolder"
package

◆ keyPar5

String denoptim.gui.FSEParametersForm.keyPar5 = "FSE-MaxWait"
package

◆ keyPar6

String denoptim.gui.FSEParametersForm.keyPar6 = "FSE-WaitStep"
package

◆ keyPar7

String denoptim.gui.FSEParametersForm.keyPar7 = "FSE-NumOfProcessors"
package

◆ keyPar8

String denoptim.gui.FSEParametersForm.keyPar8 = "FSE-Verbosity"
package

◆ keyPar9

String denoptim.gui.FSEParametersForm.keyPar9 = "FSE-RootGraphs"
package

◆ lblFSESource

JLabel denoptim.gui.FSEParametersForm.lblFSESource
package

◆ lblPar1

JLabel denoptim.gui.FSEParametersForm.lblPar1
package

◆ lblPar11

JLabel denoptim.gui.FSEParametersForm.lblPar11
package

◆ lblPar12

JLabel denoptim.gui.FSEParametersForm.lblPar12
package

◆ lblPar2

JLabel denoptim.gui.FSEParametersForm.lblPar2
package

◆ lblPar3

JLabel denoptim.gui.FSEParametersForm.lblPar3
package

◆ lblPar4

JLabel denoptim.gui.FSEParametersForm.lblPar4
package

◆ lblPar5

JLabel denoptim.gui.FSEParametersForm.lblPar5
package

◆ lblPar6

JLabel denoptim.gui.FSEParametersForm.lblPar6
package

◆ lblPar7

JLabel denoptim.gui.FSEParametersForm.lblPar7
package

◆ lblPar8

JLabel denoptim.gui.FSEParametersForm.lblPar8
package

◆ lblPar9

JLabel denoptim.gui.FSEParametersForm.lblPar9
package

◆ lineFSESource

JPanel denoptim.gui.FSEParametersForm.lineFSESource
package

◆ linePar1

JPanel denoptim.gui.FSEParametersForm.linePar1
package

◆ linePar11

JPanel denoptim.gui.FSEParametersForm.linePar11
package

◆ linePar12

JPanel denoptim.gui.FSEParametersForm.linePar12
package

◆ linePar2

JPanel denoptim.gui.FSEParametersForm.linePar2
package

◆ linePar3

JPanel denoptim.gui.FSEParametersForm.linePar3
package

◆ linePar4

JPanel denoptim.gui.FSEParametersForm.linePar4
package

◆ linePar5

JPanel denoptim.gui.FSEParametersForm.linePar5
package

◆ linePar6

JPanel denoptim.gui.FSEParametersForm.linePar6
package

◆ linePar7

JPanel denoptim.gui.FSEParametersForm.linePar7
package

◆ linePar8

JPanel denoptim.gui.FSEParametersForm.linePar8
package

◆ linePar9

JPanel denoptim.gui.FSEParametersForm.linePar9
package

◆ lineSrcOrNew

JPanel denoptim.gui.FSEParametersForm.lineSrcOrNew
package

◆ localBlock1

JPanel denoptim.gui.FSEParametersForm.localBlock1
package

◆ localBlock2

JPanel denoptim.gui.FSEParametersForm.localBlock2
package

◆ mapKeyFieldToValueField

Map<String,Object> denoptim.gui.FSEParametersForm.mapKeyFieldToValueField
private

Map connecting the parameter keyword and the field containing the parameter value.

Definition at line 60 of file FSEParametersForm.java.

Referenced by denoptim.gui.FSEParametersForm.FSEParametersForm(), and denoptim.gui.FSEParametersForm.importSingleParameter().

◆ NL

String denoptim.gui.FSEParametersForm.NL = System.getProperty("line.separator")
package

◆ rdbSrcOrNew

◆ serialVersionUID

final long denoptim.gui.FSEParametersForm.serialVersionUID = 1L
staticprivate

Version.

Definition at line 54 of file FSEParametersForm.java.

◆ txtFSESource

JTextField denoptim.gui.FSEParametersForm.txtFSESource
package

◆ txtPar1

JTextField denoptim.gui.FSEParametersForm.txtPar1
package

◆ txtPar11

JTextField denoptim.gui.FSEParametersForm.txtPar11
package

◆ txtPar12

JTextField denoptim.gui.FSEParametersForm.txtPar12
package

◆ txtPar2

JTextField denoptim.gui.FSEParametersForm.txtPar2
package

◆ txtPar3

JTextField denoptim.gui.FSEParametersForm.txtPar3
package

◆ txtPar4

JTextField denoptim.gui.FSEParametersForm.txtPar4
package

◆ txtPar5

JTextField denoptim.gui.FSEParametersForm.txtPar5
package

◆ txtPar6

JTextField denoptim.gui.FSEParametersForm.txtPar6
package

◆ txtPar7

JTextField denoptim.gui.FSEParametersForm.txtPar7
package

◆ txtPar8

JTextField denoptim.gui.FSEParametersForm.txtPar8
package

◆ txtPar9

JTextField denoptim.gui.FSEParametersForm.txtPar9
package

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