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 SatEncodingBIPOLAR_ENCODINGprivate static SatEncodingK_BIPOLAR_ENCODING
-
Constructor Summary
Constructors Constructor Description SatPartialKBipolarInterpretationProcessor()
-
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 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: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 processed, 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 stateprocessed- the result of the process methodadf- the corresponding adf
-
-