blob: dc7654b96dd49642e4bcf1fb3ec71df5de12ef97 [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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.optical.cfg;
weibit38c42ed2014-10-09 19:03:54 -070017
18/**
19 * WDM Link Java data object converted from a JSON file.
20 */
Thomas Vachuska112c7032014-11-16 11:05:14 -080021@Deprecated
weibit38c42ed2014-10-09 19:03:54 -070022class WdmLink {
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 distance;
30 private double cost;
31 private int wavelengthNumber;
32 private long adminWeight;
33
34 public WdmLink(String name1, String name2) {
35 this.srcNodeName = name1;
36 this.snkNodeName = name2;
37 }
38
39 public WdmLink() {
40 // TODO Auto-generated constructor stub
41 }
42
43 public void setSrcNodeName(String name) {
44 this.srcNodeName = name;
45 }
46
47 public String getSrcNodeName() {
48 return this.srcNodeName;
49 }
50
51 public void setSnkNodeName(String name) {
52 this.snkNodeName = name;
53 }
54
55 public String getSnkNodeName() {
56 return this.snkNodeName;
57 }
58
59 public void setSrcNodeId(String nodeId) {
60 this.srcNodeId = nodeId;
61 }
62
63 public String getSrcNodeId() {
64 return this.srcNodeId;
65 }
66
67 public void setSnkNodeId(String nodeId) {
68 this.snkNodeId = nodeId;
69 }
70
71 public String getSnkNodeId() {
72 return this.snkNodeId;
73 }
74
75 public void setSrcPort(int port) {
76 this.srcPort = port;
77 }
78
79 public int getSrcPort() {
80 return this.srcPort;
81 }
82
83 public void setSnkPort(int port) {
84 this.snkPort = port;
85 }
86
87 public int getSnkPort() {
88 return this.snkPort;
89 }
90
91 public void setDistance(double x) {
92 this.distance = x;
93 }
94
95 public double getDistance() {
96 return this.distance;
97 }
98
99 public void setCost(double x) {
100 this.cost = x;
101 }
102
103 public double getCost() {
104 return this.cost;
105 }
106
107 public void setWavelengthNumber(int x) {
108 this.wavelengthNumber = x;
109 }
110
111 public int getWavelengthNumber() {
112 return this.wavelengthNumber;
113 }
114
115 public void setAdminWeight(long x) {
116 this.adminWeight = x;
117 }
118
119 public long getAdminWeight() {
120 return this.adminWeight;
121 }
122
123 @Override
124 public String toString() {
125 return new StringBuilder(" srcNodeName: ").append(this.srcNodeName)
126 .append(" snkNodeName: ").append(this.snkNodeName)
127 .append(" srcNodeId: ").append(this.srcNodeId)
128 .append(" snkNodeId: ").append(this.snkNodeId)
129 .append(" srcPort: ").append(this.srcPort)
130 .append(" snkPort: ").append(this.snkPort)
131 .append(" distance: ").append(this.distance)
132 .append(" cost: ").append(this.cost)
133 .append(" wavelengthNumber: ").append(this.wavelengthNumber)
134 .append(" adminWeight: ").append(this.adminWeight).toString();
135 }
136}
137