GA - 1.4.5
Utilities
Configuration
GA
NNFW
WorldSim
Total 99%
Experiments
Main Page
Related Pages
Modules
Classes
Files
File List
ga
include
core
geneticalgoui.h
1
/********************************************************************************
2
* FARSA GeneticAlgo UI *
3
* Copyright (C) 2012-2013 *
4
* Gianluca Massera <emmegian@yahoo.it> *
5
* *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
10
* *
11
* This program is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program; if not, write to the Free Software *
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19
********************************************************************************/
20
21
#ifndef GENETICALGOUI_H
22
#define GENETICALGOUI_H
23
24
#include "parametersettableui.h"
25
#include "geneticalgo.h"
26
27
namespace
farsa {
28
29
class
DataStreamsWidget;
30
31
class
GeneticAlgoUI
:
public
QObject,
public
farsa::GeneticAlgoObserver
,
public
farsa::ParameterSettableUI
{
32
Q_OBJECT
33
public
:
37
GeneticAlgoUI
(
GeneticAlgo
* component );
39
~GeneticAlgoUI
();
45
QList<farsa::ParameterSettableUIViewer>
getViewers
( QWidget* parent, Qt::WindowFlags flags );
47
void
onEndGeneration
();
48
private
slots:
50
void
fitPlotsToGenotype();
51
private
:
52
farsa::ParameterSettableUIViewer
fitnessView( QWidget* parent, Qt::WindowFlags flags );
53
54
GeneticAlgo
* ga;
55
DataStreamsWidget
* fitnessPlot;
56
};
57
58
}
// end namespace farsa
59
60
#endif