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