Mercurial > hg > Applications > AliceVNC
comparison src/main/java/jp/ac/u_ryukyu/alicevnc/ReceiveMeasurement.java @ 47:9354e8a1d03b
working AliceVNC
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Oct 2015 23:48:18 +0900 |
parents | fecac17d662a |
children | 57ca704f86a3 |
comparison
equal
deleted
inserted
replaced
46:51e57371c620 | 47:9354e8a1d03b |
---|---|
6 import java.io.IOException; | 6 import java.io.IOException; |
7 import java.io.PrintWriter; | 7 import java.io.PrintWriter; |
8 import java.util.ArrayList; | 8 import java.util.ArrayList; |
9 | 9 |
10 import alice.codesegment.CodeSegment; | 10 import alice.codesegment.CodeSegment; |
11 import alice.daemon.AliceDaemon; | |
11 import alice.datasegment.CommandType; | 12 import alice.datasegment.CommandType; |
12 import alice.datasegment.ReceiveData; | 13 import alice.datasegment.ReceiveData; |
13 import alice.datasegment.Receiver; | 14 import alice.datasegment.Receiver; |
14 | 15 |
15 public class ReceiveMeasurement extends CodeSegment { | 16 public class ReceiveMeasurement extends CodeSegment { |
16 | 17 |
17 private Receiver info = ids.create(CommandType.TAKE); | 18 private Receiver info = ids.create(CommandType.TAKE); |
18 private Receiver info1 = ids.create(CommandType.PEEK); | 19 private Receiver info1 = ids.create(CommandType.PEEK); |
19 private Receiver info2 = ids.create(CommandType.PEEK); | 20 private Receiver info2 = ids.create(CommandType.PEEK); |
20 | 21 |
21 public ReceiveMeasurement() { | 22 public ReceiveMeasurement(AliceDaemon aliceDaemon) { |
22 info.setKey("measurement"); | 23 this.aliceDaemon = aliceDaemon; |
23 info1.setKey("_CLIST"); | 24 info.setKey("measurement", this); |
24 info2.setKey("AliceVNCConfig"); | 25 info1.setKey("_CLIST", this); |
26 info2.setKey("AliceVNCConfig", this); | |
25 } | 27 } |
26 | 28 |
27 @SuppressWarnings("unchecked") | 29 @SuppressWarnings("unchecked") |
28 @Override | 30 @Override |
29 public void run() { | 31 public void run() { |