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