comparison src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNCConfig.java @ 38:08a14d094d02

add debug option
author sugi
date Mon, 08 Dec 2014 16:00:27 +0900
parents e6e5b45c921d
children 47d6f7a76b86
comparison
equal deleted inserted replaced
37:5e20f680d6d0 38:08a14d094d02
1 package jp.ac.u_ryukyu.alicevnc; 1 package jp.ac.u_ryukyu.alicevnc;
2 2
3 import alice.topology.node.TopologyNodeConfig; 3 import alice.topology.node.TopologyNodeConfig;
4 4
5 public class AliceVNCConfig extends TopologyNodeConfig { 5 public class AliceVNCConfig extends TopologyNodeConfig {
6
7 private boolean change = true; 6 private boolean change = true;
7 private boolean debug = false;
8 8
9 public AliceVNCConfig(String[] args) { 9 public AliceVNCConfig(String[] args) {
10 super(args); 10 super(args);
11 for (int i = 0; i< args.length; i++) { 11 for (int i = 0; i< args.length; i++) {
12 if ("-c".equals(args[i])) { 12 if ("-c".equals(args[i])) {
13 change = false; 13 change = false;
14 } else if ("--debug".equals(args[i])) {
15 debug = true;
14 } 16 }
15 } 17 }
16 } 18 }
17 19
18 public boolean getAllowChange(){ 20 public boolean getAllowChange(){
19 return change; 21 return change;
20 } 22 }
23
24 public boolean debugMode(){
25 return debug;
26 }
21 } 27 }