CompoundPye  0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
 All Classes Namespaces Functions Variables Pages
cp_GUI.RunGUI Class Reference

RunGUI initializes the graphical user interface, which enables the user to set all simulation parameters using this interface. More...

Public Member Functions

def __init__
 Called when creating a RunGUI-object. More...
 
def init_GUI
 Initializes the Qt-application; creates a MotionDetectorModel.GUI.mdm_gui.MDM_GUI object. More...
 
def apply
 Creates the Circuit (Sensors and Components) and Stimuli as specified in the respective tabs of the GUI. More...
 
def run
 Runs the simulation with Components,Sensors and Stimuli as created in RunGUI.apply and parameters as specified in the GUI. More...
 

Public Attributes

 once_applied
 False until self.apply is called for the first time. More...
 
 stimuli
 

Detailed Description

RunGUI initializes the graphical user interface, which enables the user to set all simulation parameters using this interface.

The user can then run the simulation by pressing the run-button.

Constructor & Destructor Documentation

def cp_GUI.RunGUI.__init__ (   self,
  args = [] 
)

Called when creating a RunGUI-object.

Calls RunGUI.init_GUI which initializes the Qt-based GUI.

Parameters
argsFunction arguments to be passed on to QtGui.QApplication.

Member Function Documentation

def cp_GUI.RunGUI.apply (   self)

Creates the Circuit (Sensors and Components) and Stimuli as specified in the respective tabs of the GUI.

This function is executed when the user clicks the 'apply'-button of the GUI.

def cp_GUI.RunGUI.init_GUI (   self,
  args 
)

Initializes the Qt-application; creates a MotionDetectorModel.GUI.mdm_gui.MDM_GUI object.

Parameters
argsParameters to be passed on to QtGui.QApplication.
def cp_GUI.RunGUI.run (   self)

Runs the simulation with Components,Sensors and Stimuli as created in RunGUI.apply and parameters as specified in the GUI.

This function is executed when the user hits the 'run'-button in the GUI. Note that you should hit 'apply' first after each change you do in the GUI. This function calls apply only if you never hit the 'apply'-button before in the current session.

Member Data Documentation

cp_GUI.RunGUI.once_applied

False until self.apply is called for the first time.

cp_GUI.RunGUI.stimuli
Todo:
implement discrimination between one- and two-dimensional surroundings/stimuli

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