blob: 6d5f1529820be4be1788da0c2c169cf15a5d2a9a [file] [log] [blame]
cheng fan48e832c2015-05-29 01:54:47 +08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
cheng fan48e832c2015-05-29 01:54:47 +08003 *
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.pcep.api;
17
18/**
19 * Description of a pcep tunnel hop node.a hop list consists of a number of hop
20 * node.
21 */
22public class PcepHopNodeDescription {
23 private PcepDpid deviceId;
24 private long portNum;
25
26 /**
27 * Get the pcepdpid of a node.
28 *
29 * @return device pcepdpid.
30 */
31 public PcepDpid getDeviceId() {
32 return deviceId;
33 }
34
35 /**
36 * Set the pcepdpid of a node.
37 *
38 * @param deviceId pcep dpid of a node.
39 */
40 public void setDeviceId(PcepDpid deviceId) {
41 this.deviceId = deviceId;
42 }
43
44 /**
45 * Get the port number of a node.
46 *
47 * @return port number.
48 */
49 public long getPortNum() {
50 return portNum;
51 }
52
53 /**
54 * Set the port number of a node.
55 *
56 * @param portNum port number of a node.
57 */
58 public void setPortNum(long portNum) {
59 this.portNum = portNum;
60 }
61
62}