edu.umass.cs.sase.stream
Class Stream

java.lang.Object
  extended by edu.umass.cs.sase.stream.Stream

public class Stream
extends java.lang.Object

This class represents a stream.

Author:
haopeng

Constructor Summary
Stream(int size)
          Constructor
 
Method Summary
 int getCounter()
           
 Event[] getEvents()
           
 int getSize()
           
 Event popEvent()
           
 void setCounter(int counter)
           
 void setEvents(Event[] events)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stream

public Stream(int size)
Constructor

Parameters:
size - the size of the stream
Method Detail

popEvent

public Event popEvent()
Returns:
the next event in the stream

getEvents

public Event[] getEvents()
Returns:
the events

setEvents

public void setEvents(Event[] events)
Parameters:
events - the events to set

getSize

public int getSize()
Returns:
the size

setSize

public void setSize(int size)
Parameters:
size - the size to set

getCounter

public int getCounter()
Returns:
the counter

setCounter

public void setCounter(int counter)
Parameters:
counter - the counter to set