import java.util.*;
public class Constraint implements Quantifiers {
-
+
private static int count = 1;
String label = null;
boolean crash = false;
SymbolTable st = new SymbolTable();
- Vector quantifiers = new Vector();
+ Vector quantifiers = new Vector();
LogicStatement logicstatement = null;
DNFConstraint dnfconstraint;
int num;
label = new String("c" + count++);
}
+ public DNFConstraint getDNFConstraint() {
+ return dnfconstraint;
+ }
+
public String toString() {
String name="";
for(int i=0;i<numQuantifiers();i++) {
public LogicStatement getLogicStatement() {
return logicstatement;
}
-
+
public void setCrash(boolean crash) {
this.crash = crash;
}
HashSet topdescriptors = new HashSet();
- for (int i = 0; i < quantifiers.size(); i++) {
+ for (int i = 0; i < quantifiers.size(); i++) {
Quantifier q = (Quantifier) quantifiers.elementAt(i);
topdescriptors.addAll(q.getRequiredDescriptors());
}
}
public Set getRequiredDescriptorsFromLogicStatement() {
-
+
HashSet topdescriptors = new HashSet();
topdescriptors.addAll(logicstatement.getRequiredDescriptors());
return SetDescriptor.expand(topdescriptors);
}
-
+
public Set getRequiredDescriptors() {
Set set = getRequiredDescriptorsFromQuantifiers();
set.addAll(getRequiredDescriptorsFromLogicStatement());
return set;
}
}
-