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