package org.helioviewer.jhv.plugins.swek.sources.comesep;

public class ComesepEventStream {

}

@@ -56,41 +56,795 @@
 p;%0A%0A
-public class ComesepEventStream %7B
+import java.util.LinkedList;%0Aimport java.util.Queue;%0A%0Aimport org.helioviewer.jhv.data.datatype.event.JHVEvent;%0Aimport org.helioviewer.jhv.plugins.swek.sources.SWEKEventStream;%0A%0Apublic class ComesepEventStream implements SWEKEventStream %7B%0A%0A    /** Queue with events */%0A    Queue%3CJHVEvent%3E eventQueue = new LinkedList%3CJHVEvent%3E();%0A%0A    public ComesepEventStream() %7B%0A        eventQueue = new LinkedList%3CJHVEvent%3E();%0A    %7D%0A%0A    @Override%0A    public boolean hasEvents() %7B%0A        return !eventQueue.isEmpty();%0A    %7D%0A%0A    @Override%0A    public JHVEvent next() %7B%0A        return eventQueue.poll();%0A    %7D%0A%0A    @Override%0A    public boolean additionalDownloadNeeded() %7B%0A        return false;%0A    %7D%0A%0A    public void addJHVEvent(ComesepEvent currentEvent) %7B%0A        eventQueue.add(currentEvent);%0A    %7D
 %0A%0A%7D%0A

Implement the comesep event stream