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

working AliceVNC
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Mon, 19 Oct 2015 23:48:18 +0900
parents 47d6f7a76b86
children 57ca704f86a3
comparison
equal deleted inserted replaced
46:51e57371c620 47:9354e8a1d03b
1 package jp.ac.u_ryukyu.alicevnc; 1 package jp.ac.u_ryukyu.alicevnc;
2 2
3 import alice.codesegment.CodeSegment; 3 import alice.codesegment.CodeSegment;
4 import alice.daemon.AliceDaemon;
4 5
5 public class AliceVNC extends CodeSegment { 6 public class AliceVNC extends CodeSegment {
6 7
7 private AliceVNCConfig conf; 8 private AliceVNCConfig conf;
8 9
9 public AliceVNC(AliceVNCConfig conf) { 10 public AliceVNC(AliceVNCConfig conf) {
10 this.conf = conf; 11 this.conf = conf;
11 } 12 }
12 13
13 public void run() { 14 public void run() {
15 System.out.println();
14 ods.put("AliceVNCConfig", conf); 16 ods.put("AliceVNCConfig", conf);
15 new ReceiveMeasurement(); 17 new ReceiveMeasurement(new AliceDaemon(conf));
16 new CheckMyName(); 18 new CheckMyName(this);
17 19
18 } 20 }
19 21
20 } 22 }