add a traffic engineering use case and samples of NetworkGraph classes as test codes
Change-Id: Id655106309d032a2e99e26887db1836d2f598ef8
diff --git a/src/test/java/net/onrc/onos/ofcontroller/app/Path.java b/src/test/java/net/onrc/onos/ofcontroller/app/Path.java
new file mode 100644
index 0000000..318dbda
--- /dev/null
+++ b/src/test/java/net/onrc/onos/ofcontroller/app/Path.java
@@ -0,0 +1,25 @@
+package net.onrc.onos.ofcontroller.app;
+
+import java.util.Iterator;
+import java.util.LinkedList;
+
+/**
+ * Base class for Path representation
+ * This code is valid for the architectural study purpose only.
+ * @author Toshio Koide (t-koide@onlab.us)
+ */
+public class Path extends LinkedList<Link> {
+ private static final long serialVersionUID = 7127274096495173415L;
+
+ @Override
+ public String toString() {
+ StringBuilder builder = new StringBuilder();
+ Iterator<Link> i = this.iterator();
+ while (i.hasNext()) {
+ builder.append(i.next().toString());
+ if (i.hasNext())
+ builder.append(", ");
+ }
+ return builder.toString();
+ }
+}