abstract class AbstractSolverType extends Object implements SolverType
| Modifier and Type | Field and Description |
|---|---|
private boolean |
installWasChecked |
private boolean |
isInstalled |
private boolean |
isSupportedVersion |
private String |
solverCommand |
private String |
solverParameters |
private String |
solverVersion |
private boolean |
supportHasBeenChecked |
ALL_SOLVERS, CVC3_SOLVER, CVC4_SOLVER, SIMPLIFY_SOLVER, YICES_SOLVER, Z3_CE_SOLVER, Z3_SOLVER| Constructor and Description |
|---|
AbstractSolverType() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
checkEnvVariable(String cmd) |
boolean |
checkForSupport()
Checks for support and returns the result.
|
String |
getRawVersion()
Retrieve the version string without check for support.
|
String |
getSolverCommand()
the command for starting the solver.
|
String |
getSolverParameters()
The currently used parameters for the solver.
|
String |
getVersion()
Returns the current version that is installed, if it has already been checked, otherwise null.
|
boolean |
isInstalled(boolean recheck)
check, if this solver is installed and can be used.
|
static boolean |
isInstalled(String cmd) |
boolean |
isSupportedVersion()
Returns whether the currently installed version is supported.
|
String |
modifyProblem(String problem)
Directly before the problem description is sent to the solver one can modify the problem string by using
this method.
|
void |
setSolverCommand(String s) |
void |
setSolverParameters(String s) |
boolean |
supportHasBeenChecked()
returns true if and only if the support has been checked for the currently installed solver.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateSolver, createTranslator, getDefaultSolverCommand, getDefaultSolverParameters, getDelimiters, getInfo, getName, getSupportedVersions, getVersionParameter, supportsIfThenElseprivate boolean installWasChecked
private boolean isInstalled
private String solverParameters
private String solverCommand
private String solverVersion
private boolean isSupportedVersion
private boolean supportHasBeenChecked
public static boolean isInstalled(String cmd)
public boolean isInstalled(boolean recheck)
isInstalled in interface SolverTyperecheck - if false, the solver is not checked again, if a cached
value for this exists.private static boolean checkEnvVariable(String cmd)
public boolean checkForSupport()
SolverTypecheckForSupport in interface SolverTypepublic boolean supportHasBeenChecked()
SolverTypesupportHasBeenChecked in interface SolverTypepublic boolean isSupportedVersion()
SolverTypeisSupportedVersion in interface SolverTypepublic String getSolverParameters()
SolverTypegetSolverParameters in interface SolverTypepublic void setSolverParameters(String s)
setSolverParameters in interface SolverTypepublic void setSolverCommand(String s)
setSolverCommand in interface SolverTypepublic final String getSolverCommand()
SolverTypegetSolverCommand in interface SolverTypepublic String getVersion()
SolverTypegetVersion in interface SolverTypepublic String getRawVersion()
SolverTypegetRawVersion in interface SolverTypepublic String modifyProblem(String problem)
SolverTypemodifyProblem in interface SolverType