blob: b1be82c5c16e8630326b9383c27fe709f3849b2c [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;
tomeadbb462014-09-07 16:10:19 -07004import org.onlab.onos.net.Link;
tom4c6606f2014-09-07 11:11:21 -07005
tom0eb04ca2014-08-25 14:34:51 -07006/**
7 * Describes an infrastructure link.
8 */
9public interface LinkDescription {
10
tom4c6606f2014-09-07 11:11:21 -070011 /**
12 * Returns the link source.
13 *
14 * @return links source
15 */
16 ConnectPoint src();
tom0eb04ca2014-08-25 14:34:51 -070017
tom4c6606f2014-09-07 11:11:21 -070018 /**
19 * Returns the link destination.
20 *
21 * @return links destination
22 */
23 ConnectPoint dst();
tom0eb04ca2014-08-25 14:34:51 -070024
tomeadbb462014-09-07 16:10:19 -070025 /**
26 * Returns the link type.
27 *
28 * @return link type
29 */
30 Link.Type type();
31
32
tom4c6606f2014-09-07 11:11:21 -070033 // Add further link attributes
tom0eb04ca2014-08-25 14:34:51 -070034}