Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Graphics.Curves.Curves Class Reference

Stores a list of 'Curves'. More...

Inheritance diagram for Evolife.Graphics.Curves.Curves:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 Creates a list of curves matching all available Evolife colours. More...
 
def start_Curve (self, Curve_id, location)
 defines where a curve should start More...
 
def CurveAddPoint (self, Curve_id, Point, Draw=True)
 Adds a point to a Curve. More...
 
def Curvenames (self, Names)
 records names for Curves. More...
 
def ActiveCurves (self)
 returns actually used curves More...
 
def Legend (self)
 returns tuples (ID, colour, colourname, curvename, legend) representing active curves More...
 
def dump (self, ResultFileName=None, ResultHeader='', DumpStart=0)
 Saves Curves to a file. More...
 

Public Attributes

 Colours
 
 Curves
 
 UsedCurves
 

Detailed Description

Stores a list of 'Curves'.

Definition at line 273 of file Curves.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Curves.Curves.__init__ (   self)

Creates a list of curves matching all available Evolife colours.

Reimplemented in Evolife.Graphics.Plot_Area.Ground, Evolife.Graphics.Plot_Area.Draw_Area, and Evolife.Graphics.Plot_Area.Plot_Area.

Definition at line 277 of file Curves.py.

Member Function Documentation

◆ ActiveCurves()

def Evolife.Graphics.Curves.Curves.ActiveCurves (   self)

returns actually used curves

Definition at line 323 of file Curves.py.

◆ CurveAddPoint()

def Evolife.Graphics.Curves.Curves.CurveAddPoint (   self,
  Curve_id,
  Point,
  Draw = True 
)

Adds a point to a Curve.

Stores the Curve as "used"

Definition at line 293 of file Curves.py.

◆ Curvenames()

def Evolife.Graphics.Curves.Curves.Curvenames (   self,
  Names 
)

records names for Curves.

Names = list of (Colour, Name, Legend) tuples (Name and Legend replaced by '' if missing)

Definition at line 301 of file Curves.py.

◆ dump()

def Evolife.Graphics.Curves.Curves.dump (   self,
  ResultFileName = None,
  ResultHeader = '',
  DumpStart = 0 
)

Saves Curves to a file.

Average values are stored in a file with '_res' appended to ResultFileName

Definition at line 334 of file Curves.py.

◆ Legend()

def Evolife.Graphics.Curves.Curves.Legend (   self)

returns tuples (ID, colour, colourname, curvename, legend) representing active curves

Definition at line 329 of file Curves.py.

◆ start_Curve()

def Evolife.Graphics.Curves.Curves.start_Curve (   self,
  Curve_id,
  location 
)

defines where a curve should start

Definition at line 285 of file Curves.py.

Member Data Documentation

◆ Colours

Evolife.Graphics.Curves.Curves.Colours

Definition at line 280 of file Curves.py.

◆ Curves

Evolife.Graphics.Curves.Curves.Curves

Definition at line 281 of file Curves.py.

◆ UsedCurves

Evolife.Graphics.Curves.Curves.UsedCurves

Definition at line 282 of file Curves.py.


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