- java.lang.Object
-
- org.logicng.handlers.ComputationHandler
-
- org.logicng.handlers.NumberOfNodesBDDHandler
-
- All Implemented Interfaces:
BDDHandler,Handler
public class NumberOfNodesBDDHandler extends ComputationHandler implements BDDHandler
A BDD handler which cancels the build process after a given number of added nodes.- Since:
- 1.6.2
- Version:
- 1.6.2
-
-
Field Summary
-
Fields inherited from class org.logicng.handlers.ComputationHandler
aborted
-
-
Constructor Summary
Constructors Constructor Description NumberOfNodesBDDHandler(int bound)Constructs a new BDD handler with an upper bound for the number of added nodes (inclusive).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleannewRefAdded()This method is called every time a new reference is added, i.e.voidstarted()This method is called when the computation starts.-
Methods inherited from class org.logicng.handlers.ComputationHandler
aborted
-
-
-
-
Method Detail
-
started
public void started()
Description copied from interface:HandlerThis method is called when the computation starts.- Specified by:
startedin interfaceHandler- Overrides:
startedin classComputationHandler
-
newRefAdded
public boolean newRefAdded()
Description copied from interface:BDDHandlerThis method is called every time a new reference is added, i.e. the methodBDDKernel.addRef(int, BDDHandler)is called.- Specified by:
newRefAddedin interfaceBDDHandler- Returns:
trueif the BDD generation should be continued, otherwisefalse
-
-