edu.umass.cs.sase.stream
Class Stream
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stream
public Stream(int size)
- Constructor
- Parameters:
size
- the size of the stream
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