package psidev.psi.mi.jami.datasource;

import psidev.psi.mi.jami.model.*;

import java.util.Iterator;

/**
 * An interaction data source allows to stream the interactors of a given datasource
 *
 * @author Marine Dumousseau (marine@ebi.ac.uk)
 * @version $Id$
 * @since <pre>18/12/12</pre>
 */

public interface StreamingInteractionSource extends MolecularInteractionDataSource{

    public Iterator<? extends InteractionEvidence> getInteractionEvidencesIterator();
    public Iterator<? extends ModelledInteraction> getModelledInteractionsIterator();
    public Iterator<? extends CooperativeInteraction> getCooperativeInteractionsIterator();
    public Iterator<? extends AllostericInteraction> getAllostericInteractionsIterator();
    public Iterator<? extends Interaction> getInteractionsIterator();
}

package psidev.psi.mi.jami.datasource;

import psidev.psi.mi.jami.model.*;

import java.util.Iterator;

/**
 * An interaction data source allows to stream the interactors of a given datasource
 *
 * @author Marine Dumousseau (marine@ebi.ac.uk)
 * @version $Id$
 * @since <pre>18/12/12</pre>
 */

public interface StreamingInteractionSource extends MolecularInteractionDataSource{

    public Iterator<? extends InteractionEvidence> getInteractionEvidencesIterator();
    public Iterator<? extends ModelledInteraction> getModelledInteractionsIterator();
    public Iterator<? extends Interaction> getInteractionsIterator();
}

Fix compilation problem with StreamingInteractionSource