view src/main/java/jp/ac/u_ryukyu/treevnc/TreeVNCNode.java @ 502:b9e73589202c

fix header
author oshiro
date Mon, 18 Feb 2019 17:08:34 +0900
parents c1b4befc5933
children
line wrap: on
line source

package jp.ac.u_ryukyu.treevnc;

public class TreeVNCNode {
    String hostname;
    int port;
    int treeNum; //tree position
    int id = 0;      //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;
    }
}