annotate src/main/java/jp/ac/u_ryukyu/alicevnc/CheckMyName.java @ 55:fe627049e289

update maven added compressed to DSM name
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Mon, 16 Nov 2015 20:06:13 +0900
parents 57ca704f86a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
1 package jp.ac.u_ryukyu.alicevnc;
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
2
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
4 import alice.datasegment.CommandType;
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
5 import alice.datasegment.Receiver;
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
6
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
7 public class CheckMyName extends CodeSegment {
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
8
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
9 private Receiver info = ids.create(CommandType.PEEK);
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
10
52
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
11 public CheckMyName(){
55
fe627049e289 update maven added compressed to DSM name
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
12 info.setKey("compressedLocal", "host");
30
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
13 }
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
14
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
15 @Override
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
16 public void run() {
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
17 if ("node0".equals(info.asString())) {
52
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
18 new CreateWindow("local");
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
19 new NegotiateVNCServer();
30
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
20 } else {
52
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
21 new CreateWindow("parent");
30
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
22 }
31
556e27a53219 refactor and bug fix
sugi
parents: 30
diff changeset
23
52
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
24 new ReceiveAliceVNCMessage();
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
25 new SendChangeRequest();
30
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
26 }
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
27
d8c6a4c7f16e change algotherm
sugi
parents:
diff changeset
28 }