Module logicng
Package org.logicng.transformations.cnf
Class CNFEncoder.AdvancedFactorizationHandler
- java.lang.Object
-
- org.logicng.handlers.ComputationHandler
-
- org.logicng.transformations.cnf.CNFEncoder.AdvancedFactorizationHandler
-
- All Implemented Interfaces:
FactorizationHandler,Handler
- Enclosing class:
- CNFEncoder
protected static class CNFEncoder.AdvancedFactorizationHandler extends ComputationHandler implements FactorizationHandler
The factorization handler for the advanced CNF encoding.
-
-
Field Summary
Fields Modifier and Type Field Description protected intcreatedClauseBoundaryprotected intcurrentClausesprotected intcurrentDistributionsprotected intdistributionBoundary-
Fields inherited from class org.logicng.handlers.ComputationHandler
aborted
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAdvancedFactorizationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreatedClause(Formula clause)This method is called every time a new clause is created.booleanperformedDistribution()This method is called every time a distribution is performed.protected voidsetBounds(int distributionBoundary, int createdClauseBoundary)voidstarted()This method is called when the computation starts.-
Methods inherited from class org.logicng.handlers.ComputationHandler
aborted
-
-
-
-
Method Detail
-
setBounds
protected void setBounds(int distributionBoundary, int createdClauseBoundary)
-
started
public void started()
Description copied from interface:HandlerThis method is called when the computation starts.- Specified by:
startedin interfaceHandler- Overrides:
startedin classComputationHandler
-
performedDistribution
public boolean performedDistribution()
Description copied from interface:FactorizationHandlerThis method is called every time a distribution is performed.- Specified by:
performedDistributionin interfaceFactorizationHandler- Returns:
trueif the factorization should be continued, otherwisefalse
-
createdClause
public boolean createdClause(Formula clause)
Description copied from interface:FactorizationHandlerThis method is called every time a new clause is created.- Specified by:
createdClausein interfaceFactorizationHandler- Parameters:
clause- the clause- Returns:
trueif the factorization should be continued, otherwisefalse
-
-