Module: generator

From SolutionSpaceTool

This module is used to run the optimization algorithms. It provides the class Generator and starts a new thread. The priority of the thread can be set by an global function in this module. (needed modules: win32api, win32process ,win32con) The interface between the Generator and the DSC is based on dictionaries.

package gui
imported by:

Classes

class Generator(threading.Thread)

This class inherits the class Thread from the Python module threading. It must override the function run() to can be executed as a separate thread. This is necessary, because the GUI would freeze during the calculation and the OS will offer the termination of the GUI. The Generator class is just a box object for separately executed Python code. It starts the calculation of the given trials which are generated with the GUI. It defines the necessary functions for the algorithms and collects the information about the created data files.

Personal tools