Evolife

Jean-Louis Dessalles


  1. Overall description
  2. How to execute Evolife (+ download)
  3. Evolife source files
  4. Evolife classes
  5. Evolife functions
  6. How Evolife works
  7. Create your own Evolife scenario
  8. Use Evolife’s components separately (graphics, ecology, genetic algorithm)



5. Evolife Functions (in alphabetic order)

File & function
Alliances.py accepts(self, F_perf)
Alliances.py accepts(self, performance, conservative=True)
Individual.py accident(self)
Alliances.py acquaintable(self, Offer, Partner, PartnerOffer)
Alliances.py acquaintable(self, Partner, Deal)
Evolife_Graphic.py adaptscale(self, Layout)
Curves.py add(self, Pos, Draw=True)
Parameters.py addParameter(self, Param, Value)
Learner.py adult(self)
Alliances.py affiliable(self, F_perf, conservative=True)
Alliances.py affiliable(self, perf, Guru, G_perf, conservative=True)
Individual.py aging(self, step=1)
Curves.py Avg(self, start=0)
Evolife_Graphic.py axes(self)
Evolife_Graphic.py axes(self)
Default_Scenario.py behaviour(self, best_individual, avg_individual)
Alliances.py best(self)
Alliances.py best_friend(self)
Alliances.py best_friend(self)
Alliances.py best_friend_symmetry(self)
Tools.py boost()
Parameters.py cfg_to_txt(self, CfgTxtFile)
Tools.py chances(proba, N)
Plot_Area.py Changing(self, e)
Evolife_Window.py checkButtonState(self)
Tools.py ChildrenSlide(x, Start, Low, High, Slope)
Observer.py close_(self)
Observer.py close_(self)
Evolife_Graphic.py closeEvent(self, event)
Evolife_Graphic.py closeEvent(self, event)
Evolife_Window.py closeEvent(self, event)
Evolife_Window.py closeEvent(self, event)
Evolife_Window.py closeEvent(self, event)
Alliances.py consistency(self)
Plot_Area.py convert(self, (x,y))
Plot_Area.py convert(self, Coord)
Plot_Area.py coordinates(self, Coord)
Default_Scenario.py couples(self, members)
Plot_Area.py create_agent(self, Name, Coord)
Plot_Area.py create_graphic_agent(self, Position)
Plot_Area.py create_graphic_segment(self, Position, Segment)
Population.py createGroup(self, ID=0, Size=0)
Population.py createGroup(self, ID=0, Size=0)
Group.py createIndividual(self, ID=None, Newborn=True)
Group.py createIndividual(self, Newborn=True)
Curves.py Curvenames(self, Names)
Individual.py dead(self)
Tools.py decrease(x, M, Selection)
Default_Scenario.py default_view(self)
Alliances.py detach(self)
Alliances.py detach(self)
Evolife_Graphic.py DeZoom(self)
Individual.py dies(self)
DNA.py display(self)
Evolife_Graphic.py display(self, HelpFilename)
Observer.py display(self, StorageName)
Default_Scenario.py display_(self)
Observer.py displayed(self)
Observer.py DisplayPeriod(self, Per=0)
Evolife_Window.py DisplayPeriodChanged(self, event)
Evolife_Window.py DisplayPeriodSet(self, Period, FlagForce=True)
DNA.py DNAfill(self, Nucleotides)
Plot_Area.py draw(self,oldpoint, newpoint, Width=3, ColorID=0, Tag=’’)
Plot_Area.py draw_tailed_blob(self, Coord)
Plot_Area.py drawPoints(self)
Plot_Area.py drawTo(self, newpoint, Width=3, ColorID=0, Drawing=True, Tag=’’)
Curves.py dump(self, ResultFileName=None, ResultHeader=’’, DumpStart=0)
Evolife_Graphic.py Dump_network(self, friends, CurrentFrame=-1, Prefix=’’)
Alliances.py end_friendship(self, Partner)
Default_Scenario.py end_game(self, members)
Alliances.py enters(self, newMember, performance, conservative=True)
Curves.py erase(self)
Plot_Area.py erase(self)
Tools.py error(ErrMsg, Explanation=’’)
Default_Scenario.py evaluation(self, indiv)
Curves.py EvolifeColourID(Colour_designation, default=(4,’red’))
Evolife_Window.py EvolifeWebSite(self, e)
Alliances.py exits(self, oldMember)
Learner.py explore(self, Feature, Speed)
Learner.py feature(self, F, Value=None)
Evolife_Graphic.py Field_display(self, Layout=None, Photo=False, CurrentFrame=-1, Ongoing=False, Prefix=’’)
Evolife_Graphic.py Field_scroll(self)
Evolife_Window.py FieldButtonClick(self, event)
Tools.py FileAnalysis(FileName, Pattern, Flag=re.M)
Evolife_Window.py FilmButtonClick(self, event)
Alliances.py follow(self, F, F_perf, conservative=True, Quit=None)
Alliances.py follow(self, perf, G, G_perf, conservative=True)
Alliances.py follows(self, Friend)
Alliances.py forgetAll(self)
Tools.py fortune_wheel(Probabilities)
Group.py free_ID(self, Prefix=’’)
Alliances.py friends(self)
Alliances.py Friends(self, ordered=True)
Plot_Area.py full(self)
File Function
Genetic_map.py gene_boundaries(self, gene_name)
Genetic_map.py gene_pattern(self)
Genetic_map.py gene_range(self, gene_name)
Genome.py gene_relative_value(self, name)
Genome.py gene_value(self, name)
Default_Scenario.py genemap(self)
Genetic_map.py geneMap_length(self)
Evolife_Graphic.py genome_display(self, genome=None, gene_pattern=(), Photo=False, CurrentFrame=-1, Prefix=’’)
Evolife_Window.py GenomeButtonClick(self, event)
Group.py get_average(self)
Group.py get_best(self)
Genetic_map.py get_coding(self, locus)
Observer.py get_data(self)
Observer.py get_data(self, Slot)
Observer.py get_data(self, Slot)
Observer.py get_data(self,Slot)
Observer.py get_data(self,Slot)
DNA.py get_DNA(self)
Alliances.py get_friend(self, Offer, Partner, PartnerOffer)
Alliances.py get_friend(self, Offer, Partner, Return=None)
Genetic_map.py get_gene(self,locus)
Genetic_map.py get_gene_boundaries(self,locus)
Genetic_map.py get_gene_name(self, locus)
Genetic_map.py get_gene_names(self)
Observer.py get_info(self, Slot)
Observer.py get_info(self, Slot)
Observer.py get_info(self, Slot)
Genetic_map.py get_locus(self, gene_name)
Observer.py GetPlotOrders(self)
EvolifeGray.py Gray2Int(self, GrayIndex)
Plot_Area.py grid(self)
Plot_Area.py grid(self)
Plot_Area.py grid(self)
Population.py group_splitting(self)
DNA.py hamming(self, alter)
Evolife_Window.py HelpButtonClick(self, event=None)
DNA.py hybrid(self, mother, father, number_crossover = -1)
Evolife_Graphic.py image_display(self, Image, windowResize=True)
Learner.py imitate(self, models, Feature)
Observer.py inform(self, Info)
Genetic_map.py init_genes(self,gene_list)
Plot_Area.py init_Pens(self)
EvolifeGray.py InitGrayTable(self, Length)
Default_Scenario.py initialization(self)
EvolifeGray.py Int2Gray(self,i)
Default_Scenario.py interaction(self, indiv, partner)
Evolife_Graphic.py keyPressEvent(self, e)
Evolife_Graphic.py keyPressEvent(self, e)
Evolife_Graphic.py keyPressEvent(self, e)
Evolife_Window.py keyPressEvent(self, e)
Evolife_Window.py keyPressEvent(self, e)
Group.py kill(self, memberNbr)
Group.py kill(self, memberNbr)
Curves.py last(self)
Tools.py last(self)
Learner.py Learns(self, neighbours, hot=True)
Curves.py length(self)
Tools.py Length(self)
Alliances.py lessening_friendship(self, Factor=0.9)
Alliances.py lessening_friendship(self, Factor=0.9)
Group.py life_game(self)
Population.py life_game(self)
Default_Scenario.py life_game(self, members)
Population.py limit(self)
Plot_Area.py lineTo(self, Point)
Tools.py List2File(L, FileName)
Default_Scenario.py lives(self, members)
Default_Scenario.py local_display(self, ToBeDisplayed)
Evolife_Window.py LocalButton(self, ParentFrame, ButtonType, Text, Tip, ClickFunction, ShortCutKey=None)
Genetic_map.py locus_range(self, Locus)
Genome.py locus_relative_value(self, locus)
Genome.py locus_value(self, locus)
Evolife_Window.py LogButtonClick(self, event)
Population.py lottery(self)
Alliances.py maximal(self)
Alliances.py members(self)
Population.py members(self)
Tools.py middle(x)
Population.py migration(self)
Alliances.py minimal(self)
Plot_Area.py move(self, Curve_designation, newpoint)
Plot_Area.py move_agent(self, Name, Coord)
DNA.py mutate(self, mutation_rate = -1)
Curves.py name(self, N = )
Alliances.py names(self)
Alliances.py names(self)
Tools.py Nb2A(Nb)
Tools.py Nb2A0(Nb)
Alliances.py nbFollowers(self)
Alliances.py nbFriends(self)
Alliances.py nbFriends(self)
Evolife_Graphic.py Network_display(self, Layout, network=None, Photo=False, CurrentFrame=-1, Prefix=’’)
Evolife_Window.py NetworkButtonClick(self, event)
Default_Scenario.py new_agent(self, child, parents)
Curves.py next(self)
Tools.py noise_add(x, range_)
Tools.py noise_mult(x, range_)
Parameters.py None2Default(self, ParamName, Default=0)
Parameters.py Num(x)
Individual.py observation(self, GroupExaminer)
Individual.py observation(self, GroupExaminer)
Plot_Area.py on_ground(self)
Tools.py one_value(x)
Population.py one_year(self)
Population.py one_year(self)
Evolife_Window.py OneStep(self)
Observer.py open_(self, length = -1)
Observer.py open_(self, length=-1)
Alliances.py ordered(self, ordered=True)
Observer.py Over(self)
EvolifeGray.py PaddedGray(self, i)
Plot_Area.py paintEvent(self, e)
Parameters.py Param(self, ParamName)
Observer.py Parameter(self, ParamName)
Parameters.py Parameter(self,ParamName, Silent=False, Optional=False)
Parameters.py ParamNames(self)
Parameters.py ParamValues(self)
Default_Scenario.py parents(self, candidates)
Default_Scenario.py partner(self, indiv, members)
Tools.py percent(x)
Alliances.py performance(self, Member)
Alliances.py performances(self)
Phenotype.py Phene_relative_value(self, name)
Phenotype.py Phene_value(self, name, Value = -1, Levelling = False)
Default_Scenario.py phenemap(self)
Plot_Area.py photo(self, Name, FrameNumber=-1, outputDir=’.’, extension=’png’)
Evolife_Window.py PhotoButtonClick(self, event)
Plot_Area.py plot(self, Curve_designation, newpoint, Width=3)
Plot_Area.py plot(self, Curve_id, newpoint)
Curves.py point(self)
Group.py positions(self)
Default_Scenario.py prepare(self, indiv)
Alliances.py present(self, (Member, Perf))
Evolife_Window.py Process_graph_orders(self)
Evolife_Window.py Process_graph_orders(self)
Evolife_Window.py Process_graph_orders(self)
Tools.py pull(self)
Tools.py push(self, Item)
Plot_Area.py Q_Convert(self, Point)
Alliances.py quit_(self, Friend=None)
Alliances.py quit_(self, Guru)
Evolife_Window.py QuitButtonClick(self, event)
Evolife_Graphic.py Raise(self)
Evolife_Graphic.py Raise(self)
Evolife_Window.py Raise(self)
Alliances.py rank(self, Member)
DNA.py read_DNA(self, start, end, coding = None)
Group.py receive(self, newcomer)
Observer.py recordInfo(self, Slot, Value)
Plot_Area.py redraw(self)
Plot_Area.py redraw(self)
Plot_Area.py redraw(self)
Plot_Area.py reframe(self,(x,y), Anticipation=False)
Phenotype.py relative_value(self)
Parameters.py Relevant(self, ParamName)
Parameters.py RelevantParamNames(self)
Group.py remove_(self, memberNbr)
Group.py remove_(self, memberNbr)
Default_Scenario.py remove_agent(self, agent)
Plot_Area.py remove_agent(self, Name)
Plot_Area.py remove_segment(self, Name)
Group.py reproduction(self)
Population.py reproduction(self)
Plot_Area.py rescale(Scale, coord)
Learner.py Reset(self)
Tools.py reset(self)
Observer.py reset(self, length = -1)
Observer.py reset(self, length=-1)
Plot_Area.py resize(self, w, h)
Plot_Area.py resizeEvent(self,e)
Plot_Area.py restore_agent(self, Name)
Alliances.py restore_symmetry(self)
Observer.py ResultHeader(self)
Tools.py retrieve(self)
Evolife_Window.py ReturnFromThread(self)
Evolife_Window.py ReturnFromThread(self)
Simulation_Thread.py run(self)
Evolife_Window.py RunButtonClick(self, event=None)
DNA.py save(self)
Individual.py score(self, bonus=0, FlagSet=False)
Curves.py scroll(self)
Plot_Area.py scroll(self)
Population.py season(self)
Group.py season(self, year)
Group.py season(self, year)
Default_Scenario.py season(self, year, members)
Observer.py season(self, year=None)
Population.py selectIndividual(self)
Plot_Area.py set_margins(self, Left, Right, Bottom, Top)
Observer.py setOutputDir(self, ResultDir)
Plot_Area.py setToric(self, Toric=True)
Alliances.py signature(self)
Alliances.py signature(self)
Individual.py signature(self)
Phenotype.py signature(self)
Genome.py signature(self)
Evolife_Window.py Simulation_launch(self,continuous_mode)
Evolife_Window.py Simulation_resume(self)
Evolife_Window.py Simulation_stop(self)
Alliances.py size(self)
Alliances.py size(self)
Alliances.py sizeMax(self)
Alliances.py social_signature(self)
Alliances.py social_signature(self)
Plot_Area.py speck(self, Curve_id, newpoint, Size=3)
Curves.py start(self,StartPos)
Evolife_Window.py Start(SimulationStep, Obs, Capabilities=’C’, Options=[])
Curves.py start_Curve(self, Curve_id, location)
Default_Scenario.py start_game(self, members)
Group.py statistics(self)
Observer.py statistics(self)
Observer.py statistics(self)
Observer.py statistics(self)
Observer.py statistics(self)
Population.py statistics(self, Complete=True)
Evolife_Window.py StepButtonClick(self, event=None)
Simulation_Thread.py stop(self)
Observer.py store(self, StorageName, vector, Numeric=True)
Observer.py store(self, vector)
Evolife_Window.py SWDestroyed(self, SW)
Evolife_Window.py SWDestroyed(self, SW)
Observer.py TextDisplay(self, Str=)
Observer.py TextDisplay(self, Str=)
Observer.py TextErase(self)
Evolife_Window.py TrajectoryButtonClick(self, event)
Tools.py transpose(Matrix)
Parameters.py txt_to_cfg(self,CfgTxtFile)
Genome.py update(self)
Population.py update(self, flagRanking = False)
Group.py update_(self, flagRanking = False)
Group.py update_(self, flagRanking = False)
Default_Scenario.py update_positions(self, members, groupLocation)
Plot_Area.py updateScene(self, L)
Group.py uploadDNA(self, Start)
Phenotype.py value(self, Value=-1, Levelling = False)
Observer.py Visible(self)
Default_Scenario.py wallpaper(self, Window)
Alliances.py weakening(self, Factor = 0.9)
Group.py whoIs(self, Number)
Learner.py wins(self, Points)
Alliances.py worst(self)
Curves.py X_coord(self)
Curves.py Y_coord(self)
Evolife_Graphic.py Zoom(self)