tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.link; |
2 | |||||
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame^] | 3 | import org.onlab.onos.net.ConnectPoint; |
4 | |||||
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 5 | /** |
6 | * Describes an infrastructure link. | ||||
7 | */ | ||||
8 | public interface LinkDescription { | ||||
9 | |||||
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame^] | 10 | /** |
11 | * Returns the link source. | ||||
12 | * | ||||
13 | * @return links source | ||||
14 | */ | ||||
15 | ConnectPoint src(); | ||||
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 16 | |
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame^] | 17 | /** |
18 | * Returns the link destination. | ||||
19 | * | ||||
20 | * @return links destination | ||||
21 | */ | ||||
22 | ConnectPoint dst(); | ||||
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 23 | |
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame^] | 24 | // Add further link attributes |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 25 | } |