00001 package edu.tum.cs.logic.sat.weighted; 00002 00003 00004 import edu.tum.cs.logic.Formula; 00005 import edu.tum.cs.logic.sat.Clause; 00006 00007 00012 public class WeightedClause extends Clause { 00013 00014 public double weight; 00018 public boolean isHard; 00019 00027 public WeightedClause(Formula f, double weight, boolean hard) throws Exception { 00028 super(f); 00029 this.weight = weight; 00030 this.isHard = hard; 00031 } 00032 00033 public String toString() { 00034 return weight + " " + super.toString(); 00035 } 00036 } 00037