Class Configuration
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.execution.Configuration
The
Configuration
class encapsulates the settings used for SAT solving and parallel execution
in an abstract dialectical framework (ADF) system. It provides a fluent API for configuring the solver
and the parallelism level.
The configuration is built using the Configuration.Builder
pattern, allowing users to specify an
IncrementalSatSolver
and a level of parallelism for parallel execution. The class is immutable
once built.
Example usage: Configuration config = Configuration.builder() .setSatSolver(new SomeSatSolver()) .setParallelism(4) .build();
- Author:
- Sebastian Matthias Thimm
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
TheBuilder
class for constructingConfiguration
instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration.Builder
builder()
Returns a newConfiguration.Builder
for constructingConfiguration
objects.int
Gets the configured level of parallelism.Gets the configuredIncrementalSatSolver
.
-
Method Details
-
builder
Returns a newConfiguration.Builder
for constructingConfiguration
objects.- Returns:
- a new
Configuration.Builder
instance
-
getSatSolver
Gets the configuredIncrementalSatSolver
.- Returns:
- the configured SAT solver
-
getParallelism
public int getParallelism()Gets the configured level of parallelism.- Returns:
- the parallelism level
-