All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unitn.disi.common.pipelines.IBasePipeline Maven / Gradle / Ivy

The newest version!
package it.unitn.disi.common.pipelines;

import it.unitn.disi.common.components.IConfigurable;
import it.unitn.disi.nlptools.components.PipelineComponentException;

/**
 * Common pipeline interface.
 *
 * @author 
 */
public interface IBasePipeline extends IConfigurable {

    /**
     * Processes an instance of E.
     *
     * @param instance an instance to process
     * @throws PipelineComponentException PipelineComponentException
     */
    void process(E instance) throws PipelineComponentException;

    /**
     * Should be called by a client before pipeline starts processing any instance of pipeline subject matter.
     *
     * @throws PipelineComponentException PipelineComponentException
     */
    void beforeProcessing() throws PipelineComponentException;

    /**
     * Should be called by a client after pipeline finished processing all instances of pipeline subject matter.
     *
     * @throws PipelineComponentException PipelineComponentException
     */
    void afterProcessing() throws PipelineComponentException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy