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/api/flowmanager/IFlow.java b/src/main/java/net/onrc/onos/api/flowmanager/IFlow.java
new file mode 100644
index 0000000..66f116a
--- /dev/null
+++ b/src/main/java/net/onrc/onos/api/flowmanager/IFlow.java
@@ -0,0 +1,38 @@
+package net.onrc.onos.api.flowmanager;
+
+import net.onrc.onos.api.batchoperation.IBatchOperationTarget;
+import net.onrc.onos.core.matchaction.MatchActionPlan;
+import net.onrc.onos.core.matchaction.match.IMatch;
+
+/**
+ * An interface class to define flow object which is managed by
+ * FlowManagerModule.
+ * <p>
+ * The flow objects (eg. path, tree, disjoint-paths, etc.) must implement this
+ * interface.
+ */
+public interface IFlow extends IBatchOperationTarget {
+ /**
+ * Gets ID for this flow object.
+ *
+ * @return ID for this object.
+ */
+ @Override
+ public String getId();
+
+ /**
+ * Gets traffic filter for this flow object.
+ *
+ * @return a traffic filter for this flow object.
+ */
+ public IMatch getMatch();
+
+ /**
+ * Compiles this object to MatchAction plan.
+ * <p>
+ * This method is called by FlowManagerModule to create MatchAction plans.
+ *
+ * @return a MatchAction plan of this flow object.
+ */
+ public MatchActionPlan compile();
+}