Interface PepperMapperController

    • Method Detail

      • join

        void join()
           throws InterruptedException
        Thread.join() Waits for this thread to die. An invocation of this method behaves in exactly the same way as the invocation join(0)
        Throws:
        InterruptedException - - if any thread has interrupted the current thread. The interrupted status of the current thread is cleared when this exception is thrown.
      • start

        void start()
        Calls method map. Delegation of Thread.start(). Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread. The result is that two threads are running concurrently: the current thread (which returns from the call to the start method) and the other thread (which executes its run method). It is never legal to start a thread more than once. In particular, a thread may not be restarted once it has completed execution.
        Throws:
        IllegalThreadStateException - - if the thread was already started.
      • setUncaughtExceptionHandler

        void setUncaughtExceptionHandler​(Thread.UncaughtExceptionHandler eh)
        Calls method map. Delegation of Thread.start(). {@inheritDoc Thread#setUncaughtExceptionHandler(java.lang.Thread. UncaughtExceptionHandler)}
      • getMappingResult

        DOCUMENT_STATUS getMappingResult()
        Returns the result of the mapping, when finished.
        Returns:
        mapping result
      • getMappingSubjects

        List<MappingSubject> getMappingSubjects()
        Returns a list of all subjects (SDocument or SCorpus) to be merged
        Returns:
        a list of MappingSubject
      • getIdentifier

        org.corpus_tools.salt.graph.Identifier getIdentifier()
        Returns Identifier object of the SCorpus or SDocument object, which is contained by containing PepperMapper.
        Returns:
      • setIdentifier

        void setIdentifier​(org.corpus_tools.salt.graph.Identifier sElementId)
        Set Identifier object of the SCorpus or SDocument object, which is contained by containing PepperMapper.
        Parameters:
        sElementId -
      • getProgress

        Double getProgress()
        This method is invoked by the containing PepperModule object, to get the current progress concerning the SDocument or SCorpus object handled by this object. A valid value return must be between 0 and 1 or null if method the PepperModule does not call the method #setProgress(Double).
        The call is just delegated to PepperMapper.getProgress()
        Parameters:
        sDocumentId - identifier of the requested SDocument object.
      • map

        void map()
        This method starts the PepperMapper object. If #getCorpus() is not null, #mapSCorpus() is called, if #getDocument() is not null, #mapSDocument() is called.
      • setPepperMapper

        void setPepperMapper​(PepperMapper pepperMapper)
        Sets the PepperMapper, controlled by this object.
        Parameters:
        pepperMapper -
      • getPermissionForProcessDoument

        boolean getPermissionForProcessDoument​(DocumentController controller)
        {@inheritDoc PepperJobImpl#getPermissionForProcessDoument(DocumentController)}