Interface Semantics
public interface Semantics
Provides access to the computational building blocks of SAT-based ADF semantics.
- Author:
- Mathias Hofer
-
Method Summary
Modifier and TypeMethodDescriptionstatic SemanticsCreates the admissible semantics for the given ADF.static SemanticsCreates the complete semantics for the given ADF.static SemanticsCreates the conflict-free semantics for the given ADF.createCandidateGenerator(Supplier<SatSolverState> stateSupplier) Creates the candidate generator used by this semantics.Creates the decomposer used by this semantics.Creates the state processors used by this semantics.createUnverifiedProcessor(Supplier<SatSolverState> stateSupplier) Creates the processor applied before interpretations are verified.createVerifiedProcessor(Supplier<SatSolverState> stateSupplier) Creates the processor applied after interpretations are verified.createVerifier(Supplier<SatSolverState> stateSupplier) Creates a verifier, which acts as a filter.static SemanticsCreates the grounded semantics for the given ADF.default booleanReturns whether this semantics uses a stateful verifier.static SemanticsCreates the model semantics for the given ADF.static SemanticsCreates the naive semantics for the given ADF.static SemanticsCreates the preferred semantics for the given ADF.restrict(Interpretation partial) Returns a restricted version of this semantics.static SemanticsCreates the stable semantics for the given ADF.
-
Method Details
-
createDecomposer
Decomposer createDecomposer()Creates the decomposer used by this semantics.- Returns:
- the decomposer
-
createCandidateGenerator
Creates the candidate generator used by this semantics.- Parameters:
stateSupplier- supplier of SAT solver states- Returns:
- the candidate generator
-
createStateProcessors
List<StateProcessor> createStateProcessors()Creates the state processors used by this semantics.- Returns:
- the state processors
-
createUnverifiedProcessor
Creates the processor applied before interpretations are verified.- Parameters:
stateSupplier- supplier of SAT solver states- Returns:
- an optional pre-verification processor
-
hasStatefulVerifier
default boolean hasStatefulVerifier()Returns whether this semantics uses a stateful verifier.- Returns:
trueif this semantics uses a stateful verifier
-
createVerifier
Creates a verifier, which acts as a filter.- Parameters:
stateSupplier- supplier of SAT solver states- Returns:
- an optional verifier
-
createVerifiedProcessor
Creates the processor applied after interpretations are verified.- Parameters:
stateSupplier- supplier of SAT solver states- Returns:
- an optional post-verification processor
-
restrict
Returns a restricted version of this semantics.- Parameters:
partial- the partial interpretation used for restriction- Returns:
- a new
Semanticsinstance
-
conflictFree
Creates the conflict-free semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the conflict-free semantics
-
naive
Creates the naive semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the naive semantics
-
admissible
Creates the admissible semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the admissible semantics
-
preferred
Creates the preferred semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the preferred semantics
-
stable
Creates the stable semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the stable semantics
-
complete
Creates the complete semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the complete semantics
-
model
Creates the model semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the model semantics
-
ground
Creates the grounded semantics for the given ADF.- Parameters:
adf- the ADF- Returns:
- the grounded semantics
-