Package net.sf.tweety.arg.dung.reasoner
Class SatCompleteReasoner
- java.lang.Object
-
- net.sf.tweety.arg.dung.reasoner.AbstractDungReasoner
-
- net.sf.tweety.arg.dung.reasoner.AbstractExtensionReasoner
-
- net.sf.tweety.arg.dung.reasoner.AbstractSatExtensionReasoner
-
- net.sf.tweety.arg.dung.reasoner.SatCompleteReasoner
-
- All Implemented Interfaces:
net.sf.tweety.commons.ModelProvider<Argument,DungTheory,Extension>,net.sf.tweety.commons.QualitativeReasoner<DungTheory,Argument>,net.sf.tweety.commons.Reasoner<Boolean,DungTheory,Argument>
public class SatCompleteReasoner extends AbstractSatExtensionReasoner
Uses a SAT solver to determine complete extensions.- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.arg.dung.reasoner.AbstractSatExtensionReasoner
solver
-
-
Constructor Summary
Constructors Constructor Description SatCompleteReasoner(net.sf.tweety.logics.pl.sat.SatSolver solver)Constructs a new complete reasoner.
-
Method Summary
Modifier and Type Method Description protected net.sf.tweety.logics.pl.syntax.PlBeliefSetgetPropositionalCharacterisationBySemantics(DungTheory aaf, Map<Argument,net.sf.tweety.logics.pl.syntax.Proposition> in, Map<Argument,net.sf.tweety.logics.pl.syntax.Proposition> out, Map<Argument,net.sf.tweety.logics.pl.syntax.Proposition> undec)Returns the semantic-specific propositional characterization of the underlying Dung theory, seegetPropositionalCharacterisation.Booleanquery(DungTheory beliefbase, Argument formula, net.sf.tweety.commons.InferenceMode inferenceMode)Queries the given AAF for the given argument using the given inference type.-
Methods inherited from class net.sf.tweety.arg.dung.reasoner.AbstractSatExtensionReasoner
getModel, getModels, getPropositionalCharacterisation
-
Methods inherited from class net.sf.tweety.arg.dung.reasoner.AbstractExtensionReasoner
getSimpleReasonerForSemantics, query
-
-
-
-
Method Detail
-
getPropositionalCharacterisationBySemantics
protected net.sf.tweety.logics.pl.syntax.PlBeliefSet getPropositionalCharacterisationBySemantics(DungTheory aaf, Map<Argument,net.sf.tweety.logics.pl.syntax.Proposition> in, Map<Argument,net.sf.tweety.logics.pl.syntax.Proposition> out, Map<Argument,net.sf.tweety.logics.pl.syntax.Proposition> undec)
Description copied from class:AbstractSatExtensionReasonerReturns the semantic-specific propositional characterization of the underlying Dung theory, seegetPropositionalCharacterisation.- Specified by:
getPropositionalCharacterisationBySemanticsin classAbstractSatExtensionReasoner- Parameters:
aaf- the Dung theoryin- propositional variables of in arguments.out- propositional variables of out arguments.undec- propositional variables of undec arguments.- Returns:
- the semantic-specific propositional characterization of the underlying Dung
theory, see
getPropositionalCharacterisation.
-
query
public Boolean query(DungTheory beliefbase, Argument formula, net.sf.tweety.commons.InferenceMode inferenceMode)
Description copied from class:AbstractExtensionReasonerQueries the given AAF for the given argument using the given inference type.- Overrides:
queryin classAbstractExtensionReasoner- Parameters:
beliefbase- an AAFformula- a single argumentinferenceMode- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- "true" if the argument is accepted
-
-