1 package Analysis.Disjoint;
3 import java.util.HashSet;
6 public class StallSite {
8 private HashSet<Effect> effectSet;
9 private HashSet<AllocSite> allocSiteSet;
11 public StallSite(Set<AllocSite> allocSet) {
12 effectSet = new HashSet<Effect>();
13 allocSiteSet = new HashSet<AllocSite>();
14 allocSiteSet.addAll(allocSet);
17 public void addEffect(Effect e) {
21 public HashSet<Effect> getEffectSet() {
25 public Set<AllocSite> getAllocSiteSet(){
29 public boolean equals(Object o) {
35 if (!(o instanceof StallSite)) {
39 StallSite in = (StallSite) o;
41 if (allocSiteSet.equals(in.getAllocSiteSet())
42 && effectSet.equals(in.getEffectSet()) ){
51 public String toString() {
52 return "StallSite [allocationSiteSet=" + allocSiteSet
53 + ", effectSet=" + effectSet + "]";