Module logicng

Class CNFEncoder.AdvancedFactorizationHandler

    • Field Detail

      • distributionBoundary

        protected int distributionBoundary
      • createdClauseBoundary

        protected int createdClauseBoundary
      • currentDistributions

        protected int currentDistributions
      • currentClauses

        protected int currentClauses
    • Constructor Detail

      • AdvancedFactorizationHandler

        protected AdvancedFactorizationHandler()
    • Method Detail

      • setBounds

        protected void setBounds​(int distributionBoundary,
                                 int createdClauseBoundary)
      • performedDistribution

        public boolean performedDistribution()
        Description copied from interface: FactorizationHandler
        This method is called every time a distribution is performed.
        Specified by:
        performedDistribution in interface FactorizationHandler
        Returns:
        true if the factorization should be continued, otherwise false
      • createdClause

        public boolean createdClause​(Formula clause)
        Description copied from interface: FactorizationHandler
        This method is called every time a new clause is created.
        Specified by:
        createdClause in interface FactorizationHandler
        Parameters:
        clause - the clause
        Returns:
        true if the factorization should be continued, otherwise false