edu.uconn.mcb.lineageevolver
Class LineageVisitor

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

public abstract class LineageVisitor
extends java.lang.Object
implements Visitor

Abstract base class for all Visitors intended specifically to visit Lineages.

Author:
Lina Pezzella, Hasan Khalil

Constructor Summary
LineageVisitor()
           
 
Method Summary
 void applyTo(Visitable v)
          Applies this Visitor to the given Visitable object.
abstract  void applyToLineage(java.util.ArrayList edgeList, GraphTopology tree)
          Applies this visitor to a given Lineage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineageVisitor

public LineageVisitor()
Method Detail

applyTo

public void applyTo(Visitable v)
Description copied from interface: Visitor
Applies this Visitor to the given Visitable object.

Specified by:
applyTo in interface Visitor
Parameters:
v - the Visitable object to be visited.
See Also:
Visitor.applyTo(edu.uconn.mcb.lineageevolver.misc.Visitable)

applyToLineage

public abstract void applyToLineage(java.util.ArrayList edgeList,
                                    GraphTopology tree)
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.

Parameters:
edgeList - the list of active edges (from the Lineage).
tree - the tree that the provided Lineage is operating on.