uk.ac.man.entitytagger.matching.matchers
Class ConcurrentMatcher.MatchProblem

java.lang.Object
  extended by uk.ac.man.entitytagger.matching.matchers.ConcurrentMatcher.MatchProblem
All Implemented Interfaces:
Problem<TaggedDocument>
Enclosing class:
ConcurrentMatcher

public class ConcurrentMatcher.MatchProblem
extends java.lang.Object
implements Problem<TaggedDocument>


Field Summary
private  Document doc
           
private  Matcher matcher
           
 
Constructor Summary
ConcurrentMatcher.MatchProblem(Matcher matcher, Document doc)
           
 
Method Summary
 TaggedDocument compute()
          This is the method called by the master threads, and should contain the code that should be computed concurrently.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matcher

private Matcher matcher

doc

private Document doc
Constructor Detail

ConcurrentMatcher.MatchProblem

public ConcurrentMatcher.MatchProblem(Matcher matcher,
                                      Document doc)
Method Detail

compute

public TaggedDocument compute()
Description copied from interface: Problem
This is the method called by the master threads, and should contain the code that should be computed concurrently.

Specified by:
compute in interface Problem<TaggedDocument>
Returns:
a data object representing output data from the computation that you might want to read after finished computation. If there is no such output (e.g. results are written to file), just return null.