Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt current runner to the portfolio #7

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Require-Bundle: org.eclipse.core.runtime,
fr.lip6.move.gal.cegar,
fr.lip6.move.gal.gal2smt,
fr.lip6.move.gal.gal2pins,
lip6.smtlib.SMT
lip6.smtlib.SMT,
fr.lip6.move.gal.itscl.concurrent;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-Vendor: LIP6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,41 @@

import java.io.IOException;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import fr.lip6.move.gal.Specification;
import fr.lip6.move.gal.itscl.interpreter.IInterpreteObservable;
import fr.lip6.move.gal.itscl.modele.IRunner;

public abstract class AbstractRunner implements IRunner {
public abstract class AbstractRunner implements IRunner {

protected Specification spec;
protected Set<String> doneProps;
protected Thread runnerThread;
public AbstractRunner() {
super();
}
protected IInterpreteObservable inRunner;

@Override
public void interrupt() {
if (runnerThread != null) {
runnerThread.interrupt();
}
public Specification getSpec() {
return spec;
}

@Override
public void join() throws InterruptedException {
if (runnerThread != null) {
runnerThread.join();
}
public void configureInterpreter(IInterpreteObservable ob) {
this.inRunner = ob;
}

@Override
public void configure(Specification z3Spec, Set<String> doneProps) throws IOException {
this.spec = z3Spec ;
this.spec = z3Spec;
this.doneProps = doneProps;
}

public void configure(Specification spec) {
try {
configure(spec, ConcurrentHashMap.newKeySet());
} catch (IOException e) {
e.printStackTrace();
}
}

public abstract void solve();

public abstract Boolean taskDone();

}
Loading