Class GroundGenerator
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.generator.GroundGenerator
- All Implemented Interfaces:
CandidateGenerator
- Author:
- Mathias Hofer
-
Method Summary
Modifier and TypeMethodDescriptiongenerate(SatSolverState state)
Does not return the same candidate on two calls on the same instance.void
Performs initializations on the state.static CandidateGenerator
withoutPrefix(AbstractDialecticalFramework adf, PropositionalMapping mapping)
The resultingCandidateGenerator
computes the ground interpretation.static CandidateGenerator
withPrefix(AbstractDialecticalFramework adf, PropositionalMapping mapping, Interpretation prefix)
The resultingCandidateGenerator
only computes the ground interpretation if it extends the given prefix.
-
Method Details
-
withPrefix
public static CandidateGenerator withPrefix(AbstractDialecticalFramework adf, PropositionalMapping mapping, Interpretation prefix)The resultingCandidateGenerator
only computes the ground interpretation if it extends the given prefix.- Parameters:
adf
-mapping
-prefix
- the fixed prefix- Returns:
-
withoutPrefix
public static CandidateGenerator withoutPrefix(AbstractDialecticalFramework adf, PropositionalMapping mapping)The resultingCandidateGenerator
computes the ground interpretation.- Parameters:
adf
-mapping
-- Returns:
-
prepare
Description copied from interface:CandidateGenerator
Performs initializations on the state.- Specified by:
prepare
in interfaceCandidateGenerator
- Parameters:
consumer
- consumer
-
generate
Description copied from interface:CandidateGenerator
Does not return the same candidate on two calls on the same instance.- Specified by:
generate
in interfaceCandidateGenerator
- Parameters:
state
- the initialized state- Returns:
- the generated interpretation
-