edu.uconn.mcb.lineageevolver
Class GeneKiller

java.lang.Object
  extended byedu.uconn.mcb.lineageevolver.GenomeVisitor
      extended byedu.uconn.mcb.lineageevolver.GeneKiller
All Implemented Interfaces:
Visitor

public class GeneKiller
extends GenomeVisitor

GenomeVisitor subclass encapsulating gene death functionality.

Author:
Lina Pezzella, Hasan Khalil

Constructor Summary
GeneKiller()
           
 
Method Summary
 void applyToGenome(Genome g)
          Processes gene death on the provided genome.
 
Methods inherited from class edu.uconn.mcb.lineageevolver.GenomeVisitor
applyTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneKiller

public GeneKiller()
Method Detail

applyToGenome

public void applyToGenome(Genome g)
Processes gene death on the provided genome. Selects a genome randomly, weighted using gene evolution speeds, then delegates to Genome.killGene() for the actual murder.

Specified by:
applyToGenome in class GenomeVisitor
Parameters:
g - the genome from which a gene should die.
See Also:
Visitor.applyTo(edu.uconn.mcb.lineageevolver.misc.Visitable), Genome.getGeneEvolutionSpeeds(), Genome.killGene(int)