Line | |
---|
1 | package vnsim.core; |
---|
2 | |
---|
3 | import vnsim.core.events.Event; |
---|
4 | |
---|
5 | |
---|
6 | public 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.