1 package edu.uci.iotproject.detection;
3 import org.pcap4j.core.PcapPacket;
8 * Interface used by client code to register for receiving a notification whenever an {@link AbstractClusterMatcher}
9 * detects traffic that matches an element of its associated cluster.
11 * @author Janus Varmarken {@literal <jvarmark@uci.edu>}
12 * @author Rahmadi Trimananda {@literal <rtrimana@uci.edu>}
14 public interface ClusterMatcherObserver {
17 * Callback that is invoked by an {@link AbstractClusterMatcher} whenever it detects traffic that matches an element
18 * of its associated cluster.
20 * @param clusterMatcher The {@link AbstractClusterMatcher} that detected a match (i.e., classified traffic as
21 * pertaining to its associated cluster).
22 * @param match The traffic that was deemed to match the cluster associated with {@code clusterMatcher}.
24 void onMatch(AbstractClusterMatcher clusterMatcher, List<PcapPacket> match);