Module fr.univartois.cril.juniverse
Interface IUniverseSolverFactory
public interface IUniverseSolverFactory
The IUniverseSolverFactory defines an abstract factory for instantiating solvers
implementing different interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a CSP solver implementing JUniverse's interface.Creates a pseudo-Boolean solver implementing JUniverse's interface.Creates a SAT solver implementing JUniverse's interface.toString()
Gives a String representation of this factory, allowing to easily identify which solvers are instantiated by this factory.
-
Method Details
-
createSatSolver
IUniverseSatSolver createSatSolver()Creates a SAT solver implementing JUniverse's interface.- Returns:
- The created solver.
-
createPseudoBooleanSolver
IUniversePseudoBooleanSolver createPseudoBooleanSolver()Creates a pseudo-Boolean solver implementing JUniverse's interface.- Returns:
- The created solver.
-
createCspSolver
IUniverseCSPSolver createCspSolver()Creates a CSP solver implementing JUniverse's interface.- Returns:
- The created solver.
-
toString
String toString()Gives a String representation of this factory, allowing to easily identify which solvers are instantiated by this factory. All implementations of IUniverseSolverFactory should redefinetoString()
.
-