Class SatMaximizeInterpretationProcessor
- java.lang.Object
-
- net.sf.tweety.arg.adf.reasoner.processor.SatMaximizeInterpretationProcessor
-
- All Implemented Interfaces:
InterpretationProcessor<SatReasonerContext>
public class SatMaximizeInterpretationProcessor extends java.lang.Object implements InterpretationProcessor<SatReasonerContext>
Maximizes the given interpretation and afterwards restricts the search space from generating smaller ones.- Author:
- Mathias Hofer
-
-
Field Summary
Fields Modifier and Type Field Description private static SatEncodingLARGER_INTERPRETATIONprivate static SatEncodingREFINE_LARGERprivate static SatEncodingREFINE_UNEQUALprivate Verifier<SatReasonerContext>verifier
-
Constructor Summary
Constructors Constructor Description SatMaximizeInterpretationProcessor()SatMaximizeInterpretationProcessor(Verifier<SatReasonerContext> verifier)
-
Method Summary
Modifier and Type Method Description Interpretationprocess(SatReasonerContext context, Interpretation interpretation, AbstractDialecticalFramework adf)Performs the processing of the given interpretation on a potential isolated state, meaning that the updates on this state are not seen by the subsequent processors.voidupdateState(SatReasonerContext context, Interpretation maximal, AbstractDialecticalFramework adf)
-
-
-
Field Detail
-
LARGER_INTERPRETATION
private static final SatEncoding LARGER_INTERPRETATION
-
REFINE_LARGER
private static final SatEncoding REFINE_LARGER
-
REFINE_UNEQUAL
private static final SatEncoding REFINE_UNEQUAL
-
verifier
private Verifier<SatReasonerContext> verifier
-
-
Constructor Detail
-
SatMaximizeInterpretationProcessor
public SatMaximizeInterpretationProcessor()
-
SatMaximizeInterpretationProcessor
public SatMaximizeInterpretationProcessor(Verifier<SatReasonerContext> verifier)
- Parameters:
verifier-
-
-
Method Detail
-
process
public Interpretation process(SatReasonerContext context, Interpretation interpretation, AbstractDialecticalFramework adf)
Description copied from interface:InterpretationProcessorPerforms the processing of the given interpretation on a potential isolated state, meaning that the updates on this state are not seen by the subsequent processors. If the given state is isolated or shared by the other processors depends on the configuration of thePipelineand hence by the user.Necessary updates on the shared state have to be performed in the
updateStatemethod, which is called by the pipeline after the processing is done.- Specified by:
processin interfaceInterpretationProcessor<SatReasonerContext>- Parameters:
context- a potentially isolated state or the shared oneinterpretation- the result of the previous processoradf- the corresponding adf- Returns:
- an interpretation
-
updateState
public void updateState(SatReasonerContext context, Interpretation maximal, AbstractDialecticalFramework adf)
Description copied from interface:InterpretationProcessorThis method is called by thePipelineon the shared state and the result of theprocessmethod, hence after the processing is done.Note that if this processor has to update the shared state, it has to happen in this method. Since
processmay only have access to an isolated state to perform its processing.- Specified by:
updateStatein interfaceInterpretationProcessor<SatReasonerContext>- Parameters:
context- the shared statemaximal- the result of the process methodadf- the corresponding adf
-
-