blob: beca5af8c06561da190f8fe003aec65db6f7b965 [file] [log] [blame]
weibit38c42ed2014-10-09 19:03:54 -07001package org.onlab.onos.optical.cfg;
2
3/**
4 * ROADM java data object converted from a JSON file.
5 */
6class Roadm {
7 private String name;
8 private String nodeID;
9 private double longtitude;
10 private double latitude;
11 private int regenNum;
12
13 //TODO use the following attributes when needed for configurations
14 private int tPort10G;
15 private int tPort40G;
16 private int tPort100G;
17 private int wPort;
18
19 public Roadm() {
20 }
21
22 public Roadm(String name) {
23 this.name = name;
24 }
25
26 public void setName(String name) {
27 this.name = name;
28 }
29
30 public String getName() {
31 return this.name;
32 }
33
34 public void setNodeId(String nameId) {
35 this.nodeID = nameId;
36 }
37
38 public String getNodeId() {
39 return this.nodeID;
40 }
41
42 public void setLongtitude(double x) {
43 this.longtitude = x;
44 }
45
46 public double getLongtitude() {
47 return this.longtitude;
48 }
49
50 public void setLatitude(double y) {
51 this.latitude = y;
52 }
53
54 public double getLatitude() {
55 return this.latitude;
56 }
57
58 public void setRegenNum(int num) {
59 this.regenNum = num;
60 }
61 public int getRegenNum() {
62 return this.regenNum;
63 }
64
65 public void setTport10GNum(int num) {
66 this.tPort10G = num;
67 }
68 public int getTport10GNum() {
69 return this.tPort10G;
70 }
71
72 public void setTport40GNum(int num) {
73 this.tPort40G = num;
74 }
75 public int getTport40GNum() {
76 return this.tPort40G;
77 }
78
79 public void setTport100GNum(int num) {
80 this.tPort100G = num;
81 }
82 public int getTport100GNum() {
83 return this.tPort100G;
84 }
85
86 public void setWportNum(int num) {
87 this.wPort = num;
88 }
89 public int getWportNum() {
90 return this.wPort;
91 }
92
93 @Override
94 public String toString() {
95 return new StringBuilder(" ROADM Name: ").append(this.name)
96 .append(" nodeID: ").append(this.nodeID)
97 .append(" longtitude: ").append(this.longtitude)
98 .append(" latitude: ").append(this.latitude)
99 .append(" regenNum: ").append(this.regenNum)
100 .append(" 10GTportNum: ").append(this.tPort10G)
101 .append(" 40GTportNum: ").append(this.tPort40G)
102 .append(" 100GTportNum: ").append(this.tPort100G)
103 .append(" WportNum: ").append(this.wPort).toString();
104 }
105}
106