de.unima.alcomox.algorithms
Class AlcomoExtraction

java.lang.Object
  extended by de.unima.alcomox.algorithms.AlcomoExtraction
Direct Known Subclasses:
AStarSearch, ConflictSearch, Greedy, GreedyMinimize, HungarianSearch

public abstract class AlcomoExtraction
extends java.lang.Object


Field Summary
protected  Mapping activeMapping
           
protected  ExtractionProblem extractionProblem
           
protected  Mapping inactiveMapping
           
protected  AlcomoLogger log
           
protected  Mapping mapping
           
protected  LocalOntology sourceOntology
           
protected  LocalOntology targetOntology
           
protected  int typeOfReasoning
           
 
Constructor Summary
AlcomoExtraction(ExtractionProblem extractionProblem)
          Constructs an algorithm for solving an extraction problem.
 
Method Summary
 Mapping getActiveMapping()
          Returns the activated mapping (also referred to as the extracted mapping).
 Mapping getInactiveMapping()
          Returns the deactivated mapping (also referred to as the thrown, removed or rejected mapping).
protected  boolean hasBeenInterrupted()
          Checks for an interrupt, stores current results and stops computation.
abstract  void run()
          Solves the eaxtraction problem by selecting a part of the mapping as activated and the remainder as inactive.
 void setMapping(Mapping mapping)
           
 void setSourceOntology(LocalOntology sourceOntology)
           
 void setTargetOntology(LocalOntology targetOntology)
           
 boolean terminatedCorrectly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extractionProblem

protected ExtractionProblem extractionProblem

sourceOntology

protected LocalOntology sourceOntology

targetOntology

protected LocalOntology targetOntology

mapping

protected Mapping mapping

activeMapping

protected Mapping activeMapping

inactiveMapping

protected Mapping inactiveMapping

typeOfReasoning

protected int typeOfReasoning

log

protected AlcomoLogger log
Constructor Detail

AlcomoExtraction

public AlcomoExtraction(ExtractionProblem extractionProblem)
Constructs an algorithm for solving an extraction problem.

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

run

public abstract void run()
                  throws AlcomoException
Solves the eaxtraction problem by selecting a part of the mapping as activated and the remainder as inactive.

Throws:
AlcomoException

getActiveMapping

public Mapping getActiveMapping()
Returns the activated mapping (also referred to as the extracted mapping).

Returns:
The activated mapping.

getInactiveMapping

public Mapping getInactiveMapping()
Returns the deactivated mapping (also referred to as the thrown, removed or rejected mapping).

Returns:
The inactive mapping.

setSourceOntology

public void setSourceOntology(LocalOntology sourceOntology)
Parameters:
sourceOntology - The source ontology.

setTargetOntology

public void setTargetOntology(LocalOntology targetOntology)
Parameters:
targetOntology - The target ontology.

setMapping

public void setMapping(Mapping mapping)
Parameters:
mapping - The mapping that the algorithm extracts from.

hasBeenInterrupted

protected boolean hasBeenInterrupted()
Checks for an interrupt, stores current results and stops computation.

Returns:
True, if the thread has been interrupted; false otherwise.

terminatedCorrectly

public boolean terminatedCorrectly()
Returns:
True if the algorithm has not yet been run or if it has been run and correctly terminated without an interrupt.