diff options
Diffstat (limited to 'src/Chapter5/support')
-rw-r--r-- | src/Chapter5/support/DateInfo.java | 30 | ||||
-rw-r--r-- | src/Chapter5/support/HashTagDS.java | 18 | ||||
-rw-r--r-- | src/Chapter5/support/NetworkNode.java | 49 | ||||
-rw-r--r-- | src/Chapter5/support/NodeIDComparator.java | 32 | ||||
-rw-r--r-- | src/Chapter5/support/NodeSizeComparator.java | 29 | ||||
-rw-r--r-- | src/Chapter5/support/ToNodeInfo.java | 23 | ||||
-rw-r--r-- | src/Chapter5/support/Tweet.java | 21 |
7 files changed, 0 insertions, 202 deletions
diff --git a/src/Chapter5/support/DateInfo.java b/src/Chapter5/support/DateInfo.java deleted file mode 100644 index 9a32d4c..0000000 --- a/src/Chapter5/support/DateInfo.java +++ /dev/null @@ -1,30 +0,0 @@ -/* TweetTracker. Copyright (c) Arizona Board of Regents on behalf of Arizona State University - * @author shamanth - */ -package Chapter5.support; - -import java.util.Date; -import java.util.HashMap; - -public class DateInfo implements Comparable -{ - public Date d; - public HashMap<String,Integer> catcounts = new HashMap<String,Integer>(); - - public int compareTo(Object o) { - DateInfo temp = (DateInfo) o; - if(temp.d.after(this.d)) - { - return 1; - } - else - if(temp.d.before(this.d)) - { - return -1; - } - else - { - return 0; - } - } -} diff --git a/src/Chapter5/support/HashTagDS.java b/src/Chapter5/support/HashTagDS.java deleted file mode 100644 index b338b6d..0000000 --- a/src/Chapter5/support/HashTagDS.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package Chapter5.support; - -/** - * - * @author shamanth - */ -public class HashTagDS -{ - public String groupname; - public String[] tags; - public String color; - -} diff --git a/src/Chapter5/support/NetworkNode.java b/src/Chapter5/support/NetworkNode.java deleted file mode 100644 index 4f662e8..0000000 --- a/src/Chapter5/support/NetworkNode.java +++ /dev/null @@ -1,49 +0,0 @@ -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; - } -} diff --git a/src/Chapter5/support/NodeIDComparator.java b/src/Chapter5/support/NodeIDComparator.java deleted file mode 100644 index 0b41ae7..0000000 --- a/src/Chapter5/support/NodeIDComparator.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package Chapter5.support; - -import java.util.Comparator; - -/** - * - * @author shamanth - */ -public class NodeIDComparator implements Comparator -{ - - public int compare(Object o1, Object o2) { - int id1 = ((NetworkNode) o1).id; - int id2 = ((NetworkNode) o2).id; - if(id1>id2) - { - return 1; - } - else - if(id1<id2) - return -1; - else - return 0; - } - - -} diff --git a/src/Chapter5/support/NodeSizeComparator.java b/src/Chapter5/support/NodeSizeComparator.java deleted file mode 100644 index 23ecb4e..0000000 --- a/src/Chapter5/support/NodeSizeComparator.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package Chapter5.support; -import java.util.Comparator; - -/** - * - * @author shamanth - */ -public class NodeSizeComparator implements Comparator -{ - public int compare(Object o1, Object o2) - { - int size1 = ((NetworkNode) o1).size; - int size2 = ((NetworkNode) o2).size; - if(size1>size2) - { - return 1; - } - if(size1<size2) - return -1; - else - return 0; - } - -} diff --git a/src/Chapter5/support/ToNodeInfo.java b/src/Chapter5/support/ToNodeInfo.java deleted file mode 100644 index 725a10a..0000000 --- a/src/Chapter5/support/ToNodeInfo.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package Chapter5.support; - -/** - * - * @author shamanth - */ -public class ToNodeInfo -{ - public int tonodeid; - public String text; - public String tousername; - public String date; - public int class_code; - public int catID; - public String catColor; - //this is the default direction invert option. If the library adds nodes to the adjacency then that should be set to true in the client side -// public boolean direction = false; -} diff --git a/src/Chapter5/support/Tweet.java b/src/Chapter5/support/Tweet.java deleted file mode 100644 index be53166..0000000 --- a/src/Chapter5/support/Tweet.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package Chapter5.support; - -/** - * - * @author shamanth - */ -public class Tweet { - public String text; - public long id; - public double lat; - public double lng; - public String pubdate; - public String user; - public int catID; - public String catColor; -} |