diff options
Diffstat (limited to 'src/Chapter5/support/NetworkNode.java')
-rw-r--r-- | src/Chapter5/support/NetworkNode.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/Chapter5/support/NetworkNode.java b/src/Chapter5/support/NetworkNode.java new file mode 100644 index 0000000..4f662e8 --- /dev/null +++ b/src/Chapter5/support/NetworkNode.java @@ -0,0 +1,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; + } +} |