changes
[IRC.git] / Robust / TransSim / TEvent.java
diff --git a/Robust/TransSim/TEvent.java b/Robust/TransSim/TEvent.java
new file mode 100644 (file)
index 0000000..fec70a9
--- /dev/null
@@ -0,0 +1,27 @@
+public class TEvent {
+  public int type;
+  public int index;
+  public int oid;
+  public long time;
+
+  public TEvent(int type, long time) {
+    this.time=time;
+    this.type=type;
+    this.oid=-1;
+    this.index=-1;
+  }
+
+  public TEvent(int type, long time, int oid) {
+    this.time=time;
+    this.type=type;
+    this.oid=oid;
+    this.index=-1;
+  }
+
+  public TEvent(int type, long time, int oid, int index) {
+    this.time=time;
+    this.type=type;
+    this.oid=oid;
+    this.index=index;
+  }
+}
\ No newline at end of file