Class NaiveMusEnumerator<S extends Formula>
java.lang.Object
org.tweetyproject.logics.commons.analysis.AbstractMusEnumerator<S>
org.tweetyproject.logics.commons.analysis.NaiveMusEnumerator<S>
- Type Parameters:
S
- The type of formulas.
- All Implemented Interfaces:
BeliefSetConsistencyTester<S>
,ConsistencyTester<BeliefSet<S,
,?>> MusEnumerator<S>
A simple approach to compute minimal inconsistent subsets and maximal
consistent subsets by exhaustive search.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionCreates a new naive MusEnumerator that uses the given consistency tester. -
Method Summary
Modifier and TypeMethodDescriptionboolean
minimalInconsistentSubsets
(Collection<S> beliefSet) This method returns the minimal inconsistent subsets of the given set of formulas.Methods inherited from class org.tweetyproject.logics.commons.analysis.AbstractMusEnumerator
getMiComponents, isConsistent, isConsistent, isConsistent, maximalConsistentSubsets, minimalCorrectionSubsets
-
Constructor Details
-
NaiveMusEnumerator
Creates a new naive MusEnumerator that uses the given consistency tester.- Parameters:
tester
- some consistency tester
-
-
Method Details
-
minimalInconsistentSubsets
Description copied from interface:MusEnumerator
This method returns the minimal inconsistent subsets of the given set of formulas.- Specified by:
minimalInconsistentSubsets
in interfaceMusEnumerator<S extends Formula>
- Specified by:
minimalInconsistentSubsets
in classAbstractMusEnumerator<S extends Formula>
- Parameters:
beliefSet
- a set of formulas.- Returns:
- the minimal inconsistent subsets of the given set of formulas
-
isInstalled
public boolean isInstalled()- Returns:
- whether the consistency measure is installed
-