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
-
Method Summary
Modifier and TypeMethodDescriptiongetModel
(PlBeliefSet bbase) Returns a single (dedicated) model of the given belief base.getModels
(Collection<PlFormula> formulas) Return all models satifying the formulasgetModels
(PlBeliefSet bbase) Returns a characterizing model of the given belief base
-
Constructor Details
-
SimpleModelEnumerator
public SimpleModelEnumerator()Default Constructor
-
-
Method Details
-
getModels
public Set<InterpretationSet<Proposition,PlBeliefSet, getModelsPlFormula>> (Collection<PlFormula> formulas) Return all models satifying the 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:ModelProvider
Returns a characterizing model of the given belief base- Specified by:
getModels
in 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:ModelProvider
Returns 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:
getModel
in interfaceModelProvider<PlFormula,
PlBeliefSet, InterpretationSet<Proposition, PlBeliefSet, PlFormula>> - Parameters:
bbase
- some belief base- Returns:
- a selected model of the belief base.
-