de.unima.alcomox.algorithms
Class Greedy

java.lang.Object
  extended by de.unima.alcomox.algorithms.AlcomoExtraction
      extended by de.unima.alcomox.algorithms.Greedy

public class Greedy
extends AlcomoExtraction

A greedy algoritm to solve an extraction problem. In some publication referred to as naive descending.


Field Summary
 
Fields inherited from class de.unima.alcomox.algorithms.AlcomoExtraction
activeMapping, extractionProblem, inactiveMapping, log, mapping, sourceOntology, targetOntology, typeOfReasoning
 
Constructor Summary
Greedy(ExtractionProblem extractionProblem)
          Constructs a greedy algorithm for solving the extraction problem.
 
Method Summary
 void run()
          Solves the eaxtraction problem by selecting a part of the mapping as activated and the remainder as inactive.
 
Methods inherited from class de.unima.alcomox.algorithms.AlcomoExtraction
getActiveMapping, getInactiveMapping, hasBeenInterrupted, setMapping, setSourceOntology, setTargetOntology, terminatedCorrectly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Greedy

public Greedy(ExtractionProblem extractionProblem)
Constructs a greedy algorithm for solving the extraction problem.

Parameters:
extractionProblem - The problem to be solved.
Method Detail

run

public void run()
         throws AlcomoException
Description copied from class: AlcomoExtraction
Solves the eaxtraction problem by selecting a part of the mapping as activated and the remainder as inactive.

Specified by:
run in class AlcomoExtraction
Throws:
AlcomoException
See Also:
AlcomoExtraction.run()