|
|
@@ -7,6 +7,7 @@ import java.io.FileNotFoundException;
|
|
7
|
7
|
import java.io.FileReader;
|
|
8
|
8
|
import java.io.IOException;
|
|
9
|
9
|
import java.util.Vector;
|
|
|
10
|
+
|
|
10
|
11
|
import org.json.simple.JSONObject;
|
|
11
|
12
|
import org.json.simple.parser.JSONParser;
|
|
12
|
13
|
import org.json.simple.parser.ParseException;
|
|
|
@@ -107,7 +108,7 @@ public class App {
|
|
107
|
108
|
e.printStackTrace();
|
|
108
|
109
|
}
|
|
109
|
110
|
|
|
110
|
|
- // Print
|
|
|
111
|
+ // Print -> Need Refactoring
|
|
111
|
112
|
for(int i = 0 ; i < networkNode.size(); i++){
|
|
112
|
113
|
System.out.println("<Node"+(i+1)+"> " + networkNode.elementAt(i).ip);
|
|
113
|
114
|
System.out.println("Total packet = " + networkNode.elementAt(i).getTotal_pkt());
|
|
|
@@ -119,6 +120,7 @@ public class App {
|
|
119
|
120
|
System.out.println("<Source port count>");
|
|
120
|
121
|
System.out.println(networkNode.elementAt(i).source.size());
|
|
121
|
122
|
}
|
|
|
123
|
+ // Need Statistics..
|
|
122
|
124
|
|
|
123
|
125
|
}
|
|
124
|
126
|
// Find Node
|