- java.lang.Object
-
- org.logicng.knowledgecompilation.dnnf.functions.DnnfModelCountFunction
-
- All Implemented Interfaces:
DnnfFunction<BigInteger>
public final class DnnfModelCountFunction extends Object implements DnnfFunction<BigInteger>
A DNNF function which counts models.- Since:
- 2.0.0
- Version:
- 2.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegerapply(SortedSet<Variable> originalVariables, Formula formula)Applies this function to a given DNNFstatic DnnfModelCountFunctionget()Returns the singleton instance of this function.
-
-
-
Method Detail
-
get
public static DnnfModelCountFunction get()
Returns the singleton instance of this function.- Returns:
- an instance of this function
-
apply
public BigInteger apply(SortedSet<Variable> originalVariables, Formula formula)
Description copied from interface:DnnfFunctionApplies this function to a given DNNF- Specified by:
applyin interfaceDnnfFunction<BigInteger>- Parameters:
originalVariables- the original variables of the DNNFformula- the formula of the DNNF- Returns:
- the result of the function application
-
-