Pepper 3.7.0
A highly extensible plattform for conversion and
|
The interface PepperMapperController
is a communicator class between a PepperModule
and a PepperMapper
object.
More...
Inherits Runnable.
Public Member Functions | |
void | join () throws InterruptedException |
Thread#join() Waits for this thread to die. | |
void | start () |
Calls method map. | |
void | setUncaughtExceptionHandler (Thread.UncaughtExceptionHandler eh) |
Calls method map. | |
DOCUMENT_STATUS | getMappingResult () |
Returns the result of the mapping, when finished. | |
List< MappingSubject > | getMappingSubjects () |
Returns a list of all subjects (SDocument or SCorpus ) to be merged. | |
Identifier | getIdentifier () |
Returns Identifier object of the SCorpus or SDocument object, which is contained by containing PepperMapper . | |
void | setIdentifier (Identifier sElementId) |
Set Identifier object of the SCorpus or SDocument object, which is contained by containing PepperMapper . | |
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. | |
void | map () |
This method starts the PepperMapper object. | |
void | setPepperMapper (PepperMapper pepperMapper) |
Sets the PepperMapper , controlled by this object. | |
PepperMapper | getPepperMapper () |
Returns the PepperMapper , controlled by this object. | |
void | setPepperModule (PepperModule pepperModule) |
Sets the PepperModule object, which contains the PepperMapperController as a callback reference. | |
boolean | getPermissionForProcessDoument (DocumentController controller) |
{@inheritDoc PepperJobImpl::getPermissionForProcessDoument(DocumentController)} | |
The interface PepperMapperController
is a communicator class between a PepperModule
and a PepperMapper
object.
The aim of this class is to provide some fields, which can be set by the PepperMapper
and be read by the PepperModule
object. It does not contain any reference to the PepperMapper
object. This mechanism is used, to make sure that in case of a forgotten clean up, the PepperMapper
object can be removed by the java garbage collector and does not overfill the main memory.
Identifier org.corpus_tools.pepper.modules.PepperMapperController.getIdentifier | ( | ) |
Returns Identifier
object of the SCorpus
or SDocument
object, which is contained by containing PepperMapper
.
DOCUMENT_STATUS org.corpus_tools.pepper.modules.PepperMapperController.getMappingResult | ( | ) |
Returns the result of the mapping, when finished.
List< MappingSubject > org.corpus_tools.pepper.modules.PepperMapperController.getMappingSubjects | ( | ) |
Returns a list of all subjects (SDocument
or SCorpus
) to be merged.
MappingSubject
PepperMapper org.corpus_tools.pepper.modules.PepperMapperController.getPepperMapper | ( | ) |
Returns the PepperMapper
, controlled by this object.
Double org.corpus_tools.pepper.modules.PepperMapperController.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()
sDocumentId | identifier of the requested SDocument object. |
void org.corpus_tools.pepper.modules.PepperMapperController.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)
InterruptedException |
|
void org.corpus_tools.pepper.modules.PepperMapperController.map | ( | ) |
This method starts the PepperMapper
object.
If getCorpus()
is not null, mapSCorpus()
is called, if getDocument()
is not null, mapSDocument()
is called.
void org.corpus_tools.pepper.modules.PepperMapperController.setIdentifier | ( | Identifier | sElementId | ) |
Set Identifier
object of the SCorpus
or SDocument
object, which is contained by containing PepperMapper
.
sElementId |
void org.corpus_tools.pepper.modules.PepperMapperController.setPepperMapper | ( | PepperMapper | pepperMapper | ) |
Sets the PepperMapper
, controlled by this object.
pepperMapper |
void org.corpus_tools.pepper.modules.PepperMapperController.setPepperModule | ( | PepperModule | pepperModule | ) |
Sets the PepperModule
object, which contains the PepperMapperController
as a callback reference.
This is necessary, that the PepperMapperController
can notify the containing object that its job is done via calling PepperModule#done(PepperMapperController)
pepperModule | containing PepperModule object |
void org.corpus_tools.pepper.modules.PepperMapperController.setUncaughtExceptionHandler | ( | Thread.UncaughtExceptionHandler | eh | ) |
Calls method map.
Delegation of Thread#start()
.
{@inheritDoc Thread::setUncaughtExceptionHandler(java.lang.Thread. UncaughtExceptionHandler)}
void org.corpus_tools.pepper.modules.PepperMapperController.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.
IllegalThreadStateException |
|