Initial Match Action Module implementation
This patch set implements the Match Action framework that
Brian and I have been working on. Still a work in progress,
not all implementations complete, and not all javadocs and
tests in place.
Unit tests are currently not working, so they are commented out.
Change-Id: I61d79555c6bbb2d5437b2433613ab47ab8cea4f6
diff --git a/src/main/java/net/onrc/onos/core/matchaction/SwitchResultList.java b/src/main/java/net/onrc/onos/core/matchaction/SwitchResultList.java
new file mode 100644
index 0000000..2523556
--- /dev/null
+++ b/src/main/java/net/onrc/onos/core/matchaction/SwitchResultList.java
@@ -0,0 +1,21 @@
+package net.onrc.onos.core.matchaction;
+import java.util.LinkedList;
+
+/**
+ * This class wraps a list of SwitchResults. It is required to be able to pass
+ * SwitchResults via a Hazelcast channel.
+ */
+public class SwitchResultList extends LinkedList<SwitchResult> {
+
+ static final long serialVersionUID = -4966789015808022563L;
+
+ /**
+ * Add a switch result to the list.
+ *
+ * @param result switch result to add to the list
+ * @return true
+ */
+ public boolean add(SwitchResult result) {
+ return super.add(result);
+ }
+}