blob: 09cb010ce5751db4187c4841a8c4789b45dddaa1 [file] [log] [blame]
Aihua Guo1ce2dd12016-08-12 23:37:44 -04001/*
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 */
16package org.onosproject.tetopology.management.api.link;
17
18import java.util.List;
19
20import org.onosproject.tetopology.management.api.KeyId;
21import org.onosproject.tetopology.management.api.TeTopologyEventSubject;
22import org.onosproject.tetopology.management.api.node.TerminationPointKey;
23
24/**
25 * Abstraction of a base network link.
26 */
27public 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}