Separating pattern collection and analysis into 2 different threads.
[pingpong.git] / Code / Projects / SmartPlugDetector / src / main / java / edu / uci / iotproject / FlowPattern.java
index 7ec2a74379554e955b5d363a642be1716d7cea75..a083e49cd7d9fcd2dcf3c25447b10b536e40a8ca 100644 (file)
@@ -54,10 +54,18 @@ public class FlowPattern {
 
     /**
      * Get the the sequence of packet lengths that defines this {@code FlowPattern}.
-     * @return the the sequence of packet lengths that defines this {@code FlowPattern}.
+     * @return the sequence of packet lengths that defines this {@code FlowPattern}.
      */
     public List<Integer> getPacketOrder() {
         return flowPacketOrder;
     }
+    
+    /**
+     * Get the length of the List of {@code FlowPattern}.
+     * @return the length of the List of {@code FlowPattern}.
+     */
+    public int getLength() {
+        return flowPacketOrder.size();
+    }
 
 }