Adding skipped packets correlation.
[pingpong.git] / Code / Projects / PacketLevelSignatureExtractor / src / main / java / edu / uci / iotproject / detection / SignatureDetectorObserver.java
1 package edu.uci.iotproject.detection;
2
3 import org.pcap4j.core.PcapPacket;
4
5 import java.util.List;
6
7 /**
8  * Used for registering for notifications from a signature detector.
9  *
10  * @author Janus Varmarken {@literal <jvarmark@uci.edu>}
11  * @author Rahmadi Trimananda {@literal <rtrimana@uci.edu>}
12  */
13 public interface SignatureDetectorObserver {
14
15     /**
16      * Invoked when the signature detector has detected the presence of a signature in the traffic that it's examining.
17      * @param searchedSignature The signature that the signature detector reporting the match is searching for.
18      * @param matchingTraffic The actual traffic trace that matches the searched signature.
19      */
20     void onSignatureDetected(List<List<List<PcapPacket>>> searchedSignature, List<List<PcapPacket>> matchingTraffic);
21
22 }