Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Classes | Functions | Variables
Evolife.Graphics.Evolife_Graphic Namespace Reference

Windows that display Genomes, Labyrinth and Social networks for Evolife. More...

Classes

class  Active_Frame
 An Active_frame reacts to basic keyboard control. More...
 
class  AreaView
 Standard canvas plus resizing capabilities. More...
 
class  Field_window
 A graphic area that displays moving agents #. More...
 
class  Genome_window
 Genome_window: An image area that displays binary genomes. More...
 
class  Help_window
 Displays a text file supposed to provide help. More...
 
class  Image_window
 Image_window: Merely contains an image area. More...
 
class  Legend_window
 displays legend for curves More...
 
class  Network_window
 Network_window: A drawing area that displays social links The population is displayed twice, on two horizontal axes. More...
 
class  Satellite_window
 Satellite windows are floating windows with zooming abilities. More...
 
class  Trajectory_window
 Synonymous for Field_window. More...
 
class  ViewEvent
 Structure of Events #. More...
 

Functions

def Dump_network (self, friends, CurrentFrame=-1, Prefix='')
 if len(self.friends[friend]) and individual == self.friends[friend][0]: self.plot(6, (positions[friend][0],self.scaleY), 3) else: More...
 

Variables

 grabWidget = QtWidgets.QWidget.grab
 

Detailed Description

Windows that display Genomes, Labyrinth and Social networks for Evolife.

Useful classes are:
- Genome_window:  An image area that displays binary genomes
- Network_window: A drawing area that displays social links
- Field_window:   A drawing area that displays agent movements

Function Documentation

◆ Dump_network()

def Evolife.Graphics.Evolife_Graphic.Dump_network (   self,
  friends,
  CurrentFrame = -1,
  Prefix = '' 
)

if len(self.friends[friend]) and individual == self.friends[friend][0]: self.plot(6, (positions[friend][0],self.scaleY), 3) else:

changing thickness of asymmetrical links

self.plot(6, (positions[friend][0],self.scaleY), 1)

stores social links into a matrix written into a file

Definition at line 409 of file Evolife_Graphic.py.

Variable Documentation

◆ grabWidget

Evolife.Graphics.Evolife_Graphic.grabWidget = QtWidgets.QWidget.grab

Definition at line 32 of file Evolife_Graphic.py.