|
Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
This class combines a control panel and a space to display curves. More...


Public Member Functions | |
| def | __init__ (self, SimulationStep, Obs, Background=None) |
| Creates a plot area and displays it to the right of the control frame. More... | |
| def | LegendButtonClick (self, event=None) |
| Displays a text file named: More... | |
| def | Process_graph_orders (self) |
| Processes graph orders received from observer. More... | |
| def | dump (self, verbose=False) |
| store and print simulation results More... | |
| def | closeEvent (self, event) |
| close parent closeEvent More... | |
Public Member Functions inherited from Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame | |
| def | __init__ (self, SimulationStep, Obs, Background=None) |
| Create Control frame + displayperiod slider. More... | |
| def | DisplayPeriodChanged (self, event) |
| The displayed value varies exponentially with the slider's position. More... | |
| def | DisplayPeriodSet (self, Period, FlagForce=True) |
Public Member Functions inherited from Evolife.Graphics.Evolife_Window.Simulation_Control_Frame | |
| def | __init__ (self, SimulationStep, Obs) |
| Creates a window with buttons that is also a Simulation_Control. More... | |
| def | LocalButton (self, ParentFrame, ButtonType, Text, Tip, ClickFunction, ShortCutKey=None) |
| Creates a button. More... | |
| def | EvolifeWebSite (self, e) |
| opens Web browser with provided address More... | |
| def | HelpButtonClick (self, event=None) |
| Displays a text file named: Help.txt. More... | |
| def | QuitButtonClick (self, event) |
| closes the window More... | |
Public Member Functions inherited from Evolife.Graphics.Evolife_Window.Simulation_Control | |
| def | __init__ (self, SimulationStep, Obs, method='timer') |
| Stores Obs as observer and SimulationStep as the function that processes one step of the simulation. More... | |
| def | RunButtonClick (self, event=None) |
| Entering in 'Run' mode. More... | |
| def | StepButtonClick (self, event=None) |
| Entering in 'Step' mode. More... | |
| def | Simulation_stop (self) |
| Stops the simulation thread or timer. More... | |
| def | Simulation_launch (self, continuous_mode) |
| (re)starts the simulation thread or timer More... | |
| def | Simulation_resume (self) |
| calls Simulation_launch More... | |
| def | OneStep (self) |
| calls SimulationStep More... | |
| def | ReturnFromThread (self) |
| to be overloaded More... | |
| def | DecisionToEnd (self) |
| to be overloaded More... | |
Public Member Functions inherited from Evolife.Graphics.Evolife_Graphic.Active_Frame | |
| def | __init__ (self, AreaType=None, parent=None, control=None, image=None, width=400, height=300, zoom=1) |
| Creates a window (AreaView) with the appropriate AreaType (Draw_Area, Ground...) More... | |
| def | keyPressEvent (self, e) |
| Definition of keyboard shortcuts. More... | |
| def | Raise (self) |
| puts the window on top of display More... | |
| def | EventInterpreter (self, Event) |
| Does nothing here. More... | |
Public Member Functions inherited from Evolife.Graphics.Evolife_Graphic.AreaView | |
| def | __init__ (self, AreaType=Image_Area, parent=None, image=None, width=400, height=300, zoom=1) |
| Defining View: a window (QGraphicsView) that contains a plot area (QGraphicsScene) More... | |
| def | paintEvent (self, e) |
| calls Qt's paintEvent More... | |
| def | resizeEvent (self, e) |
| calls Qt's resizeEvent More... | |
| def | updateScene (self, L) |
| unused More... | |
| def | photo (self, Name, FrameNumber=-1, outputDir='.', extension='png') |
| takes a snapshot and saves it to a new file More... | |
| def | EventInterpreter (self, Event) |
| Does nothing here. More... | |
Public Attributes | |
| plot_area | |
| plot panel # More... | |
| PhotoMode | |
| alive | |
Public Attributes inherited from Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame | |
| lcd | |
| DisplayPeriodSlider | |
| sliderPrecision | |
| previous_Disp_period | |
| Disp_period | |
Public Attributes inherited from Evolife.Graphics.Evolife_Window.Simulation_Control_Frame | |
| Name | |
| IconName | |
| SWindows | |
| List and status of Satellite windows. More... | |
| SWindowsPreferredGeometry | |
| SWindowsMargins | |
| Finish | |
| alive | |
| PhotoMode | |
| CurrentFrame | |
| control_frame | |
| Buttons | |
| button_frame | |
| SmallButtonFrame | |
| HelpButtonFrame | |
| plot_frame | |
Public Attributes inherited from Evolife.Graphics.Evolife_Window.Simulation_Control | |
| Obs | |
| SimulationStep | |
| method | |
| timer | |
| simulation | |
| Status of the simulation programme. More... | |
| simulation_steady_mode | |
| simulation_under_way | |
| previous_Disp_period | |
| Disp_period | |
Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.Active_Frame | |
| Area | |
| Parent | |
| Control | |
| control | |
Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.AreaView | |
| Area | |
| FrameNumber | |
This class combines a control panel and a space to display curves.
Definition at line 401 of file Evolife_Window.py.
| def Evolife.Graphics.Evolife_Window.Simulation_Frame.__init__ | ( | self, | |
| SimulationStep, | |||
| Obs, | |||
Background = None |
|||
| ) |
Creates a plot area and displays it to the right of the control frame.
Reimplemented from Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.
Reimplemented in Evolife.Graphics.Evolife_Window.Evolife_Frame.
Definition at line 405 of file Evolife_Window.py.
| def Evolife.Graphics.Evolife_Window.Simulation_Frame.closeEvent | ( | self, | |
| event | |||
| ) |
close parent closeEvent
Reimplemented in Evolife.Graphics.Evolife_Window.Evolife_Frame.
Definition at line 475 of file Evolife_Window.py.
| def Evolife.Graphics.Evolife_Window.Simulation_Frame.dump | ( | self, | |
verbose = False |
|||
| ) |
store and print simulation results
Definition at line 462 of file Evolife_Window.py.
| def Evolife.Graphics.Evolife_Window.Simulation_Frame.LegendButtonClick | ( | self, | |
event = None |
|||
| ) |
Displays a text file named:
Definition at line 425 of file Evolife_Window.py.
| def Evolife.Graphics.Evolife_Window.Simulation_Frame.Process_graph_orders | ( | self | ) |
Processes graph orders received from observer.
Displays PlotData by adding points to curves and by displaying them.
Reimplemented in Evolife.Graphics.Evolife_Window.Evolife_Frame.
Definition at line 446 of file Evolife_Window.py.
| Evolife.Graphics.Evolife_Window.Simulation_Frame.alive |
Definition at line 479 of file Evolife_Window.py.
| Evolife.Graphics.Evolife_Window.Simulation_Frame.PhotoMode |
Definition at line 453 of file Evolife_Window.py.
| Evolife.Graphics.Evolife_Window.Simulation_Frame.plot_area |
plot panel #
Definition at line 415 of file Evolife_Window.py.