Aihua Guo | 1ce2dd1 | 2016-08-12 23:37:44 -0400 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2016 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 | */ |
| 16 | package org.onosproject.tetopology.management.api.link; |
| 17 | |
| 18 | import java.util.List; |
| 19 | |
| 20 | import org.onosproject.tetopology.management.api.KeyId; |
| 21 | import org.onosproject.tetopology.management.api.TeTopologyEventSubject; |
| 22 | import org.onosproject.tetopology.management.api.node.TerminationPointKey; |
| 23 | |
| 24 | /** |
| 25 | * Abstraction of a base network link. |
| 26 | */ |
| 27 | public interface NetworkLink extends TeTopologyEventSubject { |
| 28 | |
| 29 | /** |
| 30 | * Returns the link id. |
| 31 | * |
| 32 | * @return link identifier |
| 33 | */ |
| 34 | KeyId linkId(); |
| 35 | |
| 36 | /** |
| 37 | * Returns the link source termination point. |
| 38 | * |
| 39 | * @return source link termination point id |
| 40 | */ |
| 41 | TerminationPointKey getSource(); |
| 42 | |
| 43 | /** |
| 44 | * Returns the link destination termination point. |
| 45 | * |
| 46 | * @return destination link termination point id |
| 47 | */ |
| 48 | TerminationPointKey getDestination(); |
| 49 | |
| 50 | /** |
| 51 | * Returns the supporting link ids. |
| 52 | * |
| 53 | * @return list of the ids of the supporting links |
| 54 | */ |
| 55 | List<NetworkLinkKey> getSupportingLinkIds(); |
| 56 | |
| 57 | /** |
| 58 | * Returns the link te extension. |
| 59 | * |
| 60 | * @return TE link attributes |
| 61 | */ |
| 62 | TeLink getTe(); |
| 63 | |
| 64 | } |