C# Class SharpNeatGUI.MainForm

SharpNEAT main GUI window.
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: colgreen/sharpneat

Méthodes publiques

Méthode Description
MainForm ( ) : System

Construct and initialize the form.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
CalcDistributionDataPoints ( double valArr ) : SharpNeat.Utility.Point2DDouble[]
GenerateNiceColors ( int count ) : Color[]
GetSelectedExperiment ( ) : IGuiNeatExperiment
InitProblemDomainList ( ) : void

Initialise the problem domain combobox. The list of problem domains is read from an XML file; this allows changes to be made and new domains to be plugged-in without recompiling binaries.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Gracefully handle application exit request.

ParseDouble ( TextBox txtBox, double defaultVal ) : double
ParseDouble ( TextBox txtBox ) : double?
ParseInt ( TextBox txtBox, int defaultVal ) : int
ParseInt ( TextBox txtBox ) : int?
ReadAndUpdateExperimentParams ( ) : void

Read experimental parameters from the GUI and update _selectedExperiment with the read values.

SelectFileToOpen ( string dialogTitle, string fileExtension, string filter ) : string

Ask the user for a filename / path.

SelectFileToSave ( string dialogTitle, string fileExtension, string filter ) : string

Ask the user for a filename / path.

UpdateGuiState ( ) : void
UpdateGuiState_EaReadyPaused ( ) : void

Evolution algorithm is ready/paused.

UpdateGuiState_EaRunning ( ) : void

Evolution algorithm is running.

UpdateGuiState_EaStats ( ) : void
UpdateGuiState_NoPopulation ( ) : void
UpdateGuiState_PopulationReady ( ) : void
UpdateGuiState_ResetStats ( ) : void
UpdateRankedDataPoints ( double valArr, Point2DDouble &pointArr ) : void

Updates an Point2DDouble array by sorting an array of values and copying the sorted values over the existing values in pointArr. Optionally creates the Point2DDouble array if it is null or is the wrong size.

UpdateRankedDataPoints ( int valArr, Point2DDouble &pointArr ) : void

Updates an Point2DDouble array by sorting an array of values and copying the sorted values over the existing values in pointArr. Optionally creates the Point2DDouble array if it is null or is the wrong size.

_ea_PausedEvent ( object sender, EventArgs e ) : void
_ea_UpdateEvent ( object sender, EventArgs e ) : void
aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void
bestGenomeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
btnCopyLogToClipboard_Click ( object sender, EventArgs e ) : void
btnCreateRandomPop_Click ( object sender, EventArgs e ) : void
btnExperimentInfo_Click ( object sender, EventArgs e ) : void
btnLoadDomainDefaults_Click ( object sender, EventArgs e ) : void
btnSearchReset_Click ( object sender, EventArgs e ) : void
btnSearchStart_Click ( object sender, EventArgs e ) : void
btnSearchStop_Click ( object sender, EventArgs e ) : void
cmbExperiments_SelectedIndexChanged ( object sender, EventArgs e ) : void
complexityBestMeansToolStripMenuItem_Click ( object sender, EventArgs e ) : void
evaluationsPerSecToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fitnessBestMeansToolStripMenuItem_Click ( object sender, EventArgs e ) : void
genomeComplexityByRankToolStripMenuItem_Click ( object sender, EventArgs e ) : void
genomeComplexityDistributionToolStripMenuItem_Click ( object sender, EventArgs e ) : void
genomeFitnessByRankToolStripMenuItem_Click ( object sender, EventArgs e ) : void
genomeFitnessDistributionToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadPopulationToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadSeedGenomeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadSeedGenomesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
problemDomainToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveBestGenomeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
savePopulationToolStripMenuItem_Click ( object sender, EventArgs e ) : void
specieChampComplexityByRankToolStripMenuItem_Click ( object sender, EventArgs e ) : void
specieChampFitnessByRankToolStripMenuItem_Click ( object sender, EventArgs e ) : void
specieComplexityDistributionsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
specieFitnessDistributionsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
specieSizeByRankToolStripMenuItem_Click ( object sender, EventArgs e ) : void
specieSizeDistributionToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

MainForm() public méthode

Construct and initialize the form.
public MainForm ( ) : System
Résultat System