Class SatPartialKBipolarInterpretationProcessor
- java.lang.Object
-
- net.sf.tweety.arg.adf.reasoner.processor.SatPartialKBipolarInterpretationProcessor
-
- All Implemented Interfaces:
InterpretationProcessor<SatReasonerContext>
public class SatPartialKBipolarInterpretationProcessor extends java.lang.Object implements InterpretationProcessor<SatReasonerContext>
- Author:
- Mathias Hofer
-
-
Field Summary
Fields Modifier and Type Field Description private static SatEncoding
BIPOLAR_ENCODING
private static SatEncoding
K_BIPOLAR_ENCODING
-
Constructor Summary
Constructors Constructor Description SatPartialKBipolarInterpretationProcessor()
-
Method Summary
Modifier and Type Method Description Interpretation
process(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.void
updateState(SatReasonerContext context, Interpretation processed, AbstractDialecticalFramework adf)
-
-
-
Field Detail
-
BIPOLAR_ENCODING
private static final SatEncoding BIPOLAR_ENCODING
-
K_BIPOLAR_ENCODING
private static final SatEncoding K_BIPOLAR_ENCODING
-
-
Method Detail
-
process
public Interpretation process(SatReasonerContext context, Interpretation interpretation, AbstractDialecticalFramework adf)
Description copied from interface:InterpretationProcessor
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. If the given state is isolated or shared by the other processors depends on the configuration of thePipeline
and hence by the user.Necessary updates on the shared state have to be performed in the
updateState
method, which is called by the pipeline after the processing is done.- Specified by:
process
in 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 processed, AbstractDialecticalFramework adf)
Description copied from interface:InterpretationProcessor
This method is called by thePipeline
on the shared state and the result of theprocess
method, 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
process
may only have access to an isolated state to perform its processing.- Specified by:
updateState
in interfaceInterpretationProcessor<SatReasonerContext>
- Parameters:
context
- the shared stateprocessed
- the result of the process methodadf
- the corresponding adf
-
-