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.node; |
| 17 | |
| 18 | import java.util.List; |
| 19 | |
| 20 | import org.onosproject.tetopology.management.api.KeyId; |
| 21 | import org.onosproject.tetopology.management.api.TeTopologyEventSubject; |
| 22 | |
| 23 | /** |
| 24 | * Abstraction of a network node. |
| 25 | */ |
| 26 | public interface NetworkNode extends TeTopologyEventSubject { |
| 27 | |
| 28 | /** |
| 29 | * Returns the node id. |
| 30 | * |
| 31 | * @return node identifier |
| 32 | */ |
| 33 | KeyId nodeId(); |
| 34 | |
| 35 | /** |
| 36 | * Returns the supporting node ids. |
| 37 | * |
| 38 | * @return list of the ids of the supporting nodes |
| 39 | */ |
| 40 | List<NetworkNodeKey> getSupportingNodeIds(); |
| 41 | |
| 42 | /** |
| 43 | * Returns the node TE extension attributes. |
| 44 | * |
| 45 | * @return node TE extension attributes |
| 46 | */ |
| 47 | TeNode getTe(); |
| 48 | |
| 49 | /** |
| 50 | * Returns a collection of currently known termination points. |
| 51 | * |
| 52 | * @return a collection of termination points associated with this node |
| 53 | */ |
| 54 | List<TerminationPoint> getTerminationPoints(); |
| 55 | |
| 56 | /** |
| 57 | * Returns the termination point. |
| 58 | * |
| 59 | * @param tpId termination point id |
| 60 | * @return value of termination point |
| 61 | */ |
| 62 | TerminationPoint getTerminationPoint(KeyId tpId); |
| 63 | |
| 64 | } |