$darkmode
DENOPTIM
|
A panel that allows to inspect the output of an artificial evolution experiment. More...
Classes | |
class | GenerationChoiceDialog |
Modal dialog that asks the user for a generation number. More... | |
class | PlottedCandidatesComparator |
Public Member Functions | |
GUIInspectGARun (GUIMainPanel mainPanel) | |
Constructor. More... | |
void | importGARunData (File file, JComponent parent) |
Public Member Functions inherited from denoptim.gui.GUICardPanel | |
GUICardPanel (GUIMainPanel mainPanel, String newPanelName) | |
Constructor for JPanel meant to be a single "card" in the deck of cards. More... | |
boolean | hasUnsavedChanges () |
Check for unsaved changes in the components included in this card. More... | |
Static Public Attributes | |
static AtomicInteger | evolInspectorTabUID = new AtomicInteger(1) |
Unique identified for instances of this handler. More... | |
Private Member Functions | |
void | initialize () |
Initialize the panel and add buttons. More... | |
void | readOneGeneration (File genFolder, String summaryName, int genId, Component parent, Map< Integer, double[]> popProperties) |
void | buildAndFillMonitorPlot (File runFolder, JComponent parent) |
Modal dialog to display visual examples of line colors and strokes. More... | |
List< CandidateLW > | getOverlappingItems (CandidateLW item, int maxNeighbours) |
CandidateLW | choseAmongPossiblyOverlapping (JComponent parent, List< CandidateLW > overlappingItems) |
void | renderViewWithSelectedItem (CandidateLW item) |
void | renderViewWithoutSelectedItems () |
Private Attributes | |
JPanel | ctrlPanel |
JPanel | ctrlPanelRow1 |
JPanel | ctrlPanelRow1Left |
JPanel | ctrlPanelRow1Right |
JPanel | ctrlPanelRow2Left |
JSplitPane | centralPanel |
JSplitPane | rightPanel |
JPanel | rightUpPanel |
JPanel | rightDownPanel |
MoleculeViewPanel | molViewer |
File | srcFolder |
ArrayList< CandidateLW > | allIndividuals |
int | molsWithFitness = 0 |
boolean | warnedAboutMissingCandFiles = false |
JLabel | lblTotItems |
Map< Integer, CandidateLW > | candsWithFitnessMap |
DefaultXYDataset | datasetAllFit = new DefaultXYDataset() |
DefaultXYDataset | datasetSelected = new DefaultXYDataset() |
DefaultXYDataset | datasetPopMin = new DefaultXYDataset() |
DefaultXYDataset | datasetPopMax = new DefaultXYDataset() |
DefaultXYDataset | datasetPopMean = new DefaultXYDataset() |
DefaultXYDataset | datasetPopMedian = new DefaultXYDataset() |
XYPlot | evoPlot |
JFreeChart | evoChart |
ChartPanel | evoChartPanel |
JPopupMenu | evoSeriesCheckList |
JButton | evoSeriesBtn |
Map< CounterID, DefaultXYDataset > | monitorDatasets |
XYPlot | monitorPlot |
JFreeChart | monitorChart |
ChartPanel | monitorChartPanel |
ScrollableJPupupMenu | monitorSeriesCheckList |
JButton | monitorSeriesBtn |
final String | NL = System.getProperty("line.separator") |
JButton | openSingleGraph |
Button offering the possibility to load the graph inspector for a selected item. More... | |
String | pathToSelectedItem |
Storage of pathname to the item selected in the chart. More... | |
JButton | openGeneratinGraphs |
Button offering the possibility to load the graphs of the population at a given time (i.e., generation). More... | |
JButton | openFinalPopGraphs |
Button offering the possibility to load the graphs of the final population. More... | |
Map< Integer, List< String > > | candsPerGeneration |
Pathways of population members collected by generation id. More... | |
final Color[] | colors |
Predefined list of data series colors. More... | |
final BasicStroke[] | strokes |
Predefined line strokes. More... | |
String | nameFirstMonitorSeries = "unset" |
Records the name of the first series in the monitor plot to facilitate its recovery upon chart reset. More... | |
Static Private Attributes | |
static final long | serialVersionUID = -8303012362366503382L |
Version UID. More... | |
Additional Inherited Members | |
Protected Attributes inherited from denoptim.gui.GUICardPanel | |
GUIMainPanel | mainPanel |
The main panel (cards deck) More... | |
A panel that allows to inspect the output of an artificial evolution experiment.
Definition at line 101 of file GUIInspectGARun.java.
denoptim.gui.GUIInspectGARun.GUIInspectGARun | ( | GUIMainPanel | mainPanel | ) |
Constructor.
Definition at line 253 of file GUIInspectGARun.java.
References denoptim.gui.GUIInspectGARun.evolInspectorTabUID, denoptim.gui.GUIInspectGARun.initialize(), and denoptim.gui.GUICardPanel.mainPanel.
|
private |
Modal dialog to display visual examples of line colors and strokes.
Definition at line 1245 of file GUIInspectGARun.java.
References denoptim.gui.ScrollableJPupupMenu.addCheckBox(), denoptim.gui.GUIInspectGARun.colors, denoptim.logging.CounterID.getDescription(), denoptim.logging.CounterID.getPrettyName(), denoptim.gui.GUIInspectGARun.monitorChart, denoptim.gui.GUIInspectGARun.monitorChartPanel, denoptim.gui.GUIInspectGARun.monitorDatasets, denoptim.gui.GUIInspectGARun.monitorPlot, denoptim.gui.GUIInspectGARun.monitorSeriesCheckList, denoptim.gui.GUIInspectGARun.nameFirstMonitorSeries, denoptim.io.DenoptimIO.readList(), denoptim.gui.GUIInspectGARun.rightDownPanel, denoptim.gui.GUIPreferences.showLegenInMonitorPlot, and denoptim.gui.GUIInspectGARun.strokes.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 1474 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 1417 of file GUIInspectGARun.java.
References denoptim.gui.GUIInspectGARun.allIndividuals, denoptim.gui.GUIInspectGARun.evoPlot, denoptim.graph.CandidateLW.getFitness(), denoptim.graph.CandidateLW.getGeneration(), and denoptim.graph.CandidateLW.hasFitness().
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
void denoptim.gui.GUIInspectGARun.importGARunData | ( | File | file, |
JComponent | parent | ||
) |
Definition at line 677 of file GUIInspectGARun.java.
References denoptim.gui.GUIInspectGARun.allIndividuals, denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot(), denoptim.gui.GUIInspectGARun.candsPerGeneration, denoptim.gui.GUIInspectGARun.candsWithFitnessMap, denoptim.gui.GUIPreferences.chartPointSize, denoptim.gui.GUIInspectGARun.choseAmongPossiblyOverlapping(), denoptim.gui.GUIInspectGARun.datasetAllFit, denoptim.gui.GUIInspectGARun.datasetPopMax, denoptim.gui.GUIInspectGARun.datasetPopMean, denoptim.gui.GUIInspectGARun.datasetPopMedian, denoptim.gui.GUIInspectGARun.datasetPopMin, denoptim.gui.GUIInspectGARun.datasetSelected, denoptim.gui.GUIInspectGARun.evoChart, denoptim.gui.GUIInspectGARun.evoChartPanel, denoptim.gui.GUIInspectGARun.evoPlot, denoptim.gui.GUIInspectGARun.evoSeriesCheckList, denoptim.graph.CandidateLW.getFitness(), denoptim.graph.CandidateLW.getGeneration(), denoptim.gui.GUIInspectGARun.getOverlappingItems(), denoptim.utils.GeneralUtils.getPaddedString(), denoptim.graph.CandidateLW.hasFitness(), denoptim.gui.GUIInspectGARun.lblTotItems, denoptim.gui.GUICardPanel.mainPanel, denoptim.gui.GUIInspectGARun.molsWithFitness, denoptim.gui.GUIInspectGARun.readOneGeneration(), denoptim.gui.GUIInspectGARun.renderViewWithoutSelectedItems(), denoptim.gui.GUIInspectGARun.renderViewWithSelectedItem(), denoptim.gui.GUIInspectGARun.rightUpPanel, denoptim.gui.GUIPreferences.showLegenInEvolutionPlot, and denoptim.gui.GUIInspectGARun.srcFolder.
Referenced by denoptim.gui.HomePanel.initialize(), and denoptim.gui.MainToolBar.openFile().
|
private |
Initialize the panel and add buttons.
Definition at line 266 of file GUIInspectGARun.java.
References denoptim.gui.ButtonsBar.add(), denoptim.gui.GUIMainPanel.add(), denoptim.gui.GUIInspectGARun.candsPerGeneration, denoptim.gui.GUIInspectGARun.centralPanel, denoptim.gui.GUIInspectGARun.ctrlPanel, denoptim.gui.GUIInspectGARun.ctrlPanelRow1, denoptim.gui.GUIInspectGARun.ctrlPanelRow1Left, denoptim.gui.GUIInspectGARun.ctrlPanelRow1Right, denoptim.gui.GUIInspectGARun.ctrlPanelRow2Left, denoptim.gui.GUIInspectGARun.evoPlot, denoptim.gui.GUIInspectGARun.evoSeriesBtn, denoptim.gui.GUIInspectGARun.evoSeriesCheckList, denoptim.constants.DENOPTIMConstants.FITFILENAMEEXTOUT, denoptim.gui.ScrollableJPupupMenu.getAllBChekBoxes(), denoptim.gui.Utils.getTempFile(), denoptim.gui.GUIGraphHandler.importGraphsFromFile(), denoptim.gui.GUIInspectGARun.lblTotItems, denoptim.gui.GUICardPanel.mainPanel, denoptim.files.FileUtils.mergeIntoOneFile(), denoptim.gui.GUIInspectGARun.molViewer, denoptim.gui.GUIInspectGARun.monitorPlot, denoptim.gui.GUIInspectGARun.monitorSeriesBtn, denoptim.gui.GUIInspectGARun.monitorSeriesCheckList, denoptim.gui.GUIInspectGARun.nameFirstMonitorSeries, denoptim.gui.GUIInspectGARun.openFinalPopGraphs, denoptim.gui.GUIInspectGARun.openGeneratinGraphs, denoptim.gui.GUIInspectGARun.openSingleGraph, denoptim.gui.GUIInspectGARun.pathToSelectedItem, denoptim.gui.GUIInspectGARun.rightDownPanel, denoptim.gui.GUIInspectGARun.rightPanel, denoptim.gui.GUIInspectGARun.rightUpPanel, denoptim.gui.GUIModalDialog.showDialog(), denoptim.gui.ScrollableJPupupMenu.showMenu(), and denoptim.gui.GUIInspectGARun.srcFolder.
Referenced by denoptim.gui.GUIInspectGARun.GUIInspectGARun().
|
private |
Definition at line 1048 of file GUIInspectGARun.java.
References denoptim.gui.GUIInspectGARun.allIndividuals, denoptim.gui.GUIInspectGARun.candsPerGeneration, denoptim.constants.DENOPTIMConstants.FITFILENAMEEXTOUT, denoptim.graph.CandidateLW.getGeneration(), denoptim.graph.CandidateLW.hasFitness(), denoptim.gui.GUIInspectGARun.molsWithFitness, denoptim.gui.GUIInspectGARun.NL, denoptim.gui.GUIInspectGARun.openFinalPopGraphs, denoptim.io.DenoptimIO.readLightWeightCandidate(), denoptim.io.DenoptimIO.readPopulationMemberPathnames(), denoptim.io.DenoptimIO.readPopulationMembersTraces(), denoptim.io.DenoptimIO.readPopulationProps(), denoptim.graph.CandidateLW.setGeneration(), and denoptim.gui.GUIInspectGARun.warnedAboutMissingCandFiles.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 1558 of file GUIInspectGARun.java.
References denoptim.gui.MoleculeViewPanel.clearAll(), denoptim.gui.GUIInspectGARun.datasetSelected, denoptim.gui.GUIInspectGARun.molViewer, and denoptim.gui.GUIInspectGARun.openSingleGraph.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 1531 of file GUIInspectGARun.java.
References denoptim.gui.GUIInspectGARun.datasetSelected, denoptim.gui.GUIInspectGARun.evoPlot, denoptim.graph.CandidateLW.getFitness(), denoptim.graph.CandidateLW.getGeneration(), denoptim.graph.CandidateLW.getPathToFile(), denoptim.gui.MoleculeViewPanel.loadChemicalStructureFromFile(), denoptim.gui.GUICardPanel.mainPanel, denoptim.gui.GUIInspectGARun.molViewer, denoptim.gui.GUIInspectGARun.openSingleGraph, and denoptim.gui.GUIInspectGARun.pathToSelectedItem.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 126 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.getOverlappingItems(), denoptim.gui.GUIInspectGARun.importGARunData(), and denoptim.gui.GUIInspectGARun.readOneGeneration().
|
private |
Pathways of population members collected by generation id.
This info is taken from the generation summary files, so in absence of such file for a generation, that generation will not be present here.
Definition at line 194 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData(), denoptim.gui.GUIInspectGARun.initialize(), and denoptim.gui.GUIInspectGARun.readOneGeneration().
|
private |
Definition at line 130 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 118 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Predefined list of data series colors.
Definition at line 199 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot().
|
private |
Definition at line 113 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 114 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 115 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 116 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 117 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 138 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 141 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 142 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 143 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 140 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 139 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData(), denoptim.gui.GUIInspectGARun.renderViewWithoutSelectedItems(), and denoptim.gui.GUIInspectGARun.renderViewWithSelectedItem().
|
private |
Definition at line 145 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
private |
Definition at line 146 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData().
|
static |
Unique identified for instances of this handler.
Definition at line 111 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.GUIInspectGARun().
|
private |
Definition at line 144 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.getOverlappingItems(), denoptim.gui.GUIInspectGARun.importGARunData(), denoptim.gui.GUIInspectGARun.initialize(), and denoptim.gui.GUIInspectGARun.renderViewWithSelectedItem().
|
private |
Definition at line 149 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 148 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData(), and denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 129 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData(), and denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 127 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData(), and denoptim.gui.GUIInspectGARun.readOneGeneration().
|
private |
Definition at line 122 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize(), denoptim.gui.GUIInspectGARun.renderViewWithoutSelectedItems(), and denoptim.gui.GUIInspectGARun.renderViewWithSelectedItem().
|
private |
Definition at line 155 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot().
|
private |
Definition at line 156 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot().
|
private |
Definition at line 151 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot().
|
private |
Definition at line 154 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot(), and denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 159 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 158 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot(), and denoptim.gui.GUIInspectGARun.initialize().
|
private |
Records the name of the first series in the monitor plot to facilitate its recovery upon chart reset.
Definition at line 246 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot(), and denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 162 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.readOneGeneration().
|
private |
Button offering the possibility to load the graphs of the final population.
Definition at line 187 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize(), and denoptim.gui.GUIInspectGARun.readOneGeneration().
|
private |
Button offering the possibility to load the graphs of the population at a given time (i.e., generation).
Definition at line 181 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Button offering the possibility to load the graph inspector for a selected item.
Definition at line 168 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize(), denoptim.gui.GUIInspectGARun.renderViewWithoutSelectedItems(), and denoptim.gui.GUIInspectGARun.renderViewWithSelectedItem().
|
private |
Storage of pathname to the item selected in the chart.
This is used to enable loading the graph inspector at any time after selection of the item in the chart.
Definition at line 175 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize(), and denoptim.gui.GUIInspectGARun.renderViewWithSelectedItem().
|
private |
Definition at line 121 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot(), and denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 119 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.initialize().
|
private |
Definition at line 120 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData(), and denoptim.gui.GUIInspectGARun.initialize().
|
staticprivate |
Version UID.
Definition at line 106 of file GUIInspectGARun.java.
|
private |
Definition at line 124 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.importGARunData(), and denoptim.gui.GUIInspectGARun.initialize().
|
private |
Predefined line strokes.
Definition at line 212 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot().
|
private |
Definition at line 128 of file GUIInspectGARun.java.
Referenced by denoptim.gui.GUIInspectGARun.readOneGeneration().