1 /*******************************************************************************
2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2020 Wipro Limited.
6 * ==============================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 *******************************************************************************/
22 package org.onap.slice.analysis.ms.models;
24 import java.util.List;
27 * Model class for CU model
29 public class CUModel {
31 private String gNBCUName;
32 private String nearRTRICId;
33 private List<CellCUList> cellCUList;
35 public String getgNBCUName() {
39 public void setgNBCUName(String gNBCUName) {
40 this.gNBCUName = gNBCUName;
43 public String getNearRTRICId() {
47 public void setNearRTRICId(String nearRTRICId) {
48 this.nearRTRICId = nearRTRICId;
51 public List<CellCUList> getCellCUList() {
55 public void setCellCUList(List<CellCUList> cellCUList) {
56 this.cellCUList = cellCUList;
60 public String toString() {
61 return "CUModel [gNBCUName=" + gNBCUName + ", nearRTRICId=" + nearRTRICId + ", cellCUList=" + cellCUList + "]";
65 public int hashCode() {
68 result = prime * result + ((cellCUList == null) ? 0 : cellCUList.hashCode());
69 result = prime * result + ((gNBCUName == null) ? 0 : gNBCUName.hashCode());
70 result = prime * result + ((nearRTRICId == null) ? 0 : nearRTRICId.hashCode());
75 public boolean equals(Object obj) {
80 if (getClass() != obj.getClass())
82 CUModel other = (CUModel) obj;
83 if (cellCUList == null) {
84 if (other.cellCUList != null)
86 } else if (!cellCUList.equals(other.cellCUList))
88 if (gNBCUName == null) {
89 if (other.gNBCUName != null)
91 } else if (!gNBCUName.equals(other.gNBCUName))
93 if (nearRTRICId == null) {
94 if (other.nearRTRICId != null)
96 } else if (!nearRTRICId.equals(other.nearRTRICId))