add source code that does not have location annotations.
[IRC.git] / Robust / TransSim / ThreadInfo.java
1 import java.util.*;
2
3 public class ThreadInfo {
4   FlexScheduler fs;
5   public ThreadInfo(FlexScheduler fs) {
6     this.fs=fs;
7   }
8   boolean stalled;
9   int oid;
10   int index;
11   int priority;
12   boolean aborted;
13
14   public void setObject(int oid) {
15     this.oid=oid;
16   }
17
18   public void setIndex(int index) {
19     this.index=index;
20   }
21
22   public int getObject() {
23     return oid;
24   }
25
26   public int getIndex() {
27     return index;
28   }
29
30   public void setObjIndex(ObjIndex oi) {
31     oid=oi.object;
32     index=oi.index;
33   }
34
35   public ObjIndex getObjIndex() {
36     return new ObjIndex(oid, index);
37   }
38
39   public boolean isStalled() {
40     return stalled;
41   }
42   public void setStall(boolean stall) {
43     stalled=stall;
44   }
45 }