Package net.sf.tweety.logics.pl.reasoner
Class AbstractPlReasoner
- java.lang.Object
-
- net.sf.tweety.logics.pl.reasoner.AbstractPlReasoner
-
- All Implemented Interfaces:
net.sf.tweety.commons.KernelProvider<PlFormula>,net.sf.tweety.commons.QualitativeReasoner<PlBeliefSet,PlFormula>,net.sf.tweety.commons.Reasoner<Boolean,PlBeliefSet,PlFormula>
- Direct Known Subclasses:
SatReasoner,SimplePlReasoner
public abstract class AbstractPlReasoner extends Object implements net.sf.tweety.commons.QualitativeReasoner<PlBeliefSet,PlFormula>, net.sf.tweety.commons.KernelProvider<PlFormula>
Abstract class for propositional logic reasoners.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description AbstractPlReasoner()
-
Method Summary
Modifier and Type Method Description Collection<Collection<PlFormula>>getKernels(Collection<PlFormula> formulas, PlFormula formula)booleanisEquivalent(PlFormula p1, PlFormula p2)Checks whether the two formulas are equivalentabstract Booleanquery(PlBeliefSet beliefbase, PlFormula formula)booleanquery(PlFormula formula, PlFormula formula2)Checks whether the first formula entails the second.
-
-
-
Method Detail
-
query
public abstract Boolean query(PlBeliefSet beliefbase, PlFormula formula)
- Specified by:
queryin interfacenet.sf.tweety.commons.QualitativeReasoner<PlBeliefSet,PlFormula>- Specified by:
queryin interfacenet.sf.tweety.commons.Reasoner<Boolean,PlBeliefSet,PlFormula>
-
query
public boolean query(PlFormula formula, PlFormula formula2)
Checks whether the first formula entails the second.- Parameters:
formula- some formulaformula2- a formula- Returns:
- true if the second formula is entailed be the first formula.
-
isEquivalent
public boolean isEquivalent(PlFormula p1, PlFormula p2)
Checks whether the two formulas are equivalent- Parameters:
p1- a formulap2- a formula- Returns:
- true iff the two formulas are equivalent
-
getKernels
public Collection<Collection<PlFormula>> getKernels(Collection<PlFormula> formulas, PlFormula formula)
- Specified by:
getKernelsin interfacenet.sf.tweety.commons.KernelProvider<PlFormula>
-
-