tom | 64b7aac | 2014-08-26 00:18:21 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net; |
| 2 | |
| 3 | import org.onlab.onos.net.provider.Provided; |
| 4 | |
| 5 | /** |
| 6 | * Abstraction of a network infrastructure link. |
| 7 | */ |
tom | 18567e9 | 2014-08-26 01:39:47 -0700 | [diff] [blame^] | 8 | public interface Link extends Provided { // TODO: Also should extend graph Edge once the graph module is checked in |
| 9 | |
| 10 | /** |
| 11 | * Coarse representation of the link type. |
| 12 | */ |
| 13 | public enum Type { |
| 14 | /** |
| 15 | * Signifies that this is a direct single-segment link. |
| 16 | */ |
| 17 | DIRECT, |
| 18 | |
| 19 | /** |
| 20 | * Signifies that this link is potentially comprised from multiple |
| 21 | * underlying segments or hops, e.g. optical links, tunnel links, |
| 22 | * multi-hop links spanning 'dark' switches |
| 23 | */ |
| 24 | INDIRECT |
| 25 | } |
tom | 64b7aac | 2014-08-26 00:18:21 -0700 | [diff] [blame] | 26 | |
| 27 | /** |
| 28 | * Returns the link source connection point. |
| 29 | * |
| 30 | * @return link source connection point |
| 31 | */ |
| 32 | ConnectPoint src(); |
| 33 | |
| 34 | /** |
| 35 | * Returns the link destination connection point. |
| 36 | * |
| 37 | * @return link destination connection point |
| 38 | */ |
| 39 | ConnectPoint dst(); |
| 40 | |
tom | 18567e9 | 2014-08-26 01:39:47 -0700 | [diff] [blame^] | 41 | // LinkInfo info(); // Additional link information / decorations |
| 42 | |
tom | 64b7aac | 2014-08-26 00:18:21 -0700 | [diff] [blame] | 43 | } |