Attempting to add router's MAC address as a reference for packet direction in layer...
[pingpong.git] / Code / Projects / PacketLevelSignatureExtractor / src / main / java / edu / uci / iotproject / detection / layer2 / Layer2RangeMatcher.java
index 97fa072d313ae3490a2e9ead0f8eb948c0c640ae..298a0abdf31093f33650643a5da2a311bfe41f6d 100644 (file)
@@ -31,12 +31,14 @@ public class Layer2RangeMatcher extends Layer2AbstractMatcher {
      * @param lowerBound The lower bound of the sequence to match against (search for).
      * @param upperBound The upper bound of the sequence to match against (search for).
      * @param eps The epsilon value used in the DBSCAN algorithm.
+     * @param trainingRouterWlanMac The training router's WLAN MAC (used for determining the direction of packets).
+     * @param routerWlanMac The target trace router's WLAN MAC (used for determining the direction of packets).
      */
     public Layer2RangeMatcher(List<PcapPacket> lowerBound, List<PcapPacket> upperBound,
-                              int inclusionTimeMillis, double eps) {
+                              int inclusionTimeMillis, double eps, String trainingRouterWlanMac, String routerWlanMac) {
         // TODO: Just use the lower bound since both lower and upper bounds' packets essentially have the same direction
         // TODO: for the same position in the array. Both arrays also have the same length.
-        super(lowerBound);
+        super(lowerBound, trainingRouterWlanMac, routerWlanMac);
         mLowerBound = lowerBound;
         mUpperBound = upperBound;
         mEps = eps;