Evolife documentation

     summary     

    

******************************************************************************************
Module Evolife.Graphics.Evolife_Batch:        
=====================================
EVOLIFE: Module Evolife_Batch:
        Run Evolife without any display
******************************************************************************************


    --------------------------------------------------------------------------------------
    Function Start:        
    ==============
    SimulationStep is a function that performs a simulation step
        Obs is the observer that stores statistics
    --------------------------------------------------------------------------------------
    Arguments:
        . SimulationStep
        . Obs


    **************************************************************************************
    Class Evolife_Batch:        
    ===================
    Launches Evolife in a non-interactive way.
        Useful for repetitive simulation to explore parameter space.
    **************************************************************************************

        ----------------------------------------------------------------------------------
        Method Evolife_Batch.__init__:        
        =============================
        Stores Obs as observer
            and SimulationStep as the function that processes one step of the simulation.
            Creates curves from Obs’s CurveNames.
        ----------------------------------------------------------------------------------
        Arguments:
            . SimulationStep
            . Obs


        ----------------------------------------------------------------------------------
        Method Evolife_Batch.Simulation_stop:        
        ====================================
        Stops the simulation thread
        ----------------------------------------------------------------------------------


        ----------------------------------------------------------------------------------
        Method Evolife_Batch.Simulation_launch:        
        ======================================
        (re)starts the simulation thread
        ----------------------------------------------------------------------------------
        Arguments:
            . functioning_mode


        ----------------------------------------------------------------------------------
        Method Evolife_Batch.ReturnFromThread:        
        =====================================
        The simulation thread returns the best current phenotype
        ----------------------------------------------------------------------------------
        Arguments:
            . Best


        ----------------------------------------------------------------------------------
        Method Evolife_Batch.Process_graph_orders:        
        =========================================
        Retrieves plot orders from observer as a list of (CurveId, Point)
            and add points to curves accordingly
        ----------------------------------------------------------------------------------
        Arguments:
            . BestPhenotype


        ----------------------------------------------------------------------------------
        Method Evolife_Batch.Destruction:        
        ================================
        Stops the simulation and dumps data into output file
        ----------------------------------------------------------------------------------
        Arguments:
            . event


    

    

    Back to Evolife