blob: 318dbdae24d49343cb34d1d18ccf49335fea1c32 [file] [log] [blame]
Toshio Koide5f260652014-01-30 14:41:12 -08001package net.onrc.onos.ofcontroller.app;
2
3import java.util.Iterator;
4import java.util.LinkedList;
5
6/**
7 * Base class for Path representation
8 * This code is valid for the architectural study purpose only.
9 * @author Toshio Koide (t-koide@onlab.us)
10 */
11public class Path extends LinkedList<Link> {
12 private static final long serialVersionUID = 7127274096495173415L;
13
14 @Override
15 public String toString() {
16 StringBuilder builder = new StringBuilder();
17 Iterator<Link> i = this.iterator();
18 while (i.hasNext()) {
19 builder.append(i.next().toString());
20 if (i.hasNext())
21 builder.append(", ");
22 }
23 return builder.toString();
24 }
25}