1
|
1 package jp.ac.u_ryukyu.alicevnc;
|
|
2
|
|
3 import alice.topology.node.TopologyNodeConfig;
|
|
4
|
|
5 public class AliceVNCConfig extends TopologyNodeConfig {
|
20
|
6 private boolean change = true;
|
38
|
7 private boolean debug = false;
|
40
|
8 private String path;
|
36
|
9
|
1
|
10 public AliceVNCConfig(String[] args) {
|
|
11 super(args);
|
|
12 for (int i = 0; i< args.length; i++) {
|
36
|
13 if ("-c".equals(args[i])) {
|
20
|
14 change = false;
|
38
|
15 } else if ("--debug".equals(args[i])) {
|
|
16 debug = true;
|
40
|
17 } else if ("--file".equals(args[i])) {
|
|
18 path = args[++i];
|
1
|
19 }
|
|
20 }
|
|
21 }
|
|
22
|
20
|
23 public boolean getAllowChange(){
|
|
24 return change;
|
|
25 }
|
38
|
26
|
|
27 public boolean debugMode(){
|
|
28 return debug;
|
|
29 }
|
40
|
30
|
|
31 public String getFilePath() {
|
|
32 return path;
|
|
33 }
|
1
|
34 }
|