blob: 4b34ad63b117c913f370f6e7733ba5f8f58d53b8 [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -07001package org.onlab.onos.net.link;
2
tom4c6606f2014-09-07 11:11:21 -07003import org.onlab.onos.net.ConnectPoint;
Yuta HIGUCHI39ede6a2014-10-03 15:23:33 -07004import org.onlab.onos.net.Description;
tomeadbb462014-09-07 16:10:19 -07005import org.onlab.onos.net.Link;
tom4c6606f2014-09-07 11:11:21 -07006
tom0eb04ca2014-08-25 14:34:51 -07007/**
8 * Describes an infrastructure link.
9 */
Yuta HIGUCHI39ede6a2014-10-03 15:23:33 -070010public interface LinkDescription extends Description {
tom0eb04ca2014-08-25 14:34:51 -070011
tom4c6606f2014-09-07 11:11:21 -070012 /**
13 * Returns the link source.
14 *
15 * @return links source
16 */
17 ConnectPoint src();
tom0eb04ca2014-08-25 14:34:51 -070018
tom4c6606f2014-09-07 11:11:21 -070019 /**
20 * Returns the link destination.
21 *
22 * @return links destination
23 */
24 ConnectPoint dst();
tom0eb04ca2014-08-25 14:34:51 -070025
tomeadbb462014-09-07 16:10:19 -070026 /**
27 * Returns the link type.
28 *
29 * @return link type
30 */
31 Link.Type type();
32
33
tom4c6606f2014-09-07 11:11:21 -070034 // Add further link attributes
tom0eb04ca2014-08-25 14:34:51 -070035}