/*
 * OutputEventIterator.java
 *
 * Created on May 22, 2006, 10:51 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package net.sf.jaer.event;

/**
 * Used to iterate over an EventPacket treated as an output packet.
 * @author tobi
 */
public interface OutputEventIterator<T extends BasicEvent> {

    /** Provide the next output event instance, which then should be copied from the input event and then modified according to function of desired operation.
     *
     * @return the next output event.
     */
    public T nextOutput();
    
    public void writeToNextOutput(T event);
    
}

@@ -541,47 +541,471 @@
    *
-%0D%0A     * @return the next output event.
+ If you want to add a new event to the output packet, call this method. %3Ccode%3EnextOutput%3C/code%3E will return a %0D%0A     * reference to a previously allocated event object (which might have been used%0D%0A     * earlier). You can then modify this event as you like, e.g. by copying the fields from another event, using  %3Ccode%3EcopyFrom%3C/code%3E.%0D%0A     *%0D%0A     * @return the next output event.%0D%0A     * @see net.sf.jaer.event.BasicEvent#copyFrom(net.sf.jaer.event.BasicEvent) 
 %0D%0A  

clarify javadoc for output event iterator