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; |
tom | eadbb46 | 2014-09-07 16:10:19 -0700 | [diff] [blame^] | 4 | import org.onlab.onos.net.Link; |
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame] | 5 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 6 | /** |
7 | * Describes an infrastructure link. | ||||
8 | */ | ||||
9 | public interface LinkDescription { | ||||
10 | |||||
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame] | 11 | /** |
12 | * Returns the link source. | ||||
13 | * | ||||
14 | * @return links source | ||||
15 | */ | ||||
16 | ConnectPoint src(); | ||||
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 17 | |
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame] | 18 | /** |
19 | * Returns the link destination. | ||||
20 | * | ||||
21 | * @return links destination | ||||
22 | */ | ||||
23 | ConnectPoint dst(); | ||||
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 24 | |
tom | eadbb46 | 2014-09-07 16:10:19 -0700 | [diff] [blame^] | 25 | /** |
26 | * Returns the link type. | ||||
27 | * | ||||
28 | * @return link type | ||||
29 | */ | ||||
30 | Link.Type type(); | ||||
31 | |||||
32 | |||||
tom | 4c6606f | 2014-09-07 11:11:21 -0700 | [diff] [blame] | 33 | // Add further link attributes |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 34 | } |