Package org.sosy_lab.java_smt
Class SolverContextFactory
- java.lang.Object
-
- org.sosy_lab.java_smt.SolverContextFactory
-
public class SolverContextFactory extends Object
Factory class for loading and generating solver contexts. Generates aSolverContextcorresponding to the chosen solver.Main entry point for JavaSMT.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSolverContextFactory.InnerUtilFactoryInterface for completely encapsulating all accesses to a solver's package to decouple the solver's package from the rest of the code.static classSolverContextFactory.Solvers
-
Constructor Summary
Constructors Constructor Description SolverContextFactory(Configuration pConfig, LogManager pLogger, ShutdownNotifier pShutdownNotifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SolverContextcreateSolverContext(Configuration config, LogManager logger, ShutdownNotifier shutdownNotifier)Shortcut for getting aSolverContext, the solver is selected using the configurationconfigstatic SolverContextcreateSolverContext(Configuration config, LogManager logger, ShutdownNotifier shutdownNotifier, SolverContextFactory.Solvers solver)Shortcut for getting aSolverContext, the solver is selected using an argument.static SolverContextcreateSolverContext(SolverContextFactory.Solvers solver)Minimalistic shortcut for creating a solver context.SolverContextgenerateContext()Create new context with solver chosen according to the supplied configuration.SolverContextgenerateContext(SolverContextFactory.Solvers solverToCreate)Create new context with solver name supplied.
-
-
-
Constructor Detail
-
SolverContextFactory
public SolverContextFactory(Configuration pConfig, LogManager pLogger, ShutdownNotifier pShutdownNotifier) throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
-
-
Method Detail
-
generateContext
public SolverContext generateContext() throws InvalidConfigurationException
Create new context with solver chosen according to the supplied configuration.- Throws:
InvalidConfigurationException
-
generateContext
public SolverContext generateContext(SolverContextFactory.Solvers solverToCreate) throws InvalidConfigurationException
Create new context with solver name supplied.- Throws:
InvalidConfigurationException
-
createSolverContext
public static SolverContext createSolverContext(Configuration config, LogManager logger, ShutdownNotifier shutdownNotifier) throws InvalidConfigurationException
Shortcut for getting aSolverContext, the solver is selected using the configurationconfigSee
SolverContextFactory(Configuration, LogManager, ShutdownNotifier)for documentation of accepted parameters.- Throws:
InvalidConfigurationException
-
createSolverContext
public static SolverContext createSolverContext(Configuration config, LogManager logger, ShutdownNotifier shutdownNotifier, SolverContextFactory.Solvers solver) throws InvalidConfigurationException
Shortcut for getting aSolverContext, the solver is selected using an argument.See
SolverContextFactory(Configuration, LogManager, ShutdownNotifier)for documentation of accepted parameters.- Throws:
InvalidConfigurationException
-
createSolverContext
public static SolverContext createSolverContext(SolverContextFactory.Solvers solver) throws InvalidConfigurationException
Minimalistic shortcut for creating a solver context. Empty default configuration, no logging, and no shutdown notifier.- Parameters:
solver- Solver to initialize- Throws:
InvalidConfigurationException
-
-