summaryrefslogtreecommitdiff
path: root/src/Chapter5/support/NetworkNode.java
blob: 4f662e8247dfd24466f5296686cea0daf4b485a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package Chapter5.support;


import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author shamanth
 */
public class NetworkNode
{
    public int id;
    public String username;
    public int size;
    public String catColor;
    public int group;
//    public int[] clusterID;
    public int catID;
//    public double lat;
//    public double lng;
    public ArrayList<String> data;
    public int level;
    public ArrayList<Integer> class_codes;
    public ArrayList<ToNodeInfo> tonodes;

    public NetworkNode Copy()
    {
        NetworkNode tempnode = new NetworkNode();
        tempnode.catColor = this.catColor;
        tempnode.id = this.id;
        tempnode.username= this.username;
        tempnode.size = this.size;
        tempnode.group = this.group;
//        tempnode.clusterID = this.clusterID;
        tempnode.catID = this.catID;
//        tempnode.lat = this.lat;
//        tempnode.lng = this.lng;
        tempnode.data = this.data;
//        tempnode.level = this.level;
        tempnode.class_codes = this.class_codes;
        tempnode.tonodes = this.tonodes;
        return tempnode;
    }   
}