Class Pipeline

    • Constructor Detail

      • Pipeline

        public Pipeline()
        Creates a new Pipeline object.
    • Method Detail

      • startBatch

        public void startBatch()
        Description copied from interface: IPipeline
        Starts a batch of inputs.
        Specified by:
        startBatch in interface IPipeline
      • endBatch

        public void endBatch()
        Description copied from interface: IPipeline
        Finishes a batch of inputs.
        Specified by:
        endBatch in interface IPipeline
      • addStep

        public void addStep​(IPipelineStep step)
        Description copied from interface: IPipeline
        Adds a step to this pipeline. Steps are executed in the order they are added.
        Specified by:
        addStep in interface IPipeline
        Parameters:
        step - the step to add.
      • getSteps

        public List<IPipelineStep> getSteps()
        Description copied from interface: IPipeline
        Gets the list of all steps in this pipeline.
        Specified by:
        getSteps in interface IPipeline
        Returns:
        a list of all steps in this pipeline, the list may be empty.
      • cancel

        public void cancel()
        Description copied from interface: IPipeline
        Cancels processing on this pipeline.
        Specified by:
        cancel in interface IPipeline
      • destroy

        public void destroy()
        Description copied from interface: IPipeline
        Frees all resources from all steps in this pipeline.
        Specified by:
        destroy in interface IPipeline
      • clearSteps

        public void clearSteps()
        Description copied from interface: IPipeline
        Remove all the IPipelineSteps from the pipeline. Also calls the destroy() method on each step.
        Specified by:
        clearSteps in interface IPipeline
      • getId

        public String getId()
        Description copied from interface: IPipeline
        Get the Pipelines identifier.
        Specified by:
        getId in interface IPipeline
        Returns:
        String identifier
      • setId

        public void setId​(String id)
        Description copied from interface: IPipeline
        Set the pipelines identifier.
        Specified by:
        setId in interface IPipeline
        Parameters:
        id - the new id of the pipeline.
      • update

        public void update​(IObservable o,
                           Object arg)
        Description copied from interface: IObserver
        This method is called whenever the observed object is changed.
        Specified by:
        update in interface IObserver
        Parameters:
        o - the object to be observed.
        arg - additional arguments.
      • addObserver

        public void addObserver​(IObserver observer)
        Description copied from interface: IObservable
        Attaches a observer to the Observable. After attachment the observer gets informed about changes in the Observable.
        Specified by:
        addObserver in interface IObservable
        Parameters:
        observer - The observer to attach to the observable
      • countObservers

        public int countObservers()
        Description copied from interface: IObservable
        Counts how many Observers were attached to this class.
        Specified by:
        countObservers in interface IObservable
        Returns:
        the number of Observers
        See Also:
        IObserver
      • deleteObserver

        public void deleteObserver​(IObserver observer)
        Description copied from interface: IObservable
        Detaches a previously attached observer to the observable. After detachment the observer does no longer receive change notifications from the observable.
        Specified by:
        deleteObserver in interface IObservable
        Parameters:
        observer - The observer to detach from the observable
      • notifyObservers

        public void notifyObservers()
        Description copied from interface: IObservable
        Notifies all attached observers about changes in the observable.
        Specified by:
        notifyObservers in interface IObservable
      • notifyObservers

        public void notifyObservers​(Object arg)
        Description copied from interface: IObservable
        Notifies all attached observers about changes in the observable.
        Specified by:
        notifyObservers in interface IObservable
        Parameters:
        arg - an arbitrary Object to be passed to the Observer
      • deleteObservers

        public void deleteObservers()
        Description copied from interface: IObservable
        Detaches all previously attached observer to the observable. After detachment observers do not longer receive change notifications from the observable.
        Specified by:
        deleteObservers in interface IObservable
      • getObservers

        public List<IObserver> getObservers()
        Description copied from interface: IObservable
        Returns list of observers registered with the Observable. List returned is unmodifiable list.
        Specified by:
        getObservers in interface IObservable
        Returns:
        list of observers