Drop "I" prefix from IAction, IMatch, IMatchActionService. (ONOS-1879)
Change-Id: I6b6e0cc98570d5b95a46a9f204cf330f4cf63273
diff --git a/src/main/java/net/onrc/onos/core/matchaction/MatchActionService.java b/src/main/java/net/onrc/onos/core/matchaction/MatchActionService.java
new file mode 100644
index 0000000..02a7ef3
--- /dev/null
+++ b/src/main/java/net/onrc/onos/core/matchaction/MatchActionService.java
@@ -0,0 +1,70 @@
+package net.onrc.onos.core.matchaction;
+
+import java.util.Collection;
+import java.util.EventListener;
+
+import net.onrc.onos.api.flowmanager.ConflictDetectionPolicy;
+
+/**
+ * An interface for the match-action service.
+ */
+public interface MatchActionService {
+ /**
+ * Adds a new match-action entry.
+ *
+ * @param matchAction MatchAction object to be added.
+ * @return true if succeeded, false otherwise.
+ */
+ boolean addMatchAction(MatchAction matchAction);
+
+ /**
+ * Removes the existing match-action entry.
+ *
+ * @param id ID for MatchaAction object to be removed.
+ * @return true if succeeded, false otherwise.
+ */
+ boolean removeMatchAction(MatchActionId id);
+
+ /**
+ * Gets the set of match-action entries.
+ *
+ * @return The set of match-action entries.
+ */
+ Collection<MatchAction> getMatchActions();
+
+ /**
+ * Executes match-action operation plan.
+ *
+ * @param plan MatchActionPlan to be executed.
+ * @return true if succeeded, false otherwise.
+ */
+ boolean executePlan(MatchActionPlan plan);
+
+ /**
+ * Sets a conflict detection policy.
+ *
+ * @param policy ConflictDetectionPolicy object to be set.
+ */
+ void setConflictDetectionPolicy(ConflictDetectionPolicy policy);
+
+ /**
+ * Gets the conflict detection policy.
+ *
+ * @return ConflictDetectionPolicy object being applied currently.
+ */
+ ConflictDetectionPolicy getConflictDetectionPolicy();
+
+ /**
+ * Adds event listener to this service.
+ *
+ * @param listener EventListener to be added.
+ */
+ void addEventListener(EventListener listener);
+
+ /**
+ * Removes event listener from this service.
+ *
+ * @param listener EventListener to be removed.
+ */
+ void removeEventListener(EventListener listener);
+}