1 package Analysis.OoOJava;
3 import IR.Flat.TempDescriptor;
5 public class WaitingElement {
9 private String dynID="";
10 private TempDescriptor tempDesc;
12 public void setTempDesc(TempDescriptor tempDesc){
13 this.tempDesc=tempDesc;
16 public TempDescriptor getTempDesc(){
20 public void setQueueID(int queueID) {
21 this.queueID = queueID;
24 public String getDynID(){
28 public void setDynID(String dynID){
32 public int getQueueID() {
36 public void setStatus(int status) {
40 public int getStatus() {
44 public boolean equals(Object o) {
50 if (!(o instanceof WaitingElement)) {
54 WaitingElement in = (WaitingElement) o;
56 if (queueID == in.getQueueID() && status == in.getStatus() && dynID.equals(in.getDynID()) ) {
64 public String toString() {
65 return "[waitingID=" + queueID + " status=" + status + " dynID="
69 public int hashCode() {
73 hash = hash * 31 + queueID;
77 hash += dynID.hashCode();