Skeletons for Intent-runtime, Flow-manager and Match-action modules.
This task is a part of ONOS-1395.
(Sub-tasks: ONOS-1397, ONOS-1398, ONOS-1400)
Change-Id: I30064f658b6c193aee8419079dad380163364475
diff --git a/src/main/java/net/onrc/onos/core/matchaction/match/OpticalMatch.java b/src/main/java/net/onrc/onos/core/matchaction/match/OpticalMatch.java
new file mode 100644
index 0000000..00bae0e
--- /dev/null
+++ b/src/main/java/net/onrc/onos/core/matchaction/match/OpticalMatch.java
@@ -0,0 +1,39 @@
+package net.onrc.onos.core.matchaction.match;
+
+/**
+ * A match object (traffic specifier) for optical nodes, flow-paths and intents.
+ * <p>
+ * This class does not have a switch ID and a port number. They are handled by
+ * MatchAction, IFlow or Intent class.
+ */
+public class OpticalMatch implements IMatch {
+
+ // Match fields
+ protected Integer srcLambda;
+
+ /**
+ * Constructor.
+ */
+ public OpticalMatch() {
+ this(null);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param srcLambda The source lambda. Null means the wild-card for the
+ * lambda.
+ */
+ public OpticalMatch(Integer srcLambda) {
+ this.srcLambda = srcLambda;
+ }
+
+ /**
+ * Gets the source lambda.
+ *
+ * @return The source lambda, or null if it was wild-card.
+ */
+ public Integer getSrcLambda() {
+ return srcLambda;
+ }
+}