Class AbstractCandidateGenerator
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.generator.AbstractCandidateGenerator
- All Implemented Interfaces:
AutoCloseable
,CandidateGenerator
- Direct Known Subclasses:
ConflictFreeGenerator
,GroundGenerator
,ModelGenerator
- Author:
- Sebastian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
generate()
Does not return the same candidate on two calls on the same instance.void
update
(Consumer<SatSolverState> updateFunction) Updates the internal state of the generator with the provided function.
-
Constructor Details
-
AbstractCandidateGenerator
- Parameters:
stateSupplier
- stateSupplier
-
-
Method Details
-
generate
Description copied from interface:CandidateGenerator
Does not return the same candidate on two calls on the same instance.- Specified by:
generate
in interfaceCandidateGenerator
- Returns:
- the generated interpretation
-
update
Description copied from interface:CandidateGenerator
Updates the internal state of the generator with the provided function.- Specified by:
update
in interfaceCandidateGenerator
- Parameters:
updateFunction
- the function to apply on its internal state.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCandidateGenerator
-