view src/main/java/jp/ac/u_ryukyu/treevnc/TreeVNCNode.java @ 470:f7210f834403

add unique node id
author mir3636
date Wed, 03 Aug 2016 19:09:11 +0900
parents 2b3eb4a9492f
children c1b4befc5933
line wrap: on
line source

package jp.ac.u_ryukyu.treevnc;

public class TreeVNCNode {
    String hostname;
    int port;
    int treeNum; //tree position
    int id;      //unique node id in all trees
    String localhostname;

    public TreeVNCNode(String hostname, int port, String localhostname) {
        this.hostname = hostname;
        this.port = port;
        this.localhostname = localhostname;
    }

    public int getTreeNum() {
        return treeNum;
    }

    public void setTreeNum(int treeNum) {
        this.treeNum = treeNum;
    }
    
    public String getHostname() {
        return hostname;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int acceptPort) {
        port = acceptPort;
    }

	public void setHostName(String localhostname) {
		hostname = localhostname;
	}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}