1 6 7 package fr.emn.info.eaop.event; 8 9 import java.util.*; 10 import java.lang.reflect.*; 11 import java.io.*; 12 13 20 21 public class Event { 22 23 public static int timeStampGenerator = 0; 24 public static Stack names = new Stack(); 25 static { 26 Event.names.push("base program"); 27 } 28 29 public Thread thread; 30 public String name; 31 public int timeStamp; 32 33 public Event(Thread thread) { 34 this.thread = thread; 35 this.name = (String )(Event.names.peek()); 36 this.timeStamp = Event.timeStampGenerator++; 37 } 38 public String toString() { 39 return this.thread.toString() + " " + this.name + " " + this.timeStamp; 40 } 41 } 42 43 | Popular Tags |