public abstract class Solver extends Object
| Constructor and Description |
|---|
Solver() |
Solver(boolean addMissingVariables) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addMissingVariables() |
protected static boolean |
checkSAT(Collection<Constraint<?>> constraints,
SolverResult satResult) |
protected static Map<String,Object> |
getConcreteValues(Set<Variable<?>> variables)
Returns a mapping from variables to their current concrete values.
|
protected static Set<Variable<?>> |
getVariables(Collection<Constraint<?>> constraints)
Creates a set with all the variables in the constraints.
|
protected static void |
setConcreteValues(Set<Variable<?>> variables,
Map<String,Object> concrete_values)
Restore all concrete values of the variables using the concrete_values
mapping.
|
abstract SolverResult |
solve(Collection<Constraint<?>> constraints) |
protected boolean addMissingVariables()
public abstract SolverResult solve(Collection<Constraint<?>> constraints) throws SolverTimeoutException, IOException, SolverParseException, SolverEmptyQueryException, SolverErrorException
constraints - a constraint system to be solvedSolverTimeoutException - a timeout occurred while executing the solverIOException - an IOException occurred while executing the solverSolverParseException - the solver's result could not be parsed into a valid
SolverResultSolverEmptyQueryException - the solverSolverErrorException - the solver reported an error after its executionprotected static Map<String,Object> getConcreteValues(Set<Variable<?>> variables)
variables - protected static Set<Variable<?>> getVariables(Collection<Constraint<?>> constraints)
constraints - the constraint systemprotected static void setConcreteValues(Set<Variable<?>> variables, Map<String,Object> concrete_values)
variables - concrete_values - protected static boolean checkSAT(Collection<Constraint<?>> constraints, SolverResult satResult)
Copyright © 2010–2017 EvoSuite. All rights reserved.