annotate src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java @ 84:222b28a166e8

update Alice 582
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Fri, 29 Jan 2016 20:12:22 +0900
parents a2cf391b8a34
children 6b0730c48b4e e9005f975703
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9973439e03ad first commit
YU
parents:
diff changeset
1 package jp.ac.u_ryukyu.alicevnc;
9973439e03ad first commit
YU
parents:
diff changeset
2
5
c05d3b89b446 Send DecodeInfo to Children Nodes. but occur ArrayIndexOutOfBoundsException.
YU
parents: 1
diff changeset
3 import java.util.ArrayList;
80
c94436e90e9e update Alice r:579
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
4 import java.util.LinkedList;
5
c05d3b89b446 Send DecodeInfo to Children Nodes. but occur ArrayIndexOutOfBoundsException.
YU
parents: 1
diff changeset
5
47
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
6 import alice.daemon.AliceDaemon;
1
a73b8a20e233 create another viewer window
one
parents: 0
diff changeset
7 import alice.topology.node.TopologyNode;
80
c94436e90e9e update Alice r:579
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
8 import alice.topology.node.TopologyNodeConfig;
0
9973439e03ad first commit
YU
parents:
diff changeset
9
47
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
10 /**
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
11 * java -cp AliceVNC.jar alice.topology.manager.TopologyManager
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
12 * java -jar build/libs/AliceVNC.jar -host YuSugimoto-no-MacBook-Pro.local -p 21000
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
13 */
0
9973439e03ad first commit
YU
parents:
diff changeset
14 public class StartAliceVNC {
9973439e03ad first commit
YU
parents:
diff changeset
15 public static void main(String args[]){
1
a73b8a20e233 create another viewer window
one
parents: 0
diff changeset
16 AliceVNCConfig conf = new AliceVNCConfig(args);
47
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
17
80
c94436e90e9e update Alice r:579
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
18 AliceVNC cs = new AliceVNC(conf);
47
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
19
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
20 if (conf.debugMode()) {
5
c05d3b89b446 Send DecodeInfo to Children Nodes. but occur ArrayIndexOutOfBoundsException.
YU
parents: 1
diff changeset
21 cs.ods.put("_CLIST", new ArrayList<String>());
20
15398aebb0ef refactor
sugi
parents: 5
diff changeset
22 cs.ods.put("host", "node0");
52
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
23 cs.execute();
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
24 return;
1
a73b8a20e233 create another viewer window
one
parents: 0
diff changeset
25 }
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
26
81
a2cf391b8a34 correct args bug
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 80
diff changeset
27 LinkedList<TopologyNodeConfig> topologyNodeConfigs = new TopologyNodeConfig().MultiTopologyNodeCongingFactory(args);
80
c94436e90e9e update Alice r:579
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
28 for(TopologyNodeConfig config : topologyNodeConfigs){
c94436e90e9e update Alice r:579
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
29 new TopologyNode(config, cs);
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
30 }
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
31
0
9973439e03ad first commit
YU
parents:
diff changeset
32 }
9973439e03ad first commit
YU
parents:
diff changeset
33 }