uk.ac.man.entitytagger.generate
Class GenerateAutomatons.ProcessProblem

java.lang.Object
  extended by uk.ac.man.entitytagger.generate.GenerateAutomatons.ProcessProblem
All Implemented Interfaces:
Problem<dk.brics.automaton.Automaton>
Enclosing class:
GenerateAutomatons

private class GenerateAutomatons.ProcessProblem
extends java.lang.Object
implements Problem<dk.brics.automaton.Automaton>

Class used to join several automatons together and minimize the result (put into a class to enable concurrent computations)

Author:
Martin

Field Summary
private  java.util.ArrayList<dk.brics.automaton.Automaton> automatons
           
private  boolean minimize
           
 
Constructor Summary
GenerateAutomatons.ProcessProblem(java.util.ArrayList<dk.brics.automaton.Automaton> automatons, boolean minimize)
           
 
Method Summary
 dk.brics.automaton.Automaton 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

automatons

private java.util.ArrayList<dk.brics.automaton.Automaton> automatons

minimize

private boolean minimize
Constructor Detail

GenerateAutomatons.ProcessProblem

public GenerateAutomatons.ProcessProblem(java.util.ArrayList<dk.brics.automaton.Automaton> automatons,
                                         boolean minimize)
Method Detail

compute

public dk.brics.automaton.Automaton 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<dk.brics.automaton.Automaton>
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.