add notes
[pingpong.git] / Code / Projects / SmartPlugDetector / src / main / java / edu / uci / iotproject / Main.java
1 package edu.uci.iotproject;
2
3 import java.util.List;
4 import java.util.Map;
5
6 /**
7  * Entry point of the application.
8  *
9  * @author Janus Varmarken
10  */
11 public class Main {
12
13     public static void main(String[] args) {
14         System.out.println("it works");
15     }
16
17     private String cloudIPAddress(String hostName) {
18         if (hostName.equals("events.tplinkra.com"))
19             return 205.251.203.26;
20     }
21
22     // TODO move to separate class
23     // Add parameter that is the trace to be analyzed (most like the pcap library's representation of a flow)
24     public String findPattern(Map<String, List<Integer>> hostnameToPacketLengths, String smartPlugIp) {
25
26         // No difference, output "Complete match"
27         // If difference, output <Packet no, deviation from expected> for each packet
28         return null;
29     }
30
31 }