Add id field to Intent classes
Change-Id: If3938446de9b65f84e7bbe1a9f5adb8b26de475a
diff --git a/src/main/java/net/onrc/onos/intent/PathIntent.java b/src/main/java/net/onrc/onos/intent/PathIntent.java
index 22948b9..07f53e1 100644
--- a/src/main/java/net/onrc/onos/intent/PathIntent.java
+++ b/src/main/java/net/onrc/onos/intent/PathIntent.java
@@ -9,6 +9,7 @@
protected Path path;
protected Double bandwidth;
protected Intent parentIntent;
+ protected int id;
/**
*
@@ -17,8 +18,10 @@
* @param bandwidth bandwidth which should be allocated for the path.
* If null, it means no intent for bandwidth allocation (best effort).
* @param parentIntent parent intent. If null, it means this is root intent.
+ * @param id
*/
- public PathIntent(Path path, Double bandwidth, Intent parentIntent) {
+ public PathIntent(String id, Path path, Double bandwidth, Intent parentIntent) {
+ super(id);
this.path = path;
this.bandwidth = bandwidth;
this.parentIntent = parentIntent;