}
private boolean existsInQueue(TriggerState ts) {
- for(Iterator it_queue=q_main.iterator();it_queue.hasNext();) {
- TriggerState ts_local=(TriggerState)it_queue.next();
-
- if (ts_local.equals(ts))
- return true;
- }
- return false;
+ throw new Error("Use hashcode/contains of set method to find...no linear search allowed");
}
private boolean existsInFSQueue(Queue q,FlagState fs) {
- for (Iterator it_q=q.iterator();it_q.hasNext();) {
- if(((FlagState)it_q.next()).isEqual(fs))
- return true;
- }
- return false;
+ throw new Error("Use hashcode/contains of set method to find...no linear search allowed");
}
public void printAdjList(ClassDescriptor cd) {
ClassDescriptor cd;
FlagState fs;
- public TriggerState(ClassDescriptor cd, FlagState fs)
- {
- this.cd = cd;
- this.fs = fs;
- }
+ public TriggerState(ClassDescriptor cd, FlagState fs) {
+ throw new Error("Just use FlagState...roll classdescriptor into it");
+ this.cd = cd;
+ this.fs = fs;
+ }
public ClassDescriptor getClassDescriptor()
{