blob: 677555ea72bce48aee7b7bb0e509783ff8506ad7 [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 * ROADM java data object converted from a JSON file.
Sho SHIMIZUbe63b232015-06-30 10:57:58 -070020 *
21 * @deprecated in Cardinal Release
weibit38c42ed2014-10-09 19:03:54 -070022 */
Thomas Vachuska112c7032014-11-16 11:05:14 -080023@Deprecated
weibit38c42ed2014-10-09 19:03:54 -070024class Roadm {
25 private String name;
26 private String nodeID;
27 private double longtitude;
28 private double latitude;
29 private int regenNum;
30
31 //TODO use the following attributes when needed for configurations
32 private int tPort10G;
33 private int tPort40G;
34 private int tPort100G;
35 private int wPort;
36
37 public Roadm() {
38 }
39
40 public Roadm(String name) {
41 this.name = name;
42 }
43
44 public void setName(String name) {
45 this.name = name;
46 }
47
48 public String getName() {
49 return this.name;
50 }
51
52 public void setNodeId(String nameId) {
53 this.nodeID = nameId;
54 }
55
56 public String getNodeId() {
57 return this.nodeID;
58 }
59
60 public void setLongtitude(double x) {
61 this.longtitude = x;
62 }
63
64 public double getLongtitude() {
65 return this.longtitude;
66 }
67
68 public void setLatitude(double y) {
69 this.latitude = y;
70 }
71
72 public double getLatitude() {
73 return this.latitude;
74 }
75
76 public void setRegenNum(int num) {
77 this.regenNum = num;
78 }
79 public int getRegenNum() {
80 return this.regenNum;
81 }
82
83 public void setTport10GNum(int num) {
84 this.tPort10G = num;
85 }
86 public int getTport10GNum() {
87 return this.tPort10G;
88 }
89
90 public void setTport40GNum(int num) {
91 this.tPort40G = num;
92 }
93 public int getTport40GNum() {
94 return this.tPort40G;
95 }
96
97 public void setTport100GNum(int num) {
98 this.tPort100G = num;
99 }
100 public int getTport100GNum() {
101 return this.tPort100G;
102 }
103
104 public void setWportNum(int num) {
105 this.wPort = num;
106 }
107 public int getWportNum() {
108 return this.wPort;
109 }
110
111 @Override
112 public String toString() {
113 return new StringBuilder(" ROADM Name: ").append(this.name)
114 .append(" nodeID: ").append(this.nodeID)
115 .append(" longtitude: ").append(this.longtitude)
116 .append(" latitude: ").append(this.latitude)
117 .append(" regenNum: ").append(this.regenNum)
118 .append(" 10GTportNum: ").append(this.tPort10G)
119 .append(" 40GTportNum: ").append(this.tPort40G)
120 .append(" 100GTportNum: ").append(this.tPort100G)
121 .append(" WportNum: ").append(this.wPort).toString();
122 }
123}
124