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

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

protected class EdgeListGraphTopology.EdgeData.GenomeEvent
extends EdgeListGraphTopology.EdgeData.Event

Common abstract class for all events dealing directly with Genomes, as a GenomeVisitor. We can pass null to applyTo(Visitable) in this case, because the GenomeEvent automatically selects the genome corresponding to the current edge for application.

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)  GenomeVisitor visitor
          The visitor object that encapsulates the actuall functionality of this Event.
 
Constructor Summary
protected EdgeListGraphTopology.EdgeData.GenomeEvent()
           
 
Method Summary
 void applyTo(Visitable v)
          Applies this Event to a Visitable object.
 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

GenomeVisitor 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.GenomeEvent

protected EdgeListGraphTopology.EdgeData.GenomeEvent()
Method Detail

applyTo

public void applyTo(Visitable v)
Description copied from class: EdgeListGraphTopology.EdgeData.Event
Applies this Event to a Visitable object. The particular type of Visitable is decided at runtime.

Specified by:
applyTo in class EdgeListGraphTopology.EdgeData.Event
Parameters:
v - the Visitable object that this Event should act on.
See Also:
Applies this Event to the Genome stored in the destination node of the Edge on which this Event resides.

compareTo

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