public final class PythonRunner extends java.lang.Object implements ISolverRunner
Modifier and Type | Field and Description |
---|---|
private java.lang.Process |
process |
private static java.lang.String |
PYTHON_COMMAND |
private ProblemSolver |
solver |
Constructor and Description |
---|
PythonRunner(ProblemSolver solver) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminated()
Indicates if this solver running step is terminated or not.
|
void |
run(java.lang.String arguments,
java.lang.String output)
Starts the solver running step, using the given
arguments as execution input
(provided through command line arguments).
|
private static final java.lang.String PYTHON_COMMAND
private final ProblemSolver solver
private java.lang.Process process
public PythonRunner(ProblemSolver solver)
solver
- public boolean isTerminated()
isTerminated
in interface ISolverRunner
public void run(java.lang.String arguments, java.lang.String output) throws org.eclipse.core.runtime.CoreException
run
in interface ISolverRunner
arguments
- Command line arguments to provide to the runner.output
- Path of the output file on which solver output should be redirected.org.eclipse.core.runtime.CoreException
- If any error occurs during execution.