org.protege.owlapi.util.SaveResultsRunnable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protege-owlapi-extensions Show documentation
Show all versions of protege-owlapi-extensions Show documentation
Extensions to the OWL API (http://owlapi.sourceforge.net/) for Protege
package org.protege.owlapi.util;
import java.util.concurrent.Callable;
public class SaveResultsRunnable implements Runnable {
private Callable call;
private X result;
private Exception exception;
public SaveResultsRunnable(Callable call) {
this.call = call;
}
public X getResult() {
return result;
}
public Exception getException() {
return exception;
}
public void run() {
try {
result = call.call();
}
catch (Exception e) {
exception = e;
}
}
}