comparison src/main/java/jp/ac/u_ryukyu/alicevnc/SendChangeRequest.java @ 47:9354e8a1d03b

working AliceVNC
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Mon, 19 Oct 2015 23:48:18 +0900
parents aace9df1462e
children 57ca704f86a3
comparison
equal deleted inserted replaced
46:51e57371c620 47:9354e8a1d03b
13 private Receiver info = ids.create(CommandType.PEEK); // hostName 13 private Receiver info = ids.create(CommandType.PEEK); // hostName
14 private Receiver info1 = ids.create(CommandType.PEEK); // connection list 14 private Receiver info1 = ids.create(CommandType.PEEK); // connection list
15 private Receiver info2 = ids.create(CommandType.PEEK); // AliceVNCConfig 15 private Receiver info2 = ids.create(CommandType.PEEK); // AliceVNCConfig
16 private Receiver info3 = ids.create(CommandType.TAKE); // request 16 private Receiver info3 = ids.create(CommandType.TAKE); // request
17 17
18 public SendChangeRequest(){ 18 public SendChangeRequest(CodeSegment cs){
19 info.setKey("host"); 19 this.aliceDaemon = cs.aliceDaemon;
20 info1.setKey("_CLIST"); 20 info.setKey("host", this);
21 info2.setKey("AliceVNCConfig"); 21 info1.setKey("_CLIST", this);
22 info3.setKey("Request"); 22 info2.setKey("AliceVNCConfig", this);
23 info3.setKey("Request", this);
23 } 24 }
24 25
25 @Override 26 @Override
26 public void run() { 27 public void run() {
27 AliceVNCConfig config = info2.asClass(AliceVNCConfig.class); 28 AliceVNCConfig config = info2.asClass(AliceVNCConfig.class);
39 if (clist.contains("parent")){ // this node is not root. compare node0 is better? 40 if (clist.contains("parent")){ // this node is not root. compare node0 is better?
40 address = "parent"; 41 address = "parent";
41 } 42 }
42 43
43 ods.put(address, "AliceVNCMessage", mes); 44 ods.put(address, "AliceVNCMessage", mes);
44 new SendChangeRequest(); 45 new SendChangeRequest(this);
45 } 46 }
46 47
47 } 48 }