UltraScan III
List of all members | Public Types | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes
US_DMGA_Init Class Reference

#include "us_dmga_init.h"

Inheritance diagram for US_DMGA_Init:
Inheritance graph
[legend]
Collaboration diagram for US_DMGA_Init:
Collaboration graph
[legend]

Public Types

enum  attr_type {
  ATTR_S, ATTR_K, ATTR_W, ATTR_V,
  ATTR_D, ATTR_F
}
 

Signals

void valueChanged (US_Hydrosim hydro)
 
void done (void)
 
void use_db (bool DB)
 

Public Member Functions

 US_DMGA_Init ()
 Genetic Algorithm Initialize constructor. More...
 
 ~US_DMGA_Init ()
 DMGA Init destructor. More...
 
- Public Member Functions inherited from US_Widgets
 US_Widgets (bool=true, QWidget *p=0, Qt::WindowFlags f=0)
 
 ~US_Widgets (void)
 
QLabel * us_label (const QString &, int=0, int=QFont::Bold)
 
QLabel * us_textlabel (const QString &, int=-1, int=QFont::Bold)
 
QLabel * us_banner (const QString &, int=0, int=QFont::Bold)
 
QPushButton * us_pushbutton (const QString &, bool=true, int=0)
 
QTextEdit * us_textedit (void)
 
QLineEdit * us_lineedit (const QString &=0, int=-1, bool=false)
 
void us_setReadOnly (QLineEdit *, bool=true)
 
void us_setReadOnly (QTextEdit *, bool=true)
 
QListWidget * us_listwidget (int=0)
 
QGridLayout * us_checkbox (const QString &, QCheckBox *&, bool=false)
 
QGridLayout * us_radiobutton (const QString &text, QRadioButton *&rb, bool state=false)
 
QProgressBar * us_progressBar (int, int, int=0)
 
QComboBox * us_comboBox (void)
 
QLCDNumber * us_lcd (int, int=0)
 
QwtCounter * us_counter (int, double, double, double=0.0)
 
QwtPlot * us_plot (const QString &, const QString &=QString(), const QString &=QString())
 
QwtPlotGrid * us_grid (QwtPlot *)
 
QwtPlotCurve * us_curve (QwtPlot *, const QString &)
 
QwtPlotPicker * us_picker (QwtPlot *)
 
QTabWidget * us_tabwidget (int=0, int=QFont::Bold)
 
void write_plot (const QString &, const QwtPlot *)
 Write a plot file (PNG or SVG+PNG) from a plot. More...
 
int clean_etc_dir (bool=false)
 Clean install and work ./etc directories. More...
 

Protected Member Functions

virtual void timerEvent (QTimerEvent *)
 

Private Slots

void load_model (void)
 
void define_model (void)
 
void load_constraints (void)
 
void define_constraints (void)
 
void save_model (void)
 
void save_constraints (void)
 
void update_disk_db (bool)
 
void new_base_model (US_Model)
 
void help (void)
 

Private Attributes

US_Model bmodel
 
US_Model cmodel
 
US_dmGA_Constraints constraints
 
QVector
< US_dmGA_Constraints::Constraint
attribs
 
QVector
< US_dmGA_Constraints::Constraint
flt_attrs
 
QVector
< US_dmGA_Constraints::Constraint
wrk_attrs
 
US_Help showhelp
 
US_Disk_DB_Controlsdkdb_cntrls
 
int dbg_level
 
int sctm_id
 
QPushButton * pb_loadmodel
 
QPushButton * pb_loadconstr
 
QPushButton * pb_defmodel
 
QPushButton * pb_defconstr
 
QPushButton * pb_savemodel
 
QPushButton * pb_saveconstr
 
QPushButton * pb_help
 
QPushButton * pb_close
 
QLineEdit * le_status
 

Additional Inherited Members

- Static Public Member Functions inherited from US_Widgets
static QFont fixedFont (void)
 
- Public Attributes inherited from US_Widgets
US_Global g
 Connect to global memory and make the values accessible. More...
 
QPalette vlgray
 Very light gray palette for read-only line edits. More...
 

Detailed Description

Class for displaying model distributions and selecting buckets for use in Genetic Algorithm analysis

Definition at line 16 of file us_dmga_init.h.

Member Enumeration Documentation

Enumerator
ATTR_S 
ATTR_K 
ATTR_W 
ATTR_V 
ATTR_D 
ATTR_F 

Definition at line 27 of file us_dmga_init.h.

Constructor & Destructor Documentation

US_DMGA_Init::US_DMGA_Init ( )

Genetic Algorithm Initialize constructor.

Definition at line 45 of file us_dmga_init.cpp.

US_DMGA_Init::~US_DMGA_Init ( )

DMGA Init destructor.

Definition at line 129 of file us_dmga_init.cpp.

Member Function Documentation

void US_DMGA_Init::define_constraints ( void  )
privateslot

Definition at line 233 of file us_dmga_init.cpp.

void US_DMGA_Init::define_model ( void  )
privateslot

Definition at line 169 of file us_dmga_init.cpp.

void US_DMGA_Init::done ( void  )
signal

A signal that the class is complete and the passed model reference has been updated.

void US_DMGA_Init::help ( void  )
inlineprivateslot

Definition at line 79 of file us_dmga_init.h.

void US_DMGA_Init::load_constraints ( void  )
privateslot

Definition at line 196 of file us_dmga_init.cpp.

void US_DMGA_Init::load_model ( void  )
privateslot

Definition at line 138 of file us_dmga_init.cpp.

void US_DMGA_Init::new_base_model ( US_Model  new_model)
privateslot

Definition at line 451 of file us_dmga_init.cpp.

void US_DMGA_Init::save_constraints ( void  )
privateslot

Definition at line 339 of file us_dmga_init.cpp.

void US_DMGA_Init::save_model ( void  )
privateslot

Definition at line 263 of file us_dmga_init.cpp.

void US_DMGA_Init::timerEvent ( QTimerEvent *  event)
protectedvirtual

Definition at line 457 of file us_dmga_init.cpp.

void US_DMGA_Init::update_disk_db ( bool  isDB)
privateslot

Definition at line 438 of file us_dmga_init.cpp.

void US_DMGA_Init::use_db ( bool  DB)
signal

A signal to indicate that the current disk/db selection has changed. /param DB True if DB is the new selection

void US_DMGA_Init::valueChanged ( US_Hydrosim  hydro)
signal

A signal that the class is complete

Parameters
hydro- this will probably change soon

Member Data Documentation

QVector< US_dmGA_Constraints::Constraint > US_DMGA_Init::attribs
private

Definition at line 48 of file us_dmga_init.h.

US_Model US_DMGA_Init::bmodel
private

Definition at line 43 of file us_dmga_init.h.

US_Model US_DMGA_Init::cmodel
private

Definition at line 44 of file us_dmga_init.h.

US_dmGA_Constraints US_DMGA_Init::constraints
private

Definition at line 46 of file us_dmga_init.h.

int US_DMGA_Init::dbg_level
private

Definition at line 56 of file us_dmga_init.h.

US_Disk_DB_Controls* US_DMGA_Init::dkdb_cntrls
private

Definition at line 54 of file us_dmga_init.h.

QVector< US_dmGA_Constraints::Constraint > US_DMGA_Init::flt_attrs
private

Definition at line 49 of file us_dmga_init.h.

QLineEdit* US_DMGA_Init::le_status
private

Definition at line 68 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_close
private

Definition at line 66 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_defconstr
private

Definition at line 62 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_defmodel
private

Definition at line 61 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_help
private

Definition at line 65 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_loadconstr
private

Definition at line 60 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_loadmodel
private

Definition at line 59 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_saveconstr
private

Definition at line 64 of file us_dmga_init.h.

QPushButton* US_DMGA_Init::pb_savemodel
private

Definition at line 63 of file us_dmga_init.h.

int US_DMGA_Init::sctm_id
private

Definition at line 57 of file us_dmga_init.h.

US_Help US_DMGA_Init::showhelp
private

Definition at line 52 of file us_dmga_init.h.

QVector< US_dmGA_Constraints::Constraint > US_DMGA_Init::wrk_attrs
private

Definition at line 50 of file us_dmga_init.h.


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