edu.uconn.mcb.lineageevolver
Class GenomeEvolver

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

public class GenomeEvolver
extends GenomeVisitor

GenomeVisitor subclass encapsulating generic 'evolution'.

Author:
Lina Pezzella, Hasan Khalil
See Also:
Genome.evolve(int)

Field Summary
private  int _substitutions
          The length of evolution that this visitor will process.
 
Constructor Summary
GenomeEvolver()
          Default constructor for Objects of type GenomeEvolver.
GenomeEvolver(int substitutions)
          Constructor specifying time for Objects of type GenomeEvolver
 
Method Summary
 void applyToGenome(Genome g)
          Induces 'evolution' on the given genome.
 void setSubstitutions(int time)
          Sets the duration of evolution for this visitor.
 
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
 

Field Detail

_substitutions

private int _substitutions
The length of evolution that this visitor will process.

Constructor Detail

GenomeEvolver

public GenomeEvolver()
Default constructor for Objects of type GenomeEvolver. Does nothing.


GenomeEvolver

public GenomeEvolver(int substitutions)
Constructor specifying time for Objects of type GenomeEvolver

Parameters:
substitutions - the number of substitutions to process.
Method Detail

applyToGenome

public void applyToGenome(Genome g)
Induces 'evolution' on the given genome. Delegates 'evolution' to the provided genome.

Specified by:
applyToGenome in class GenomeVisitor
Parameters:
g - the genome to process evolution for.
See Also:
GenomeVisitor.applyToGenome(edu.uconn.mcb.lineageevolver.Genome), Genome.evolve(int)

setSubstitutions

public void setSubstitutions(int time)
Sets the duration of evolution for this visitor.

Parameters:
time - the duration of evolution.