Committed by
Gerrit Code Review
Remove deprecated Optical provider
Change-Id: Ifaa67ec9a5eb93a8b6b16fda3351db381ac47590
Showing
8 changed files
with
0 additions
and
695 deletions
apps/optical/src/main/java/org/onosproject/optical/cfg/OpticalConfigProvider.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
apps/optical/src/main/java/org/onosproject/optical/cfg/OpticalLinkDescription.java
deleted
100644 → 0
| 1 | -/* | ||
| 2 | - * Copyright 2014 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * 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 | ||
| 7 | - * | ||
| 8 | - * 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. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.optical.cfg; | ||
| 17 | - | ||
| 18 | -import com.fasterxml.jackson.databind.JsonNode; | ||
| 19 | -import org.onlab.util.HexString; | ||
| 20 | - | ||
| 21 | -import java.util.Map; | ||
| 22 | - | ||
| 23 | -/** | ||
| 24 | - * Public class corresponding to JSON described data model. | ||
| 25 | - * | ||
| 26 | - * @deprecated in Cardinal Release | ||
| 27 | - */ | ||
| 28 | -@Deprecated | ||
| 29 | -public class OpticalLinkDescription { | ||
| 30 | - protected String type; | ||
| 31 | - protected Boolean allowed; | ||
| 32 | - protected long dpid1; | ||
| 33 | - protected long dpid2; | ||
| 34 | - protected String nodeDpid1; | ||
| 35 | - protected String nodeDpid2; | ||
| 36 | - protected Map<String, JsonNode> params; | ||
| 37 | - protected Map<String, String> publishAttributes; | ||
| 38 | - | ||
| 39 | - public String getType() { | ||
| 40 | - return type; | ||
| 41 | - } | ||
| 42 | - | ||
| 43 | - public void setType(String type) { | ||
| 44 | - this.type = type; | ||
| 45 | - } | ||
| 46 | - | ||
| 47 | - public Boolean isAllowed() { | ||
| 48 | - return allowed; | ||
| 49 | - } | ||
| 50 | - | ||
| 51 | - public void setAllowed(Boolean allowed) { | ||
| 52 | - this.allowed = allowed; | ||
| 53 | - } | ||
| 54 | - | ||
| 55 | - public String getNodeDpid1() { | ||
| 56 | - return nodeDpid1; | ||
| 57 | - } | ||
| 58 | - | ||
| 59 | - public void setNodeDpid1(String nodeDpid1) { | ||
| 60 | - this.nodeDpid1 = nodeDpid1; | ||
| 61 | - this.dpid1 = HexString.toLong(nodeDpid1); | ||
| 62 | - } | ||
| 63 | - | ||
| 64 | - public String getNodeDpid2() { | ||
| 65 | - return nodeDpid2; | ||
| 66 | - } | ||
| 67 | - | ||
| 68 | - public void setNodeDpid2(String nodeDpid2) { | ||
| 69 | - this.nodeDpid2 = nodeDpid2; | ||
| 70 | - this.dpid2 = HexString.toLong(nodeDpid2); | ||
| 71 | - } | ||
| 72 | - | ||
| 73 | - public long getDpid1() { | ||
| 74 | - return dpid1; | ||
| 75 | - } | ||
| 76 | - | ||
| 77 | - public void setDpid1(long dpid1) { | ||
| 78 | - this.dpid1 = dpid1; | ||
| 79 | - this.nodeDpid1 = HexString.toHexString(dpid1); | ||
| 80 | - } | ||
| 81 | - | ||
| 82 | - public long getDpid2() { | ||
| 83 | - return dpid2; | ||
| 84 | - } | ||
| 85 | - | ||
| 86 | - public void setDpid2(long dpid2) { | ||
| 87 | - this.dpid2 = dpid2; | ||
| 88 | - this.nodeDpid2 = HexString.toHexString(dpid2); | ||
| 89 | - } | ||
| 90 | - | ||
| 91 | - public Map<String, JsonNode> getParams() { | ||
| 92 | - return params; | ||
| 93 | - } | ||
| 94 | - | ||
| 95 | - public void setParams(Map<String, JsonNode> params) { | ||
| 96 | - this.params = params; | ||
| 97 | - } | ||
| 98 | - | ||
| 99 | - public Map<String, String> getPublishAttributes() { | ||
| 100 | - return publishAttributes; | ||
| 101 | - } | ||
| 102 | - | ||
| 103 | - public void setPublishAttributes(Map<String, String> publishAttributes) { | ||
| 104 | - this.publishAttributes = publishAttributes; | ||
| 105 | - } | ||
| 106 | - | ||
| 107 | -} | ||
| 108 | - |
| 1 | -/* | ||
| 2 | - * Copyright 2014 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * 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 | ||
| 7 | - * | ||
| 8 | - * 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. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.optical.cfg; | ||
| 17 | - | ||
| 18 | -import java.util.ArrayList; | ||
| 19 | -import java.util.List; | ||
| 20 | - | ||
| 21 | -import org.slf4j.Logger; | ||
| 22 | -import org.slf4j.LoggerFactory; | ||
| 23 | - | ||
| 24 | -/** | ||
| 25 | - * Public class corresponding to JSON described data model. | ||
| 26 | - * | ||
| 27 | - * @deprecated in Cardinal Release | ||
| 28 | - */ | ||
| 29 | -@Deprecated | ||
| 30 | -public class OpticalNetworkConfig { | ||
| 31 | - protected static final Logger log = LoggerFactory.getLogger(OpticalNetworkConfig.class); | ||
| 32 | - | ||
| 33 | - private List<OpticalSwitchDescription> opticalSwitches; | ||
| 34 | - private List<OpticalLinkDescription> opticalLinks; | ||
| 35 | - | ||
| 36 | - public OpticalNetworkConfig() { | ||
| 37 | - opticalSwitches = new ArrayList<>(); | ||
| 38 | - opticalLinks = new ArrayList<>(); | ||
| 39 | - } | ||
| 40 | - | ||
| 41 | - public List<OpticalSwitchDescription> getOpticalSwitches() { | ||
| 42 | - return opticalSwitches; | ||
| 43 | - } | ||
| 44 | - | ||
| 45 | - public void setOpticalSwitches(List<OpticalSwitchDescription> switches) { | ||
| 46 | - this.opticalSwitches = switches; | ||
| 47 | - } | ||
| 48 | - | ||
| 49 | - public List<OpticalLinkDescription> getOpticalLinks() { | ||
| 50 | - return opticalLinks; | ||
| 51 | - } | ||
| 52 | - | ||
| 53 | - public void setOpticalLinks(List<OpticalLinkDescription> links) { | ||
| 54 | - this.opticalLinks = links; | ||
| 55 | - } | ||
| 56 | - | ||
| 57 | -} | ||
| 58 | - |
apps/optical/src/main/java/org/onosproject/optical/cfg/OpticalSwitchDescription.java
deleted
100644 → 0
| 1 | -/* | ||
| 2 | - * Copyright 2014 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * 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 | ||
| 7 | - * | ||
| 8 | - * 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. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.optical.cfg; | ||
| 17 | - | ||
| 18 | -import com.fasterxml.jackson.annotation.JsonProperty; | ||
| 19 | -import com.fasterxml.jackson.databind.JsonNode; | ||
| 20 | -import org.onlab.util.HexString; | ||
| 21 | - | ||
| 22 | -import java.util.Map; | ||
| 23 | - | ||
| 24 | -/** | ||
| 25 | - * Public class corresponding to JSON described data model. | ||
| 26 | - * | ||
| 27 | - * @deprecated in Cardinal Release | ||
| 28 | - */ | ||
| 29 | -@Deprecated | ||
| 30 | -public class OpticalSwitchDescription { | ||
| 31 | - protected String name; | ||
| 32 | - protected long dpid; | ||
| 33 | - protected String nodeDpid; | ||
| 34 | - protected String type; | ||
| 35 | - protected double latitude; | ||
| 36 | - protected double longitude; | ||
| 37 | - protected boolean allowed; | ||
| 38 | - protected Map<String, JsonNode> params; | ||
| 39 | - protected Map<String, String> publishAttributes; | ||
| 40 | - | ||
| 41 | - public String getName() { | ||
| 42 | - return name; | ||
| 43 | - } | ||
| 44 | - @JsonProperty("name") | ||
| 45 | - public void setName(String name) { | ||
| 46 | - this.name = name; | ||
| 47 | - } | ||
| 48 | - | ||
| 49 | - public long getDpid() { | ||
| 50 | - return dpid; | ||
| 51 | - } | ||
| 52 | - @JsonProperty("dpid") | ||
| 53 | - public void setDpid(long dpid) { | ||
| 54 | - this.dpid = dpid; | ||
| 55 | - this.nodeDpid = HexString.toHexString(dpid); | ||
| 56 | - } | ||
| 57 | - | ||
| 58 | - public String getNodeDpid() { | ||
| 59 | - return nodeDpid; | ||
| 60 | - } | ||
| 61 | - | ||
| 62 | - public String getHexDpid() { | ||
| 63 | - return nodeDpid; | ||
| 64 | - } | ||
| 65 | - | ||
| 66 | - public void setNodeDpid(String nodeDpid) { | ||
| 67 | - this.nodeDpid = nodeDpid; | ||
| 68 | - this.dpid = HexString.toLong(nodeDpid); | ||
| 69 | - } | ||
| 70 | - | ||
| 71 | - public String getType() { | ||
| 72 | - return type; | ||
| 73 | - } | ||
| 74 | - | ||
| 75 | - public void setType(String type) { | ||
| 76 | - this.type = type; | ||
| 77 | - } | ||
| 78 | - | ||
| 79 | - public double getLatitude() { | ||
| 80 | - return latitude; | ||
| 81 | - } | ||
| 82 | - | ||
| 83 | - public void setLatitude(double latitude) { | ||
| 84 | - this.latitude = latitude; | ||
| 85 | - } | ||
| 86 | - | ||
| 87 | - public double getLongitude() { | ||
| 88 | - return longitude; | ||
| 89 | - } | ||
| 90 | - | ||
| 91 | - public void setLongitude(double longitude) { | ||
| 92 | - this.longitude = longitude; | ||
| 93 | - } | ||
| 94 | - | ||
| 95 | - public boolean isAllowed() { | ||
| 96 | - return allowed; | ||
| 97 | - } | ||
| 98 | - | ||
| 99 | - public void setAllowed(boolean allowed) { | ||
| 100 | - this.allowed = allowed; | ||
| 101 | - } | ||
| 102 | - | ||
| 103 | - public Map<String, JsonNode> getParams() { | ||
| 104 | - return params; | ||
| 105 | - } | ||
| 106 | - | ||
| 107 | - public void setParams(Map<String, JsonNode> params) { | ||
| 108 | - this.params = params; | ||
| 109 | - } | ||
| 110 | - | ||
| 111 | - public Map<String, String> getPublishAttributes() { | ||
| 112 | - return publishAttributes; | ||
| 113 | - } | ||
| 114 | - | ||
| 115 | - public void setPublishAttributes(Map<String, String> publishAttributes) { | ||
| 116 | - this.publishAttributes = publishAttributes; | ||
| 117 | - } | ||
| 118 | - | ||
| 119 | -} |
| 1 | -/* | ||
| 2 | - * Copyright 2014 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * 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 | ||
| 7 | - * | ||
| 8 | - * 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. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.optical.cfg; | ||
| 17 | - | ||
| 18 | -/** | ||
| 19 | - * Packet-optical link Java data object. | ||
| 20 | - * | ||
| 21 | - * @deprecated in Cardinal Release | ||
| 22 | - */ | ||
| 23 | -@Deprecated | ||
| 24 | -class PktOptLink { | ||
| 25 | - private String srcNodeName; | ||
| 26 | - private String snkNodeName; | ||
| 27 | - private String srcNodeId; | ||
| 28 | - private String snkNodeId; | ||
| 29 | - private int srcPort; | ||
| 30 | - private int snkPort; | ||
| 31 | - private double bandwidth; | ||
| 32 | - private double cost; | ||
| 33 | - private long adminWeight; | ||
| 34 | - | ||
| 35 | - public PktOptLink(String srcName, String snkName) { | ||
| 36 | - this.srcNodeName = srcName; | ||
| 37 | - this.snkNodeName = snkName; | ||
| 38 | - } | ||
| 39 | - | ||
| 40 | - public PktOptLink() { | ||
| 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 setBandwdith(double x) { | ||
| 92 | - this.bandwidth = x; | ||
| 93 | - } | ||
| 94 | - | ||
| 95 | - public double getBandwidth() { | ||
| 96 | - return this.bandwidth; | ||
| 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 setAdminWeight(long x) { | ||
| 108 | - this.adminWeight = x; | ||
| 109 | - } | ||
| 110 | - | ||
| 111 | - public long getAdminWeight() { | ||
| 112 | - return this.adminWeight; | ||
| 113 | - } | ||
| 114 | - | ||
| 115 | - @Override | ||
| 116 | - public String toString() { | ||
| 117 | - return new StringBuilder(" srcNodeName: ").append(this.srcNodeName) | ||
| 118 | - .append(" snkNodeName: ").append(this.snkNodeName) | ||
| 119 | - .append(" srcNodeId: ").append(this.srcNodeId) | ||
| 120 | - .append(" snkNodeId: ").append(this.snkNodeId) | ||
| 121 | - .append(" srcPort: ").append(this.srcPort) | ||
| 122 | - .append(" snkPort: ").append(this.snkPort) | ||
| 123 | - .append(" bandwidth: ").append(this.bandwidth) | ||
| 124 | - .append(" cost: ").append(this.cost) | ||
| 125 | - .append(" adminWeight: ").append(this.adminWeight).toString(); | ||
| 126 | - } | ||
| 127 | -} |
| 1 | -/* | ||
| 2 | - * Copyright 2014 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * 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 | ||
| 7 | - * | ||
| 8 | - * 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. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.optical.cfg; | ||
| 17 | - | ||
| 18 | -/** | ||
| 19 | - * ROADM java data object converted from a JSON file. | ||
| 20 | - * | ||
| 21 | - * @deprecated in Cardinal Release | ||
| 22 | - */ | ||
| 23 | -@Deprecated | ||
| 24 | -class 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 | - |
| 1 | -/* | ||
| 2 | - * Copyright 2014 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * 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 | ||
| 7 | - * | ||
| 8 | - * 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. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.optical.cfg; | ||
| 17 | - | ||
| 18 | -/** | ||
| 19 | - * WDM Link Java data object converted from a JSON file. | ||
| 20 | - * | ||
| 21 | - * @deprecated in Cardinal Release | ||
| 22 | - */ | ||
| 23 | -@Deprecated | ||
| 24 | -class WdmLink { | ||
| 25 | - private String srcNodeName; | ||
| 26 | - private String snkNodeName; | ||
| 27 | - private String srcNodeId; | ||
| 28 | - private String snkNodeId; | ||
| 29 | - private int srcPort; | ||
| 30 | - private int snkPort; | ||
| 31 | - private double distance; | ||
| 32 | - private double cost; | ||
| 33 | - private int wavelengthNumber; | ||
| 34 | - private long adminWeight; | ||
| 35 | - | ||
| 36 | - public WdmLink(String name1, String name2) { | ||
| 37 | - this.srcNodeName = name1; | ||
| 38 | - this.snkNodeName = name2; | ||
| 39 | - } | ||
| 40 | - | ||
| 41 | - public WdmLink() { | ||
| 42 | - } | ||
| 43 | - | ||
| 44 | - public void setSrcNodeName(String name) { | ||
| 45 | - this.srcNodeName = name; | ||
| 46 | - } | ||
| 47 | - | ||
| 48 | - public String getSrcNodeName() { | ||
| 49 | - return this.srcNodeName; | ||
| 50 | - } | ||
| 51 | - | ||
| 52 | - public void setSnkNodeName(String name) { | ||
| 53 | - this.snkNodeName = name; | ||
| 54 | - } | ||
| 55 | - | ||
| 56 | - public String getSnkNodeName() { | ||
| 57 | - return this.snkNodeName; | ||
| 58 | - } | ||
| 59 | - | ||
| 60 | - public void setSrcNodeId(String nodeId) { | ||
| 61 | - this.srcNodeId = nodeId; | ||
| 62 | - } | ||
| 63 | - | ||
| 64 | - public String getSrcNodeId() { | ||
| 65 | - return this.srcNodeId; | ||
| 66 | - } | ||
| 67 | - | ||
| 68 | - public void setSnkNodeId(String nodeId) { | ||
| 69 | - this.snkNodeId = nodeId; | ||
| 70 | - } | ||
| 71 | - | ||
| 72 | - public String getSnkNodeId() { | ||
| 73 | - return this.snkNodeId; | ||
| 74 | - } | ||
| 75 | - | ||
| 76 | - public void setSrcPort(int port) { | ||
| 77 | - this.srcPort = port; | ||
| 78 | - } | ||
| 79 | - | ||
| 80 | - public int getSrcPort() { | ||
| 81 | - return this.srcPort; | ||
| 82 | - } | ||
| 83 | - | ||
| 84 | - public void setSnkPort(int port) { | ||
| 85 | - this.snkPort = port; | ||
| 86 | - } | ||
| 87 | - | ||
| 88 | - public int getSnkPort() { | ||
| 89 | - return this.snkPort; | ||
| 90 | - } | ||
| 91 | - | ||
| 92 | - public void setDistance(double x) { | ||
| 93 | - this.distance = x; | ||
| 94 | - } | ||
| 95 | - | ||
| 96 | - public double getDistance() { | ||
| 97 | - return this.distance; | ||
| 98 | - } | ||
| 99 | - | ||
| 100 | - public void setCost(double x) { | ||
| 101 | - this.cost = x; | ||
| 102 | - } | ||
| 103 | - | ||
| 104 | - public double getCost() { | ||
| 105 | - return this.cost; | ||
| 106 | - } | ||
| 107 | - | ||
| 108 | - public void setWavelengthNumber(int x) { | ||
| 109 | - this.wavelengthNumber = x; | ||
| 110 | - } | ||
| 111 | - | ||
| 112 | - public int getWavelengthNumber() { | ||
| 113 | - return this.wavelengthNumber; | ||
| 114 | - } | ||
| 115 | - | ||
| 116 | - public void setAdminWeight(long x) { | ||
| 117 | - this.adminWeight = x; | ||
| 118 | - } | ||
| 119 | - | ||
| 120 | - public long getAdminWeight() { | ||
| 121 | - return this.adminWeight; | ||
| 122 | - } | ||
| 123 | - | ||
| 124 | - @Override | ||
| 125 | - public String toString() { | ||
| 126 | - return new StringBuilder(" srcNodeName: ").append(this.srcNodeName) | ||
| 127 | - .append(" snkNodeName: ").append(this.snkNodeName) | ||
| 128 | - .append(" srcNodeId: ").append(this.srcNodeId) | ||
| 129 | - .append(" snkNodeId: ").append(this.snkNodeId) | ||
| 130 | - .append(" srcPort: ").append(this.srcPort) | ||
| 131 | - .append(" snkPort: ").append(this.snkPort) | ||
| 132 | - .append(" distance: ").append(this.distance) | ||
| 133 | - .append(" cost: ").append(this.cost) | ||
| 134 | - .append(" wavelengthNumber: ").append(this.wavelengthNumber) | ||
| 135 | - .append(" adminWeight: ").append(this.adminWeight).toString(); | ||
| 136 | - } | ||
| 137 | -} | ||
| 138 | - |
| 1 | -/* | ||
| 2 | - * Copyright 2014 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * 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 | ||
| 7 | - * | ||
| 8 | - * 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. | ||
| 15 | - */ | ||
| 16 | - | ||
| 17 | -/** | ||
| 18 | - * Packet/Optical configuration. | ||
| 19 | - */ | ||
| 20 | -@Deprecated | ||
| 21 | -package org.onosproject.optical.cfg; |
-
Please register or login to post a comment