edu.iu.cnets.klatsch.model.basic
Class BasicEvent

java.lang.Object
  extended by edu.iu.cnets.klatsch.model.basic.BasicEvent
All Implemented Interfaces:
Event

public class BasicEvent
extends java.lang.Object
implements Event

This is a simple implementation of Event for feed types that don't need any advanced features.


Field Summary
(package private)  Edge[] edges
           
(package private)  int time
           
 
Constructor Summary
BasicEvent(int time, Edge... edges)
           
 
Method Summary
 java.util.Iterator<Edge> edges()
          Returns an iterator over the edges in this event.
 int time()
          Returns the timestamp for this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

int time

edges

Edge[] edges
Constructor Detail

BasicEvent

public BasicEvent(int time,
                  Edge... edges)
Method Detail

time

public int time()
Description copied from interface: Event
Returns the timestamp for this event.

Specified by:
time in interface Event

edges

public java.util.Iterator<Edge> edges()
Description copied from interface: Event
Returns an iterator over the edges in this event.

Specified by:
edges in interface Event