Home | Trees | Indices | Help |
---|
|
Created on 08.06.2010 @author: Robert Fischbach @author: Tobias Heimpold This module contains several parameters for the GUI. They are provided in a "crypted" form using dictionaries and lists. That seems complicated at the first time. But: Lists and dictionaries can be easily iterated. So the code in the GUI module need not to be programmed with several controls like if elif else. For example a algorithm has different parameters, which should all stand together in one group box. The parameters have different values, step sizes etc. Without a list the GUI must handle every single parameter on its own. With a list, the GUI just reads the correct entry from the list where it is told what to do. - list of supported data structures - list of working benchmarks - list of optimization approaches - list of parameters of optimization approaches - list of data type of these parameters (linked with PyQt) - list of functions to edit parameters (linked with PyQt) - list of functions to read parameters (linked with PyQt) - list of evaluation options Hint: Linking to PyQt without import ! --> string must be run with eval(string) in main program
|
|||
DATA_STRUCTURE_LIST =
|
|||
BENCHMARK_LIST =
|
|||
OPTIMIZATION_LIST = {'Monte Carlo': [generate_monte_carlo_data this dictionary contains the different parameters of the algorithms PARAMETER_LIST[name_of_algorithm] returns a dictionary: keys : parameter name used in algorithm value : list with detailed information about parameter |
|||
PARAMETER_LIST =
this dictionary contains the different data types which are used in the algorithms and combines them with the Qt-Framework keys : used data type value : used Qt Widget |
|||
DATATYPE_LIST =
this dictionary contains the different functions to set the limits of the parameters keys : used data type value : list of functions for setting the limits |
|||
LIMITFUNCTION_LIST =
this dictionary contains the different functions to read the parameters keys : used data type --> used as cast operator value : list of functions to read the parameter |
|||
READFUNCTION_LIST =
this list contains the names of parameters which are used from every algorithm cost_criteria is replaced by the cost criteria key list in datastructure module |
|||
HEADER_LIST =
|
|||
EVALUATION_PLOT_LIST = {'Cost Distribution': [plot_cost_distri dictionary of diagram options which can be adjusted keys ... |
|||
DIAGRAM_PARAMETER_LIST =
|
|||
__package__ =
|
|||
key =
|
|
DATA_STRUCTURE_LIST
|
BENCHMARK_LIST
|
OPTIMIZATION_LISTthis dictionary contains the different parameters of the algorithms PARAMETER_LIST[name_of_algorithm] returns a dictionary: keys : parameter name used in algorithm value : list with detailed information about parameter index and refered information: 0 : data type -> see DATATYPE_LIST 1 : description for tool tip 2 : list with limits --> MUST be correlated with functions in LIMITFUNCTION_LIST ! that means: the first object in the list is used as a parameter for the first function for that datatype
|
PARAMETER_LISTthis dictionary contains the different data types which are used in the algorithms and combines them with the Qt-Framework keys : used data type value : used Qt Widget for example: to set a integer based parameter a QtSpinBox is used
|
DATATYPE_LISTthis dictionary contains the different functions to set the limits of the parameters keys : used data type value : list of functions for setting the limits MUST be correlated to the limits in PARAMETER_LIST for example: to set a integer based parameter a QtSpinBox is used
|
LIMITFUNCTION_LISTthis dictionary contains the different functions to read the parameters keys : used data type --> used as cast operator value : list of functions to read the parameter for example: to read a integer based parameter from a QSpinBox is used function value
|
READFUNCTION_LISTthis list contains the names of parameters which are used from every algorithm cost_criteria is replaced by the cost criteria key list in datastructure module
|
HEADER_LIST
|
EVALUATION_PLOT_LISTdictionary of diagram options which can be adjusted keys ... will create tabs (as first level) and group boxes all sub-levels value ... dictionary --> next level of group box, list --> information about parameter usage: similar to parameter list The DSC construts a dialog with a special layout. The first level keys create tabs. If the value referenced by the key is a dictionary, all sub-level keys will create a group box and include all next sub-level keys. If the value referenced by the key is a list, the key is a parameter and the DSC will create a PyQt item for adjustment (see DATATYPE_LIST). The other items in the list are tooltip and limits (if needed) --> see limit function list).
|
DIAGRAM_PARAMETER_LIST
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Apr 27 17:47:09 2011 | http://epydoc.sourceforge.net |