commit | f83aa4427c0307b3ab309b316e769b992add1b7d | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Tue Feb 26 14:09:01 2013 -0800 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Tue Feb 26 14:09:01 2013 -0800 |
tree | f0c30670b950931f4cfb0c43e4990eaaddcfe7b6 | |
parent | 2013cbbebcfb4f27a3cd5b89f4e05c384e85f707 [diff] |
Reimplement the shortest path computation by using the new DataPath and FlowEntry containers.
diff --git a/src/main/java/net/floodlightcontroller/util/DataPath.java b/src/main/java/net/floodlightcontroller/util/DataPath.java index 9ec9380..71e0a2f 100644 --- a/src/main/java/net/floodlightcontroller/util/DataPath.java +++ b/src/main/java/net/floodlightcontroller/util/DataPath.java
@@ -19,6 +19,7 @@ * Default constructor. */ public DataPath() { + flowEntries = new ArrayList<FlowEntry>(); } /**
diff --git a/src/main/java/net/floodlightcontroller/util/Port.java b/src/main/java/net/floodlightcontroller/util/Port.java index 52fdf50..19bbf8f 100644 --- a/src/main/java/net/floodlightcontroller/util/Port.java +++ b/src/main/java/net/floodlightcontroller/util/Port.java
@@ -16,6 +16,15 @@ } /** + * Constructor from another entry. + * + * @param other the other entry to use. + */ + public Port(Port other) { + this.value = other.value(); + } + + /** * Constructor from a long value. * * @param value the value to use.