edu.unika.aifb.owltools.evaluation
Class Solution

java.lang.Object
  extended by edu.unika.aifb.owltools.evaluation.Solution

public class Solution
extends java.lang.Object

A solution provided by an evaluation to a certain identified problem.


Field Summary
protected  java.lang.String description
          Human-readable description of the solution
protected  double preference
          How good is this solution deemed by the evaluation?
protected  java.util.List<org.semanticweb.kaon2.api.OntologyChangeEvent> solution
          The ontology change events that make up the solution
 
Constructor Summary
Solution(java.lang.String URI, java.util.List<org.semanticweb.kaon2.api.OntologyChangeEvent> whatToChange, java.lang.String whatItIs, double howGoodIsTheIdea)
          Creates a solution
 
Method Summary
 org.semanticweb.kaon2.api.Ontology apply(org.semanticweb.kaon2.api.Ontology ontology)
          Applies this solution to an ontology
 java.lang.String getDescription()
          A human-readable description of the solution proposal
 double getPreference()
          The preference for this solution.
 java.util.List<org.semanticweb.kaon2.api.OntologyChangeEvent> getSolution()
          The implementation of the solution
 java.lang.String getURI()
          The URI for this solution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solution

protected java.util.List<org.semanticweb.kaon2.api.OntologyChangeEvent> solution
The ontology change events that make up the solution


description

protected java.lang.String description
Human-readable description of the solution


preference

protected double preference
How good is this solution deemed by the evaluation? The result is in [0,1]

Constructor Detail

Solution

public Solution(java.lang.String URI,
                java.util.List<org.semanticweb.kaon2.api.OntologyChangeEvent> whatToChange,
                java.lang.String whatItIs,
                double howGoodIsTheIdea)
Creates a solution

Parameters:
URI - URI for the solution
whatToChange - A list of ontology change events that implement the solution
whatItIs - Describes the solution in a human readable way
howGoodIsTheIdea - Sets the preference for the solution. Clipped in [0,1]
Method Detail

getURI

public java.lang.String getURI()
The URI for this solution

Returns:
URI for this solution

getSolution

public java.util.List<org.semanticweb.kaon2.api.OntologyChangeEvent> getSolution()
The implementation of the solution

Returns:
A list of ontology change events that implement the solution

getDescription

public java.lang.String getDescription()
A human-readable description of the solution proposal

Returns:
Descripition of the solution proposal

getPreference

public double getPreference()
The preference for this solution. The preference is in [0,1], with 0 meaning that this solution probably won't do any good and 1 that it would lead to a perfect ontology.

Returns:
Preference for this solution

apply

public org.semanticweb.kaon2.api.Ontology apply(org.semanticweb.kaon2.api.Ontology ontology)
                                         throws org.semanticweb.kaon2.api.KAON2Exception
Applies this solution to an ontology

Parameters:
ontology - Problematic ontology
Returns:
Unproblematic ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception