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

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

abstract class EdgeListGraphTopology.EdgeData.Event
extends java.lang.Object
implements GraphTopologyEvent, java.lang.Comparable

Encapsulation class used for storing Event information inside an EdgeData object.

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.
 
Constructor Summary
EdgeListGraphTopology.EdgeData.Event()
          Default constructor for Events (should called only by subclasses).
 
Method Summary
abstract  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

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.Event

public EdgeListGraphTopology.EdgeData.Event()
Default constructor for Events (should called only by subclasses). Sets time to zero, and edgeData to null.

Method Detail

applyTo

public abstract void applyTo(Visitable v)
Applies this Event to a Visitable object. The particular type of Visitable is decided at runtime.

Parameters:
v - the Visitable object that this Event should act on.

compareTo

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