Module logicng
Class BDDModelEnumerationFunction
- java.lang.Object
-
- org.logicng.knowledgecompilation.bdds.functions.BDDModelEnumerationFunction
-
- All Implemented Interfaces:
BDDFunction<List<Assignment>>
public final class BDDModelEnumerationFunction extends Object implements BDDFunction<List<Assignment>>
Performs model enumeration on a BDD. The models are returned as a list ofassignments.- Since:
- 2.0.0
- Version:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description BDDModelEnumerationFunction(Collection<Variable> variables)Constructs a new model enumeration function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Assignment>apply(BDD bdd)Applies this function on a given BDD.
-
-
-
Constructor Detail
-
BDDModelEnumerationFunction
public BDDModelEnumerationFunction(Collection<Variable> variables)
Constructs a new model enumeration function. The models are projected to a given set of variables.- Parameters:
variables- the variables to which models are projected
-
-
Method Detail
-
apply
public List<Assignment> apply(BDD bdd)
Description copied from interface:BDDFunctionApplies this function on a given BDD.- Specified by:
applyin interfaceBDDFunction<List<Assignment>>- Parameters:
bdd- the BDD- Returns:
- the result of the application
-
-