Package org.tweetyproject.logics.pl.sat
Class SimpleModelEnumerator
java.lang.Object
org.tweetyproject.logics.pl.sat.SimpleModelEnumerator
- All Implemented Interfaces:
ModelProvider<PlFormula,PlBeliefSet, InterpretationSet<Proposition, PlBeliefSet, PlFormula>>
public class SimpleModelEnumerator
extends Object
implements ModelProvider<PlFormula,PlBeliefSet,InterpretationSet<Proposition,PlBeliefSet,PlFormula>>
enumerates all models naivly
- Author:
- Sebastian Franke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetModel(PlBeliefSet bbase) Returns a single (dedicated) model of the given belief base.getModels(Collection<PlFormula> formulas) getModels(PlBeliefSet bbase) Returns a characterizing model of the given belief base
-
Constructor Details
-
SimpleModelEnumerator
public SimpleModelEnumerator()
-
-
Method Details
-
getModels
public Set<InterpretationSet<Proposition,PlBeliefSet, getModelsPlFormula>> (Collection<PlFormula> formulas) - Parameters:
formulas- Pl Formulas to have all models enumerated- Returns:
- all models satifying the formulas
-
getModels
public Collection<InterpretationSet<Proposition,PlBeliefSet, getModelsPlFormula>> (PlBeliefSet bbase) Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Specified by:
getModelsin interfaceModelProvider<PlFormula,PlBeliefSet, InterpretationSet<Proposition, PlBeliefSet, PlFormula>> - Parameters:
bbase- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
Description copied from interface:ModelProviderReturns a single (dedicated) model of the given belief base. If the implemented method allows for more than one dedicated model, the selection may be non-deterministic.- Specified by:
getModelin interfaceModelProvider<PlFormula,PlBeliefSet, InterpretationSet<Proposition, PlBeliefSet, PlFormula>> - Parameters:
bbase- some belief base- Returns:
- a selected model of the belief base.
-