public class SolverContextFactory extends Object
SolverContext corresponding to the chosen
solver.
Main entry point.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SolverContextFactory.InnerUtilFactory
Interface for completely encapsulating all accesses to a solver's package
to decouple the solver's package from the rest of the code.
|
static class |
SolverContextFactory.Solvers |
| Constructor and Description |
|---|
SolverContextFactory(Configuration pConfig,
LogManager pLogger,
ShutdownNotifier pShutdownNotifier) |
| Modifier and Type | Method and Description |
|---|---|
static SolverContext |
createSolverContext(Configuration config,
LogManager logger,
ShutdownNotifier shutdownNotifier)
Shortcut for getting a
SolverContext,
the solver is selected using configuration. |
static SolverContext |
createSolverContext(Configuration config,
LogManager logger,
ShutdownNotifier shutdownNotifier,
SolverContextFactory.Solvers solver)
Shortcut for getting a
SolverContext, the solver is selected using
an argument. |
SolverContext |
generateContext()
Create new context with solver chosen according to the supplied configuration.
|
SolverContext |
generateContext(SolverContextFactory.Solvers solverToCreate)
Create new context with solver name supplied.
|
public SolverContextFactory(Configuration pConfig, LogManager pLogger, ShutdownNotifier pShutdownNotifier) throws InvalidConfigurationException
InvalidConfigurationExceptionpublic SolverContext generateContext() throws InvalidConfigurationException
InvalidConfigurationExceptionpublic SolverContext generateContext(SolverContextFactory.Solvers solverToCreate) throws InvalidConfigurationException
InvalidConfigurationExceptionpublic static SolverContext createSolverContext(Configuration config, LogManager logger, ShutdownNotifier shutdownNotifier) throws InvalidConfigurationException
SolverContext,
the solver is selected using configuration.
See
SolverContextFactory(Configuration, LogManager, ShutdownNotifier)
for documentation of accepted parameters.
InvalidConfigurationExceptionpublic static SolverContext createSolverContext(Configuration config, LogManager logger, ShutdownNotifier shutdownNotifier, SolverContextFactory.Solvers solver) throws InvalidConfigurationException
SolverContext, the solver is selected using
an argument.
See
SolverContextFactory(Configuration, LogManager, ShutdownNotifier)
for documentation of accepted parameters.
InvalidConfigurationException