edu.uconn.mcb.lineageevolver.graph
Class EdgeListGraphTopology.EdgeData.LineageEvent

java.lang.Object
  extended byedu.uconn.mcb.lineageevolver.graph.EdgeListGraphTopology.EdgeData.Event
      extended byedu.uconn.mcb.lineageevolver.graph.EdgeListGraphTopology.EdgeData.LineageEvent
All Implemented Interfaces:
java.lang.Comparable, GraphTopologyEvent
Direct Known Subclasses:
EdgeListGraphTopology.EdgeData.ForkEvent
Enclosing class:
EdgeListGraphTopology.EdgeData

protected class EdgeListGraphTopology.EdgeData.LineageEvent
extends EdgeListGraphTopology.EdgeData.Event

Common abstract class for all events dealing with Lineages. We are passed the Lineage to work on.

Author:
Hasan Khalil

Field Summary
(package private)  EdgeListGraphTopology.EdgeData edgeData
          The EdgeData object corresponding to the edge on which this event resides.
(package private)  int time
          The number of time intervals along this event's edge that should be processed before this event is processed.
(package private)  LineageVisitor visitor
          The visitor object that encapsulates the actuall functionality of this Event.
 
Constructor Summary
protected EdgeListGraphTopology.EdgeData.LineageEvent()
           
 
Method Summary
 void applyTo(Visitable v)
          Applies the visitor for this Event onto the provided Visitable, which should always be a Lineage.
 int compareTo(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visitor

LineageVisitor visitor
The visitor object that encapsulates the actuall functionality of this Event.


time

int time
The number of time intervals along this event's edge that should be processed before this event is processed.


edgeData

EdgeListGraphTopology.EdgeData edgeData
The EdgeData object corresponding to the edge on which this event resides. This event is connected to an EdgeData object though this instance variable, which in turn is connected to a GraphEdge through its own instance variable. By transitivity, then, this Event is connected to a GraphEdge.

Constructor Detail

EdgeListGraphTopology.EdgeData.LineageEvent

protected EdgeListGraphTopology.EdgeData.LineageEvent()
Method Detail

applyTo

public void applyTo(Visitable v)
Applies the visitor for this Event onto the provided Visitable, which should always be a Lineage.

Specified by:
applyTo in class EdgeListGraphTopology.EdgeData.Event
Parameters:
v - the Lineage for this Event to act on.
See Also:
EdgeListGraphTopology.EdgeData.Event.applyTo(edu.uconn.mcb.lineageevolver.misc.Visitable)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)