| 
 1 | 
  
 | package org.sat4j.minisat.constraints; | 
| 
 2 | 
  
 |  | 
| 
 3 | 
  
 | import org.sat4j.minisat.constraints.pb.AtLeastPB; | 
| 
 4 | 
  
 | import org.sat4j.minisat.constraints.pb.PBConstr; | 
| 
 5 | 
  
 | import org.sat4j.specs.ContradictionException; | 
| 
 6 | 
  
 | import org.sat4j.specs.IVecInt; | 
| 
 7 | 
  
 |  | 
| 
 8 | 
  
 | public class PuebloPBMinClauseAtLeastConstrDataStructure extends | 
| 
 9 | 
  
 |         PuebloPBMinClauseCardConstrDataStructure { | 
| 
 10 | 
  
 |  | 
| 
 11 | 
  
 |      | 
| 
 12 | 
  
 |  | 
| 
 13 | 
  
 |  | 
| 
 14 | 
  
 |     private static final long serialVersionUID = 1L; | 
| 
 15 | 
  
 |  | 
| 
 16 | 
 4603
 |     protected PBConstr constructCard(IVecInt lits, int degree) throws ContradictionException{
 | 
| 
 17 | 
 4603
 |         return AtLeastPB.atLeastNew(solver, getVocabulary(),
 | 
| 
 18 | 
  
 |                 lits, degree); | 
| 
 19 | 
  
 |     } | 
| 
 20 | 
  
 |  | 
| 
 21 | 
 416
 |     protected PBConstr constructLearntCard(IVecInt literals,
 | 
| 
 22 | 
  
 |             int degree){ | 
| 
 23 | 
  
 |          | 
| 
 24 | 
 416
 |         return AtLeastPB.atLeastNew(getVocabulary(),literals,degree);
 | 
| 
 25 | 
  
 |     } | 
| 
 26 | 
  
 |  | 
| 
 27 | 
  
 | } |