view src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNCConfig.java @ 56:9f1289c78b22

update maven change compressed DSM to only pixelData
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Mon, 16 Nov 2015 23:19:26 +0900
parents 47d6f7a76b86
children c94436e90e9e
line wrap: on
line source

package jp.ac.u_ryukyu.alicevnc;

import alice.topology.node.TopologyNodeConfig;

public class AliceVNCConfig extends TopologyNodeConfig {
    private boolean change = true;
    private boolean debug = false;
    private String path;

    public AliceVNCConfig(String[] args) {
        super(args);
        for (int i = 0; i< args.length; i++) {
            if ("-c".equals(args[i])) {
                change = false;
            } else if ("--debug".equals(args[i])) {
                debug = true;
            } else if ("--file".equals(args[i])) {
                path = args[++i];
            }
        }
    }

    public boolean getAllowChange(){
        return change;
    }

    public boolean debugMode(){
        return debug;
    }

    public String getFilePath() {
        return path;
    }
}