edu.uconn.mcb.lineageevolver
Class LineageFork

java.lang.Object
  extended byedu.uconn.mcb.lineageevolver.LineageVisitor
      extended byedu.uconn.mcb.lineageevolver.LineageFork
All Implemented Interfaces:
Visitor

public class LineageFork
extends LineageVisitor

LineageVisitor subclass encapsulating the n-furcation process.

Author:
Lina Pezzella, Hasan Khalil

Field Summary
private  GraphEdge _edge
          The node to fork
 
Constructor Summary
LineageFork(GraphEdge e)
          Constructor for Objects of type LineageFork provided an edge on which to fork.
 
Method Summary
 void applyToLineage(java.util.ArrayList edgeList, GraphTopology tree)
          Applies this visitor to a given Lineage.
private  void fork(java.util.ArrayList edgeList, GraphTopology tree)
          Processes an n-furcation in the tree.
 
Methods inherited from class edu.uconn.mcb.lineageevolver.LineageVisitor
applyTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_edge

private GraphEdge _edge
The node to fork

Constructor Detail

LineageFork

public LineageFork(GraphEdge e)
Constructor for Objects of type LineageFork provided an edge on which to fork.

Parameters:
e - the edge on which to fork.
Method Detail

applyToLineage

public void applyToLineage(java.util.ArrayList edgeList,
                           GraphTopology tree)
Description copied from class: LineageVisitor
Applies this visitor to a given Lineage. The private data members that [may] need to be accessed are passed as parameters so that this visitor can access them.

Specified by:
applyToLineage in class LineageVisitor
Parameters:
edgeList - the list of active edges (from the Lineage).
tree - the tree that the provided Lineage is operating on.
See Also:
LineageVisitor.applyToLineage(ArrayList, GraphTopology)

fork

private void fork(java.util.ArrayList edgeList,
                  GraphTopology tree)
Processes an n-furcation in the tree. Copies the current genome before the fork into all new cells. Updates the array of edges in the Lineage.

Parameters:
edgeList - the array of edges (should be from the Lineage) to operate on.
tree - the topology to which the edge belongs.