Skip to content
Snippets Groups Projects
Commit b2c3df88 authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

Use AuxAniamtor for Disproving

parent deb94994
Branches
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ import de.prob.exceptions.ProBException; ...@@ -39,6 +39,7 @@ import de.prob.exceptions.ProBException;
public final class Animator { public final class Animator {
private static Animator animator = new Animator(); private static Animator animator = new Animator();
private static Animator auxanimator = null;
/** /**
* *
...@@ -66,6 +67,14 @@ public final class Animator { ...@@ -66,6 +67,14 @@ public final class Animator {
return animator; return animator;
} }
public final static Animator getAuxAnimator() {
if (auxanimator == null) {
auxanimator = new Animator();
}
return auxanimator;
}
/** /**
* Terminates the current animation (forcefully!) and restarts the ProB * Terminates the current animation (forcefully!) and restarts the ProB
* core. After calling this method, all information from the current * core. After calling this method, all information from the current
......
...@@ -109,7 +109,7 @@ public class DisproverReasoner implements IReasoner { ...@@ -109,7 +109,7 @@ public class DisproverReasoner implements IReasoner {
IEventBProject evbProject = (IEventBProject) project IEventBProject evbProject = (IEventBProject) project
.getAdapter(IEventBProject.class); .getAdapter(IEventBProject.class);
ICounterExample counterExample = DisproverCommand.disprove( ICounterExample counterExample = DisproverCommand.disprove(
Animator.getAnimator(), evbProject, allHypotheses, Animator.getAuxAnimator(), evbProject, allHypotheses,
selectedHypotheses, goal, timeoutFactor, context, pm); selectedHypotheses, goal, timeoutFactor, context, pm);
// Logger.info("Disprover: Result: " + counterExample.toString()); // Logger.info("Disprover: Result: " + counterExample.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment