Mercurial > hg > Database > Alice
comparison src/main/java/alice/test/chat/ReceiveMessage.java @ 601:30f2c04571c2 dispose
add chat, add Star topology to topology manager&node
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 27 Apr 2016 16:28:10 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
600:0564f38e9bfe | 601:30f2c04571c2 |
---|---|
1 package alice.test.chat; | |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 import alice.datasegment.CommandType; | |
5 import alice.datasegment.Receiver; | |
6 | |
7 /** | |
8 * Created by e125769 on 3/29/16. | |
9 */ | |
10 public class ReceiveMessage extends CodeSegment{ | |
11 | |
12 public Receiver info1 = ids.create(CommandType.TAKE); | |
13 public Receiver info2 = ids.create(CommandType.PEEK); | |
14 private ChatWindow chatWindow; | |
15 | |
16 ReceiveMessage(ChatWindow chatWindow){ | |
17 this.chatWindow = chatWindow; | |
18 info1.setKey("local", "receiveMessage"); | |
19 info2.setKey("local", "_CLIST"); | |
20 } | |
21 | |
22 @Override | |
23 public void run() { | |
24 | |
25 chatWindow.show(info1.asString()); | |
26 | |
27 new ReceiveMessage(chatWindow); | |
28 } | |
29 } |