blob: fb1d44b4da1cd6aa89d6773f096aca996dc2d80a [file] [log] [blame]
Thomas Vachuska781d18b2014-10-27 10:31:25 -07001/*
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07002 * Copyright 2014 Open Networking Laboratory
Thomas Vachuska781d18b2014-10-27 10:31:25 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * 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
Thomas Vachuska781d18b2014-10-27 10:31:25 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * 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.
Thomas Vachuska781d18b2014-10-27 10:31:25 -070015 */
weibit38c42ed2014-10-09 19:03:54 -070016package org.onlab.onos.optical.cfg;
17
18/**
19 * Packet-optical link Java data object.
20 */
Thomas Vachuska112c7032014-11-16 11:05:14 -080021@Deprecated
weibit38c42ed2014-10-09 19:03:54 -070022class PktOptLink {
23 private String srcNodeName;
24 private String snkNodeName;
25 private String srcNodeId;
26 private String snkNodeId;
27 private int srcPort;
28 private int snkPort;
29 private double bandwidth;
30 private double cost;
31 private long adminWeight;
32
33 public PktOptLink(String srcName, String snkName) {
34 this.srcNodeName = srcName;
35 this.snkNodeName = snkName;
36 }
37
38 public PktOptLink() {
39 // TODO Auto-generated constructor stub
40 }
41
42 public void setSrcNodeName(String name) {
43 this.srcNodeName = name;
44 }
45
46 public String getSrcNodeName() {
47 return this.srcNodeName;
48 }
49
50 public void setSnkNodeName(String name) {
51 this.snkNodeName = name;
52 }
53
54 public String getSnkNodeName() {
55 return this.snkNodeName;
56 }
57
58 public void setSrcNodeId(String nodeId) {
59 this.srcNodeId = nodeId;
60 }
61
62 public String getSrcNodeId() {
63 return this.srcNodeId;
64 }
65
66 public void setSnkNodeId(String nodeId) {
67 this.snkNodeId = nodeId;
68 }
69
70 public String getSnkNodeId() {
71 return this.snkNodeId;
72 }
73
74 public void setSrcPort(int port) {
75 this.srcPort = port;
76 }
77
78 public int getSrcPort() {
79 return this.srcPort;
80 }
81
82 public void setSnkPort(int port) {
83 this.snkPort = port;
84 }
85
86 public int getSnkPort() {
87 return this.snkPort;
88 }
89
90 public void setBandwdith(double x) {
91 this.bandwidth = x;
92 }
93
94 public double getBandwidth() {
95 return this.bandwidth;
96 }
97
98 public void setCost(double x) {
99 this.cost = x;
100 }
101
102 public double getCost() {
103 return this.cost;
104 }
105
106 public void setAdminWeight(long x) {
107 this.adminWeight = x;
108 }
109
110 public long getAdminWeight() {
111 return this.adminWeight;
112 }
113
114 @Override
115 public String toString() {
116 return new StringBuilder(" srcNodeName: ").append(this.srcNodeName)
117 .append(" snkNodeName: ").append(this.snkNodeName)
118 .append(" srcNodeId: ").append(this.srcNodeId)
119 .append(" snkNodeId: ").append(this.snkNodeId)
120 .append(" srcPort: ").append(this.srcPort)
121 .append(" snkPort: ").append(this.snkPort)
122 .append(" bandwidth: ").append(this.bandwidth)
123 .append(" cost: ").append(this.cost)
124 .append(" adminWeight: ").append(this.adminWeight).toString();
125 }
126}