1 package edu.uci.iotproject;
3 import java.util.Collections;
7 * TODO add class documentation.
9 * @author Janus Varmarken
11 public class FlowPattern {
13 private final String patternId;
16 * The hostname that this {@code FlowPattern} is associated with.
18 private final String hostname;
21 * The order of packet lengths that defines this {@link FlowPattern}
23 private final List<Integer> flowPacketOrder;
25 public FlowPattern(String patternId, String hostname, List<Integer> flowPacketOrder) {
26 this.patternId = patternId;
27 this.hostname = hostname;
28 this.flowPacketOrder = Collections.unmodifiableList(flowPacketOrder);
31 public String getHostname() {
36 * Get the the sequence of packet lengths that defines this {@code FlowPattern}.
37 * @return the the sequence of packet lengths that defines this {@code FlowPattern}.
39 public List<Integer> getPacketOrder() {
40 return flowPacketOrder;