initial commit for parent/child SESE memory conflicts analysis
[IRC.git] / Robust / src / Analysis / MLP / StallSite.java
1 package Analysis.MLP;
2
3 import java.util.HashSet;
4
5 import Analysis.OwnershipAnalysis.ReachabilitySet;
6
7 public class StallSite {
8         
9         public static final Integer READ_EFFECT=new Integer(1);
10         public static final Integer WRITE_EFFECT=new Integer(2);
11         
12         private HashSet<Effect> effectSet;
13         private int hrnID;
14         private ReachabilitySet rechabilitySet;
15         
16         public StallSite(){
17                 effectSet=new HashSet<Effect>();
18         }
19         
20         public void addEffect(String type, String field, Integer effect){
21                 Effect e=new Effect(type,field,effect);
22                 effectSet.add(e);
23         }
24         
25 }
26
27 class Effect{
28         
29         private String field;
30         private String type;
31         private Integer effect;
32         
33         public Effect(String type, String field, Integer effect){
34                 this.type=type;
35                 this.field=field;
36                 this.effect=effect;
37         }
38         
39 }