source: proiecte/ptvs/src/vnsim/core/EventProcessingThread.java @ 88

Last change on this file since 88 was 88, checked in by (none), 14 years ago
File size: 504 bytes
Line 
1package vnsim.core;
2
3import vnsim.core.events.Event;
4
5
6public class EventProcessingThread implements Runnable {
7       
8        final Event e;
9        final Engine engine;
10       
11       
12        public EventProcessingThread(Event e, Engine engine){
13                this.e=e;
14                this.engine=engine;
15               
16        }
17       
18        public void run() {
19                //System.out.print("Threadul ruleaza.......");
20                //System.out.println(">> Thread:"+Thread.currentThread().getName());
21               
22                engine.playEvent(e);
23       
24                //System.out.println("Threadul termina.......");
25        }
26}
Note: See TracBrowser for help on using the repository browser.