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.Evolife_Batch.Evolife_Batch Class Reference

Simulation in batch mode (no vizualisation) #. More...

Public Member Functions

def __init__ (self, SimulationStep, Obs)
 Stores Obs as observer and SimulationStep as the function that processes one step of the simulation. More...
 
def Simulation_stop (self)
 Stops the simulation thread. More...
 
def Simulation_launch (self, functioning_mode)
 (re)starts the simulation thread More...
 
def ReturnFromThread (self, Best)
 The simulation thread returns the best current phenotype. More...
 
def Process_graph_orders (self, BestPhenotype)
 Retrieves plot orders from observer as a list of (CurveId, Point) and add points to curves accordingly. More...
 
def Destruction (self, event=None)
 Stops the simulation and dumps data into output file. More...
 

Public Attributes

 BestResult
 
 Results
 
 Curves
 
 simulation
 
 Obs
 
 OneStep
 

Detailed Description

Simulation in batch mode (no vizualisation) #.

Launches Evolife in a non-interactive way. Useful for repetitive simulation to explore parameter space.

Definition at line 39 of file Evolife_Batch.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Evolife_Batch.Evolife_Batch.__init__ (   self,
  SimulationStep,
  Obs 
)

Stores Obs as observer and SimulationStep as the function that processes one step of the simulation.

Creates curves from Obs's CurveNames.

Definition at line 44 of file Evolife_Batch.py.

Member Function Documentation

◆ Destruction()

def Evolife.Graphics.Evolife_Batch.Evolife_Batch.Destruction (   self,
  event = None 
)

Stops the simulation and dumps data into output file.

Definition at line 95 of file Evolife_Batch.py.

◆ Process_graph_orders()

def Evolife.Graphics.Evolife_Batch.Evolife_Batch.Process_graph_orders (   self,
  BestPhenotype 
)

Retrieves plot orders from observer as a list of (CurveId, Point) and add points to curves accordingly.

Definition at line 85 of file Evolife_Batch.py.

◆ ReturnFromThread()

def Evolife.Graphics.Evolife_Batch.Evolife_Batch.ReturnFromThread (   self,
  Best 
)

The simulation thread returns the best current phenotype.

Definition at line 71 of file Evolife_Batch.py.

◆ Simulation_launch()

def Evolife.Graphics.Evolife_Batch.Evolife_Batch.Simulation_launch (   self,
  functioning_mode 
)

(re)starts the simulation thread

Definition at line 64 of file Evolife_Batch.py.

◆ Simulation_stop()

def Evolife.Graphics.Evolife_Batch.Evolife_Batch.Simulation_stop (   self)

Stops the simulation thread.

Definition at line 58 of file Evolife_Batch.py.

Member Data Documentation

◆ BestResult

Evolife.Graphics.Evolife_Batch.Evolife_Batch.BestResult

Definition at line 49 of file Evolife_Batch.py.

◆ Curves

Evolife.Graphics.Evolife_Batch.Evolife_Batch.Curves

Definition at line 51 of file Evolife_Batch.py.

◆ Obs

Evolife.Graphics.Evolife_Batch.Evolife_Batch.Obs

Definition at line 54 of file Evolife_Batch.py.

◆ OneStep

Evolife.Graphics.Evolife_Batch.Evolife_Batch.OneStep

Definition at line 55 of file Evolife_Batch.py.

◆ Results

Evolife.Graphics.Evolife_Batch.Evolife_Batch.Results

Definition at line 50 of file Evolife_Batch.py.

◆ simulation

Evolife.Graphics.Evolife_Batch.Evolife_Batch.simulation

Definition at line 53 of file Evolife_Batch.py.


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