add notes
authorJanus Varmarken <varmarken@gmail.com>
Tue, 24 Apr 2018 18:04:38 +0000 (11:04 -0700)
committerJanus Varmarken <varmarken@gmail.com>
Tue, 24 Apr 2018 18:04:38 +0000 (11:04 -0700)
Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java

index 903839dffda75fdddba0e7fc6b0ebc0865f9468f..30136654646efd312282930de4cd343797bc6511 100644 (file)
@@ -1,5 +1,8 @@
 package edu.uci.iotproject;
 
 package edu.uci.iotproject;
 
+import java.util.List;
+import java.util.Map;
+
 /**
  * Entry point of the application.
  *
 /**
  * Entry point of the application.
  *
@@ -11,4 +14,18 @@ public class Main {
         System.out.println("it works");
     }
 
         System.out.println("it works");
     }
 
+    private String cloudIPAddress(String hostName) {
+        if (hostName.equals("events.tplinkra.com"))
+            return 205.251.203.26;
+    }
+
+    // TODO move to separate class
+    // Add parameter that is the trace to be analyzed (most like the pcap library's representation of a flow)
+    public String findPattern(Map<String, List<Integer>> hostnameToPacketLengths, String smartPlugIp) {
+
+        // No difference, output "Complete match"
+        // If difference, output <Packet no, deviation from expected> for each packet
+        return null;
+    }
+
 }
 }