def update(self, infos):
genes = [i for i in infos if isinstance(i, LearningGene)]<EOL>for gene in genes:<EOL><INDENT>if (<EOL>self.network.role == "<STR_LIT>"<EOL>and self.generation > <NUM_LIT:0><EOL>and random.random() < <NUM_LIT><EOL>):<EOL><INDENT>self.mutate(gene)<EOL><DEDENT>else:<EOL><INDENT>self.replicate(gene)<EOL><DEDENT><DEDENT>
Process received infos.