Package dsc_suite :: Package gui :: Module generator :: Class Generator
[hide private]
[frames] | no frames]

Class Generator

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        Generator

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.

Instance Methods [hide private]
 
__init__(self, dict, priority, time_check)
Uses a dictionary for the creation of new datafiles.
source code
 
run(self)
starts a new thread for the calculation of new datafiles
source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  LockObject = threading.Lock()
Properties [hide private]

Inherited from threading.Thread: daemon, ident, name

Inherited from object: __class__

Method Details [hide private]

__init__(self, dict, priority, time_check)
(Constructor)

source code 
Uses a dictionary for the creation of new datafiles.
dictionary structure:
{ index : { "init_params" : {...},
            "individual_params" : {..}}}

Overrides: object.__init__

run(self)

source code 

starts a new thread for the calculation of new datafiles

Overrides: threading.Thread.run