Class AdmissibleMaximizer
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.processor.AdmissibleMaximizer
- All Implemented Interfaces:
AutoCloseable,InterpretationProcessor
Maximizes a given interpretation, but only counts admissible interpretations as larger.
- Author:
- Mathias Hofer
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()process(Interpretation interpretation) Processes the given interpretation.static InterpretationProcessorrestricted(Supplier<SatSolverState> stateSupplier, AbstractDialecticalFramework adf, PropositionalMapping mapping, Interpretation prefix) Creates a processor that maximizes interpretations above a fixed prefix.static InterpretationProcessorunrestricted(Supplier<SatSolverState> stateSupplier, AbstractDialecticalFramework adf, PropositionalMapping mapping) Creates a processor that maximizes interpretations without a prefix.voidupdateState(SatSolverState state, Interpretation maximal) Updates the solver state after processing an interpretation.
-
Method Details
-
restricted
public static InterpretationProcessor restricted(Supplier<SatSolverState> stateSupplier, AbstractDialecticalFramework adf, PropositionalMapping mapping, Interpretation prefix) Creates a processor that maximizes interpretations above a fixed prefix.- Parameters:
stateSupplier- supplies fresh SAT solver statesadf- the ADF to maximize interpretations formapping- the propositional encoding of the ADFprefix- the fixed prefix interpretation- Returns:
- an interpretation processor restricted to the prefix
-
unrestricted
public static InterpretationProcessor unrestricted(Supplier<SatSolverState> stateSupplier, AbstractDialecticalFramework adf, PropositionalMapping mapping) Creates a processor that maximizes interpretations without a prefix.- Parameters:
stateSupplier- supplies fresh SAT solver statesadf- the ADF to maximize interpretations formapping- the propositional encoding of the ADF- Returns:
- an unrestricted interpretation processor
-
process
Description copied from interface:InterpretationProcessorProcesses the given interpretation.- Specified by:
processin interfaceInterpretationProcessor- Parameters:
interpretation- the interpretation to process- Returns:
- the processed interpretation
-
updateState
Description copied from interface:InterpretationProcessorUpdates the solver state after processing an interpretation.- Specified by:
updateStatein interfaceInterpretationProcessor- Parameters:
state- the current SAT solver statemaximal- the processed interpretation
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceInterpretationProcessor
-