blob: 30782431941ecaa831ec745c0f0856e0d0253a44 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
tom0eb04ca2014-08-25 14:34:51 -070016package org.onlab.onos.net.link;
17
tom4c6606f2014-09-07 11:11:21 -070018import org.onlab.onos.net.ConnectPoint;
Yuta HIGUCHI39ede6a2014-10-03 15:23:33 -070019import org.onlab.onos.net.Description;
tomeadbb462014-09-07 16:10:19 -070020import org.onlab.onos.net.Link;
tom4c6606f2014-09-07 11:11:21 -070021
tom0eb04ca2014-08-25 14:34:51 -070022/**
23 * Describes an infrastructure link.
24 */
Yuta HIGUCHI39ede6a2014-10-03 15:23:33 -070025public interface LinkDescription extends Description {
tom0eb04ca2014-08-25 14:34:51 -070026
tom4c6606f2014-09-07 11:11:21 -070027 /**
28 * Returns the link source.
29 *
30 * @return links source
31 */
32 ConnectPoint src();
tom0eb04ca2014-08-25 14:34:51 -070033
tom4c6606f2014-09-07 11:11:21 -070034 /**
35 * Returns the link destination.
36 *
37 * @return links destination
38 */
39 ConnectPoint dst();
tom0eb04ca2014-08-25 14:34:51 -070040
tomeadbb462014-09-07 16:10:19 -070041 /**
42 * Returns the link type.
43 *
44 * @return link type
45 */
46 Link.Type type();
47
tom4c6606f2014-09-07 11:11:21 -070048 // Add further link attributes
tom0eb04ca2014-08-25 14:34:51 -070049}