aboutsummaryrefslogtreecommitdiffstats
path: root/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models
diff options
context:
space:
mode:
authorNiranjana <niranjana.y60@wipro.com>2021-03-16 13:30:55 +0000
committerNiranjana <niranjana.y60@wipro.com>2021-03-19 05:58:15 +0000
commit43e39ceab8e35a0a54ae72252b46491f362a0749 (patch)
treec8c41f11e4fa9a47472e75bdba65707d763cec75 /ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models
parent49f60702c82398abadb0bc28bf9a3b902b1deee7 (diff)
Add onap license
Issue-ID: INT-1885 Signed-off-by: Niranjana <niranjana.y60@wipro.com> Change-Id: I8df6fd96301e6aa6c46777bfdfcc8c1e9d16366b
Diffstat (limited to 'ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models')
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/ConfigData.java48
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUCPFunction.java58
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUUPFunction.java56
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBDUFunction.java60
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellCU.java44
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellDU.java29
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NSSAIConfig.java42
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NearRTRIC.java66
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfo.java26
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfoModel.java185
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RANSliceInfo.java67
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyMember.java34
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyRatio.java221
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SNSSAI.java156
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SliceProfile.java82
-rw-r--r--ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/TACells.java36
16 files changed, 834 insertions, 376 deletions
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/ConfigData.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/ConfigData.java
index c75f3e9..9af5537 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/ConfigData.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/ConfigData.java
@@ -1,21 +1,43 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
public class ConfigData {
-private int maxNumberOfConns;
+ private int maxNumberOfConns;
-public ConfigData() {
-}
-public ConfigData(int maxNumberOfConns) {
-super();
-this.maxNumberOfConns = maxNumberOfConns;
-}
+ public ConfigData() {
+ }
-public int getMaxNumberOfConns() {
-return maxNumberOfConns;
-}
+ public ConfigData(int maxNumberOfConns) {
+ super();
+ this.maxNumberOfConns = maxNumberOfConns;
+ }
-public void setMaxNumberOfConns(int maxNumberOfConns) {
-this.maxNumberOfConns = maxNumberOfConns;
-}
+ public int getMaxNumberOfConns() {
+ return maxNumberOfConns;
+ }
+
+ public void setMaxNumberOfConns(int maxNumberOfConns) {
+ this.maxNumberOfConns = maxNumberOfConns;
+ }
}
+
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUCPFunction.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUCPFunction.java
index 4c5f0af..6efb34c 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUCPFunction.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUCPFunction.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -13,67 +33,81 @@ import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
-@Table(name="GNBCUCPFUNCTION")
-public class GNBCUCPFunction implements Serializable{
+@Table(name = "GNBCUCPFUNCTION")
+public class GNBCUCPFunction implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- @Column(name="GNBCUNAME")
+ @Column(name = "GNBCUNAME")
private String gNBCUName;
- @Column(name="GNBID")
+ @Column(name = "GNBID")
private Integer gNBId;
- @Column(name="GNBIDLENGTH")
+ @Column(name = "GNBIDLENGTH")
private Integer gNBIdLength;
- @Column(name="PLMNID")
+ @Column(name = "PLMNID")
private String pLMNId;
- @Column(name="NFTYPE")
+ @Column(name = "NFTYPE")
private String nFType;
- @Column(name="CELLCULIST")
- @OneToMany(mappedBy = "gNBCUCPFunction", cascade=CascadeType.ALL)
+ @Column(name = "CELLCULIST")
+ @OneToMany(mappedBy = "gNBCUCPFunction", cascade = CascadeType.ALL)
private List<NRCellCU> cellCUList;
- @ManyToOne//(cascade=CascadeType.ALL)
+ @ManyToOne // (cascade=CascadeType.ALL)
@JoinColumn(name = "nearrtricid")
private NearRTRIC nearRTRIC;
+
public String getgNBCUName() {
return gNBCUName;
}
+
public void setgNBCUName(String gNBCUName) {
this.gNBCUName = gNBCUName;
}
+
public Integer getgNBId() {
return gNBId;
}
+
public void setgNBId(Integer gNBId) {
this.gNBId = gNBId;
}
+
public Integer getgNBIdLength() {
return gNBIdLength;
}
+
public void setgNBIdLength(Integer gNBIdLength) {
this.gNBIdLength = gNBIdLength;
}
+
public String getpLMNId() {
return pLMNId;
}
+
public void setpLMNId(String pLMNId) {
this.pLMNId = pLMNId;
}
+
public List<NRCellCU> getCellCUList() {
return cellCUList;
}
+
public void setCellCUList(List<NRCellCU> cellCUList) {
this.cellCUList = cellCUList;
}
+
public NearRTRIC getNearRTRIC() {
return nearRTRIC;
}
+
public void setNearRTRIC(NearRTRIC nearRTRIC) {
this.nearRTRIC = nearRTRIC;
}
+
public String getnFType() {
return nFType;
}
+
public void setnFType(String nFType) {
this.nFType = nFType;
}
-
-} \ No newline at end of file
+
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUUPFunction.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUUPFunction.java
index 2e5d62b..5a3af3e 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUUPFunction.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBCUUPFunction.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -13,63 +33,78 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
+
@Entity
-@Table(name="GNBCUUPFUNCTION")
-public class GNBCUUPFunction implements Serializable{
+@Table(name = "GNBCUUPFUNCTION")
+public class GNBCUUPFunction implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- @Column(name="GNBCUUPID")
+ @Column(name = "GNBCUUPID")
private Integer gNBCUUPId;
- @Column(name="GNBID")
+ @Column(name = "GNBID")
private Integer gNBId;
- @Column(name="GNBIDLENGTH")
+ @Column(name = "GNBIDLENGTH")
private Integer gNBIdLength;
- //@Column(name="PLMNINFOLIST")
- //@OneToMany(mappedBy = "gNBCUUPFunction", cascade={CascadeType.PERSIST,CascadeType.REMOVE})
+ // @Column(name="PLMNINFOLIST")
+ // @OneToMany(mappedBy = "gNBCUUPFunction",
+ // cascade={CascadeType.PERSIST,CascadeType.REMOVE})
@ElementCollection(fetch = FetchType.EAGER)
- @CollectionTable(name="PLMNINFO",joinColumns = @JoinColumn(name="gnbcuupid"))
+ @CollectionTable(name = "PLMNINFO", joinColumns = @JoinColumn(name = "gnbcuupid"))
private List<PLMNInfo> pLMNInfoList;
- @Column(name="RESOURCETYPE")
+ @Column(name = "RESOURCETYPE")
private String resourceType;
- @ManyToOne(cascade=CascadeType.ALL)
+ @ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "nearrtricid")
private NearRTRIC nearRTRIC;
+
public Integer getgNBCUUPId() {
return gNBCUUPId;
}
+
public void setgNBCUUPId(Integer gNBCUUPId) {
this.gNBCUUPId = gNBCUUPId;
}
+
public Integer getgNBId() {
return gNBId;
}
+
public void setgNBId(Integer gNBId) {
this.gNBId = gNBId;
}
+
public Integer getgNBIdLength() {
return gNBIdLength;
}
+
public void setgNBIdLength(Integer gNBIdLength) {
this.gNBIdLength = gNBIdLength;
}
+
public List<PLMNInfo> getpLMNInfoList() {
return pLMNInfoList;
}
+
public void setpLMNInfoList(List<PLMNInfo> pLMNInfoList) {
this.pLMNInfoList = pLMNInfoList;
}
+
public NearRTRIC getNearRTRIC() {
return nearRTRIC;
}
+
public void setNearRTRIC(NearRTRIC nearRTRIC) {
this.nearRTRIC = nearRTRIC;
}
+
public String getResourceType() {
return resourceType;
}
+
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
+
@Override
public String toString() {
return "GNBCUUPFunction [gNBCUUPId=" + gNBCUUPId + ", gNBId=" + gNBId + ", gNBIdLength=" + gNBIdLength
@@ -77,3 +112,4 @@ public class GNBCUUPFunction implements Serializable{
+ "]";
}
}
+
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBDUFunction.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBDUFunction.java
index c64472a..2df9786 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBDUFunction.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/GNBDUFunction.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -12,75 +32,91 @@ import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
-@Table(name="GNBDUFUNCTION")
-public class GNBDUFunction implements Serializable{
+@Table(name = "GNBDUFUNCTION")
+public class GNBDUFunction implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- @Column(name="GNBDUID")
+ @Column(name = "GNBDUID")
private Integer gNBDUId;
- @Column(name="GNBID")
+ @Column(name = "GNBID")
private Integer gNBId;
- @Column(name="GNBIDLENGTH")
+ @Column(name = "GNBIDLENGTH")
private Integer gNBIdLength;
- @Column(name="GNBDUNAME")
+ @Column(name = "GNBDUNAME")
private String gNBDUName;
- @Column(name="PLMNID")
+ @Column(name = "PLMNID")
private String pLMNId;
- @Column(name="NFTYPE")
+ @Column(name = "NFTYPE")
private String nFType;
- @Column(name="CELLDULIST")
- @OneToMany(mappedBy = "gNBDUFunction",cascade=CascadeType.ALL)
+ @Column(name = "CELLDULIST")
+ @OneToMany(mappedBy = "gNBDUFunction", cascade = CascadeType.ALL)
private List<NRCellDU> cellDUList;
@ManyToOne
@JoinColumn(name = "nearrtricid")
private NearRTRIC nearRTRIC;
+
public Integer getgNBDUId() {
return gNBDUId;
}
+
public void setgNBDUId(Integer gNBDUId) {
this.gNBDUId = gNBDUId;
}
+
public Integer getgNBId() {
return gNBId;
}
+
public void setgNBId(Integer gNBId) {
this.gNBId = gNBId;
}
+
public Integer getgNBIdLength() {
return gNBIdLength;
}
+
public void setgNBIdLength(Integer gNBIdLength) {
this.gNBIdLength = gNBIdLength;
}
+
public String getgNBDUName() {
return gNBDUName;
}
+
public void setgNBDUName(String gNBDUName) {
this.gNBDUName = gNBDUName;
}
+
public String getpLMNId() {
return pLMNId;
}
+
public void setpLMNId(String pLMNId) {
this.pLMNId = pLMNId;
}
+
public List<NRCellDU> getCellDUList() {
return cellDUList;
}
+
public void setCellDUList(List<NRCellDU> cellDUList) {
this.cellDUList = cellDUList;
}
+
public NearRTRIC getNearRTRIC() {
return nearRTRIC;
}
+
public void setNearRTRIC(NearRTRIC nearRTRIC) {
this.nearRTRIC = nearRTRIC;
}
+
public String getnFType() {
return nFType;
}
+
public void setnFType(String nFType) {
this.nFType = nFType;
}
-
-} \ No newline at end of file
+
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellCU.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellCU.java
index a00f88e..89ffdd7 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellCU.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellCU.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -15,44 +35,52 @@ import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
-@Table(name="NRCELLCU")
-public class NRCellCU implements Serializable{
+@Table(name = "NRCELLCU")
+public class NRCellCU implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- @Column(name="CELLLOCALID")
+ @Column(name = "CELLLOCALID")
private Integer cellLocalId;
- @Column(name="RESOURCETYPE")
+ @Column(name = "RESOURCETYPE")
private String resourceType;
@ElementCollection(fetch = FetchType.EAGER)
- @CollectionTable(name="PLMNINFO",joinColumns = @JoinColumn(name="nrcellcu_celllocalid"))
+ @CollectionTable(name = "PLMNINFO", joinColumns = @JoinColumn(name = "nrcellcu_celllocalid"))
private List<PLMNInfo> pLMNInfoList;
@ManyToOne
@JoinColumn(name = "gnbcuname")
private GNBCUCPFunction gNBCUCPFunction;
-
+
public Integer getCellLocalId() {
return cellLocalId;
}
+
public void setCellLocalId(Integer cellLocalId) {
this.cellLocalId = cellLocalId;
}
+
public List<PLMNInfo> getpLMNInfoList() {
return pLMNInfoList;
}
+
public void setpLMNInfoList(List<PLMNInfo> pLMNInfoList) {
this.pLMNInfoList = pLMNInfoList;
- }
+ }
+
public GNBCUCPFunction getgNBCUCPFunction() {
return gNBCUCPFunction;
}
+
public void setgNBCUCPFunction(GNBCUCPFunction gNBCUCPFunction) {
this.gNBCUCPFunction = gNBCUCPFunction;
}
+
public String getResourceType() {
return resourceType;
}
+
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
-
+
}
+
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellDU.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellDU.java
index 89ac059..e93f5aa 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellDU.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NRCellDU.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -39,6 +59,8 @@ public class NRCellDU implements Serializable{
@ManyToOne
@JoinColumn(name = "gnbduid")
private GNBDUFunction gNBDUFunction;
+ @Column(name="prb")
+ private Integer prbs;
public Integer getCellLocalId() {
return cellLocalId;
@@ -94,5 +116,10 @@ public class NRCellDU implements Serializable{
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
-
+ public Integer getPrbs() {
+ return prbs;
+ }
+ public void setPrbs(Integer prbs) {
+ this.prbs = prbs;
+ }
}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NSSAIConfig.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NSSAIConfig.java
index d7d6b2b..e650ff1 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NSSAIConfig.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NSSAIConfig.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -6,40 +26,48 @@ import javax.persistence.Embeddable;
import javax.persistence.Table;
import java.sql.Timestamp;
-@Table(name="NSSAICONFIG")
+@Table(name = "NSSAICONFIG")
@Embeddable
-public class NSSAIConfig implements Serializable{
+public class NSSAIConfig implements Serializable {
private static final long serialVersionUID = 1L;
- @Column(name="DLTHPTPERSLICE")
+ @Column(name = "DLTHPTPERSLICE")
private Integer dLThptPerSlice;
- @Column(name="ULTHPTPERSLICE")
+ @Column(name = "ULTHPTPERSLICE")
private Integer uLThptPerSlice;
- @Column(name="MAXNUMBEROFCONNS")
+ @Column(name = "MAXNUMBEROFCONNS")
private Integer maxNumberOfConns;
- @Column(name="LASTUPDATEDTS")
+ @Column(name = "LASTUPDATEDTS")
private Timestamp lastUpdatedTS;
+
public Integer getdLThptPerSlice() {
return dLThptPerSlice;
}
+
public void setdLThptPerSlice(Integer dLThptPerSlice) {
this.dLThptPerSlice = dLThptPerSlice;
}
+
public Integer getuLThptPerSlice() {
return uLThptPerSlice;
}
+
public void setuLThptPerSlice(Integer uLThptPerSlice) {
this.uLThptPerSlice = uLThptPerSlice;
}
+
public Integer getMaxNumberOfConns() {
return maxNumberOfConns;
}
+
public void setMaxNumberOfConns(Integer maxNumberOfConns) {
this.maxNumberOfConns = maxNumberOfConns;
}
+
public Timestamp getLastUpdatedTS() {
return lastUpdatedTS;
}
+
public void setLastUpdatedTS(Timestamp lastUpdatedTS) {
this.lastUpdatedTS = lastUpdatedTS;
}
-} \ No newline at end of file
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NearRTRIC.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NearRTRIC.java
index ff0c516..c2fbd06 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NearRTRIC.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/NearRTRIC.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -11,86 +31,104 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
+
@Entity
-@Table(name="NEARRTRIC")
-public class NearRTRIC implements Serializable{
+@Table(name = "NEARRTRIC")
+public class NearRTRIC implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- @Column(name="NEARRTRICID")
+ @Column(name = "NEARRTRICID")
private Integer nearRTRICId;
- @Column(name="GNBID")
+ @Column(name = "GNBID")
private Integer gNBId;
@ElementCollection(targetClass = String.class)
- @CollectionTable(name="TRACKINGAREA", joinColumns = @JoinColumn(name="nearrtricid"))
+ @CollectionTable(name = "TRACKINGAREA", joinColumns = @JoinColumn(name = "nearrtricid"))
private List<String> trackingArea;
- @Column(name="RESOURCETYPE")
+ @Column(name = "RESOURCETYPE")
private String resourceType;
- @OneToMany(mappedBy = "nearRTRIC", cascade=CascadeType.ALL)
+ @OneToMany(mappedBy = "nearRTRIC", cascade = CascadeType.ALL)
private List<GNBCUCPFunction> gNBCUCPList;
- @OneToMany(mappedBy = "nearRTRIC", cascade=CascadeType.ALL)
+ @OneToMany(mappedBy = "nearRTRIC", cascade = CascadeType.ALL)
private List<GNBCUUPFunction> gNBCUUPList;
- @OneToMany(mappedBy = "nearRTRIC", cascade=CascadeType.ALL)
+ @OneToMany(mappedBy = "nearRTRIC", cascade = CascadeType.ALL)
private List<GNBDUFunction> gNBDUList;
@ElementCollection(targetClass = String.class)
- @CollectionTable(name="RANNFNSSI",joinColumns = @JoinColumn(name="nearrtricid"))
+ @CollectionTable(name = "RANNFNSSI", joinColumns = @JoinColumn(name = "nearrtricid"))
private List<String> ranNFNSSIList;
@ElementCollection
- @CollectionTable(name="PLMNINFO",joinColumns = @JoinColumn(name="nearrtricid"))
+ @CollectionTable(name = "PLMNINFO", joinColumns = @JoinColumn(name = "nearrtricid"))
private List<PLMNInfo> pLMNInfoList;
+
public Integer getNearRTRICId() {
return nearRTRICId;
}
+
public void setNearRTRICId(Integer nearRTRICId) {
this.nearRTRICId = nearRTRICId;
}
+
public Integer getgNBId() {
return gNBId;
}
+
public void setgNBId(Integer gNBId) {
this.gNBId = gNBId;
}
-
+
public List<String> getTrackingArea() {
return trackingArea;
}
+
public void setTrackingArea(List<String> trackingArea) {
this.trackingArea = trackingArea;
}
+
public String getResourceType() {
return resourceType;
}
+
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
+
public List<GNBCUCPFunction> getgNBCUCPList() {
return gNBCUCPList;
}
+
public void setgNBCUCPList(List<GNBCUCPFunction> gNBCUCPList) {
this.gNBCUCPList = gNBCUCPList;
}
+
public List<GNBCUUPFunction> getgNBCUUPList() {
return gNBCUUPList;
}
+
public void setgNBCUUPList(List<GNBCUUPFunction> gNBCUUPList) {
this.gNBCUUPList = gNBCUUPList;
}
+
public List<GNBDUFunction> getgNBDUList() {
return gNBDUList;
}
+
public void setgNBDUList(List<GNBDUFunction> gNBDUList) {
this.gNBDUList = gNBDUList;
}
+
public List<PLMNInfo> getpLMNInfoList() {
return pLMNInfoList;
}
+
public void setpLMNInfoList(List<PLMNInfo> pLMNInfoList) {
this.pLMNInfoList = pLMNInfoList;
}
+
public List<String> getRanNFNSSIList() {
return ranNFNSSIList;
}
+
public void setRanNFNSSIList(List<String> ranNFNSSIList) {
this.ranNFNSSIList = ranNFNSSIList;
}
-
-} \ No newline at end of file
+
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfo.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfo.java
index 699c7bd..a45ad77 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfo.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfo.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -17,12 +37,13 @@ import javax.persistence.Table;
@Table(name = "PLMNINFO")
public class PLMNInfo implements Serializable {
private static final long serialVersionUID = 1L;
-
+
@Column(name = "PLMNID")
private String pLMNId;
@Embedded
private SNSSAI sNSSAI;
+
public String getpLMNId() {
return pLMNId;
}
@@ -31,7 +52,6 @@ public class PLMNInfo implements Serializable {
this.pLMNId = pLMNId;
}
-
public SNSSAI getsNSSAI() {
return sNSSAI;
}
@@ -40,4 +60,4 @@ public class PLMNInfo implements Serializable {
this.sNSSAI = sNSSAI;
}
-} \ No newline at end of file
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfoModel.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfoModel.java
index df7b312..af16d44 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfoModel.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/PLMNInfoModel.java
@@ -1,7 +1,8 @@
-/* ============LICENSE_START=======================================================
+/*
+ * ============LICENSE_START=======================================================
* Ran Simulator Controller
* ================================================================================
- * Copyright (C) 2020 Wipro Limited.
+ * Copyright (C) 2020-2021 Wipro Limited.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,96 +21,94 @@
package org.onap.ransim.rest.api.models;
public class PLMNInfoModel {
-private String pLMNId;
-private String snssai;
-private String status;
-private String gnbType;
-private int gnbId;
-private int nrCellId;
-private String nearrtricid;
-private long maxNumberOfConns;
-
-public PLMNInfoModel() {
-
-}
-
-
-public PLMNInfoModel(String pLMNId, String snssai, String status, String gnbType, int gnbId, int nrCellId,
-String nearrtricid, long maxNumberOfConns) {
-super();
-this.pLMNId = pLMNId;
-this.snssai = snssai;
-this.status = status;
-this.gnbType = gnbType;
-this.gnbId = gnbId;
-this.nrCellId = nrCellId;
-this.nearrtricid = nearrtricid;
-this.maxNumberOfConns = maxNumberOfConns;
-}
-
-
-public String getpLMNId() {
-return pLMNId;
-}
-
-public void setpLMNId(String pLMNId) {
-this.pLMNId = pLMNId;
-}
-
-public String getSnssai() {
-return snssai;
-}
-
-public void setSnssai(String snssai) {
-this.snssai = snssai;
-}
-
-public String getStatus() {
-return status;
-}
-
-public void setStatus(String status) {
-this.status = status;
-}
-
-public String getGnbType() {
-return gnbType;
-}
-
-public void setGnbType(String gnbType) {
-this.gnbType = gnbType;
-}
-
-public int getGnbId() {
-return gnbId;
-}
-
-public void setGnbId(int gnbId) {
-this.gnbId = gnbId;
-}
-
-
-public int getNrCellId() {
-return nrCellId;
-}
-
-public void setNrCellId(int nrCellId) {
-this.nrCellId = nrCellId;
-}
-public String getNearrtricid() {
-return nearrtricid;
-}
-
-public void setNearrtricid(String nearrtricid) {
-this.nearrtricid = nearrtricid;
-}
-
-public long getMaxNumberOfConns() {
-return maxNumberOfConns;
-}
-
-public void setMaxNumberOfConns(long maxNumberOfConns) {
-this.maxNumberOfConns = maxNumberOfConns;
-}
+ private String pLMNId;
+ private String snssai;
+ private String status;
+ private String gnbType;
+ private int gnbId;
+ private int nrCellId;
+ private String nearrtricid;
+ private long maxNumberOfConns;
+
+ public PLMNInfoModel() {
+
+ }
+
+ public PLMNInfoModel(String pLMNId, String snssai, String status, String gnbType, int gnbId, int nrCellId,
+ String nearrtricid, long maxNumberOfConns) {
+ super();
+ this.pLMNId = pLMNId;
+ this.snssai = snssai;
+ this.status = status;
+ this.gnbType = gnbType;
+ this.gnbId = gnbId;
+ this.nrCellId = nrCellId;
+ this.nearrtricid = nearrtricid;
+ this.maxNumberOfConns = maxNumberOfConns;
+ }
+
+ public String getpLMNId() {
+ return pLMNId;
+ }
+
+ public void setpLMNId(String pLMNId) {
+ this.pLMNId = pLMNId;
+ }
+
+ public String getSnssai() {
+ return snssai;
+ }
+
+ public void setSnssai(String snssai) {
+ this.snssai = snssai;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getGnbType() {
+ return gnbType;
+ }
+
+ public void setGnbType(String gnbType) {
+ this.gnbType = gnbType;
+ }
+
+ public int getGnbId() {
+ return gnbId;
+ }
+
+ public void setGnbId(int gnbId) {
+ this.gnbId = gnbId;
+ }
+
+ public int getNrCellId() {
+ return nrCellId;
+ }
+
+ public void setNrCellId(int nrCellId) {
+ this.nrCellId = nrCellId;
+ }
+
+ public String getNearrtricid() {
+ return nearrtricid;
+ }
+
+ public void setNearrtricid(String nearrtricid) {
+ this.nearrtricid = nearrtricid;
+ }
+
+ public long getMaxNumberOfConns() {
+ return maxNumberOfConns;
+ }
+
+ public void setMaxNumberOfConns(long maxNumberOfConns) {
+ this.maxNumberOfConns = maxNumberOfConns;
+ }
}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RANSliceInfo.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RANSliceInfo.java
index 47eb7a1..5ec30c8 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RANSliceInfo.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RANSliceInfo.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -12,85 +32,104 @@ import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
-@Entity(name="RANINVENTORY")
-@Table(name="RANINVENTORY")
-public class RANSliceInfo implements Serializable{
+@Entity(name = "RANINVENTORY")
+@Table(name = "RANINVENTORY")
+public class RANSliceInfo implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- @Column(name="RANNFNSSIID")
+ @Column(name = "RANNFNSSIID")
private String ranNFNSSIId;
@ElementCollection
- @CollectionTable(name="rannssi", joinColumns = @JoinColumn(name="rannfnssiid"))
+ @CollectionTable(name = "rannssi", joinColumns = @JoinColumn(name = "rannfnssiid"))
private List<String> ranNSSIList;
@ElementCollection
- @CollectionTable(name="nssai", joinColumns = @JoinColumn(name="rannfnssiid"))
- private List<String> nSSAIList;
- @OneToMany(mappedBy = "rANSliceInventory", cascade=CascadeType.ALL)
+ @CollectionTable(name = "nssai", joinColumns = @JoinColumn(name = "rannfnssiid"))
+ private List<String> nSSAIList;
+ @OneToMany(mappedBy = "rANSliceInventory", cascade = CascadeType.ALL)
private List<SliceProfile> sliceProfilesList;
- @Column(name="TALIST")
+ @Column(name = "TALIST")
private String trackingAreaList;
- @Column(name="SUBNETSTATUS")
+ @Column(name = "SUBNETSTATUS")
private String subnetStatus;
- @Column(name="NSSTID")
+ @Column(name = "NSSTID")
private String nsstId;
- @Column(name="SLICETYPE")
+ @Column(name = "SLICETYPE")
private String sliceType;
- @Column(name="ISSHAREABLE")
+ @Column(name = "ISSHAREABLE")
private String isShareable;
+
public String getRanNFNSSIId() {
return ranNFNSSIId;
}
+
public void setRanNFNSSIId(String ranNFNSSIId) {
this.ranNFNSSIId = ranNFNSSIId;
}
+
public List<String> getRanNSSIList() {
return ranNSSIList;
}
+
public void setRanNSSIList(List<String> ranNSSIList) {
this.ranNSSIList = ranNSSIList;
}
+
public List<SliceProfile> getSliceProfilesList() {
return sliceProfilesList;
}
+
public void setSliceProfilesList(List<SliceProfile> sliceProfilesList) {
this.sliceProfilesList = sliceProfilesList;
}
+
public String getSubnetStatus() {
return subnetStatus;
}
+
public void setSubnetStatus(String subnetStatus) {
this.subnetStatus = subnetStatus;
}
+
public String getNsstId() {
return nsstId;
}
+
public void setNsstId(String nsstId) {
this.nsstId = nsstId;
}
+
public String getSliceType() {
return sliceType;
}
+
public void setSliceType(String sliceType) {
this.sliceType = sliceType;
}
+
public String getIsShareable() {
return isShareable;
}
+
public void setIsShareable(String isShareable) {
this.isShareable = isShareable;
}
+
public List<String> getnSSAIList() {
return nSSAIList;
}
+
public void setnSSAIList(List<String> nSSAIList) {
this.nSSAIList = nSSAIList;
}
+
public String getTrackingAreaList() {
return trackingAreaList;
}
+
public void setTrackingAreaList(String trackingAreaList) {
this.trackingAreaList = trackingAreaList;
}
+
@Override
public String toString() {
return "RANSliceInfo [ranNFNSSIId=" + ranNFNSSIId + ", ranNSSIList=" + ranNSSIList + ", nSSAIList=" + nSSAIList
@@ -98,4 +137,4 @@ public class RANSliceInfo implements Serializable{
+ ", subnetStatus=" + subnetStatus + ", nsstId=" + nsstId + ", sliceType=" + sliceType
+ ", isShareable=" + isShareable + "]";
}
-} \ No newline at end of file
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyMember.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyMember.java
index 1b204b3..aced9cf 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyMember.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyMember.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -8,13 +28,13 @@ import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
-@Table(name="RRMPOLICYMEMBER")
-public class RRMPolicyMember implements Serializable{
+@Table(name = "RRMPOLICYMEMBER")
+public class RRMPolicyMember implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PLMNID")
private String pLMNId;
- @Column(name="SNSSAI")
+ @Column(name = "SNSSAI")
private String sNSSAI;
@ManyToOne
private RRMPolicyRatio rrmPolicy;
@@ -22,20 +42,24 @@ public class RRMPolicyMember implements Serializable{
public String getpLMNId() {
return pLMNId;
}
+
public void setpLMNId(String pLMNId) {
this.pLMNId = pLMNId;
}
-
+
public String getsNSSAI() {
return sNSSAI;
}
+
public void setsNSSAI(String sNSSAI) {
this.sNSSAI = sNSSAI;
}
+
public RRMPolicyRatio getRrmPolicy() {
return rrmPolicy;
}
+
public void setRrmPolicy(RRMPolicyRatio rrmPolicy) {
this.rrmPolicy = rrmPolicy;
}
-} \ No newline at end of file
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyRatio.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyRatio.java
index a662eb2..27c5d9c 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyRatio.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/RRMPolicyRatio.java
@@ -1,91 +1,130 @@
-package org.onap.ransim.rest.api.models;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.ElementCollection;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-
-@Entity
-@Table(name="RRMPOLICYRATIO")
-public class RRMPolicyRatio implements Serializable{
- private static final long serialVersionUID = 1L;
- @Id
- @Column(name="RRMPOLICYID")
- private Integer rrmPolicyID;
- @Column(name="RESOURCEID")
- private String resourceID;
- @Column(name="RESOURCETYPE")
- private String resourceType;
- @Column(name="SLICETYPE")
- private String sliceType;
-// @OneToMany(mappedBy = "rrmPolicy", cascade={CascadeType.PERSIST,CascadeType.REMOVE})
- @OneToMany(mappedBy = "rrmPolicy", cascade = CascadeType.ALL)
- private List<RRMPolicyMember> rRMPolicyMemberList;
- @Column(name="QUOTATYPE")
- private String quotaType;
- @Column(name="RRMPOLICYMAXRATIO")
- private Integer rRMPolicyMaxRatio;
- @Column(name="RRMPOLICYMINRATIO")
- private Integer rRMPolicyMinRatio;
- @Column(name="RRMPOLICYDEDICATEDRATIO")
- private Integer rRMPolicyDedicatedRatio;
- public Integer getRrmPolicyID() {
- return rrmPolicyID;
- }
- public void setRrmPolicyID(Integer rrmPolicyID) {
- this.rrmPolicyID = rrmPolicyID;
- }
- public String getResourceID() {
- return resourceID;
- }
- public void setResourceID(String resourceID) {
- this.resourceID = resourceID;
- }
- public String getResourceType() {
- return resourceType;
- }
- public void setResourceType(String resourceType) {
- this.resourceType = resourceType;
- }
- public String getSliceType() {
- return sliceType;
- }
- public void setSliceType(String sliceType) {
- this.sliceType = sliceType;
- }
- public List<RRMPolicyMember> getrRMPolicyMemberList() {
- return rRMPolicyMemberList;
- }
- public void setrRMPolicyMemberList(List<RRMPolicyMember> rRMPolicyMemberList) {
- this.rRMPolicyMemberList = rRMPolicyMemberList;
- }
- public String getQuotaType() {
- return quotaType;
- }
- public void setQuotaType(String quotaType) {
- this.quotaType = quotaType;
- }
- public Integer getrRMPolicyMaxRatio() {
- return rRMPolicyMaxRatio;
- }
- public void setrRMPolicyMaxRatio(Integer rRMPolicyMaxRatio) {
- this.rRMPolicyMaxRatio = rRMPolicyMaxRatio;
- }
- public Integer getrRMPolicyMinRatio() {
- return rRMPolicyMinRatio;
- }
- public void setrRMPolicyMinRatio(Integer rRMPolicyMinRatio) {
- this.rRMPolicyMinRatio = rRMPolicyMinRatio;
- }
- public Integer getrRMPolicyDedicatedRatio() {
- return rRMPolicyDedicatedRatio;
- }
- public void setrRMPolicyDedicatedRatio(Integer rRMPolicyDedicatedRatio) {
- this.rRMPolicyDedicatedRatio = rRMPolicyDedicatedRatio;
- }
-}
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ransim.rest.api.models;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.ElementCollection;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+
+@Entity
+@Table(name = "RRMPOLICYRATIO")
+public class RRMPolicyRatio implements Serializable {
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Column(name = "RRMPOLICYID")
+ private Integer rrmPolicyID;
+ @Column(name = "RESOURCEID")
+ private String resourceID;
+ @Column(name = "RESOURCETYPE")
+ private String resourceType;
+ @Column(name = "SLICETYPE")
+ private String sliceType;
+// @OneToMany(mappedBy = "rrmPolicy", cascade={CascadeType.PERSIST,CascadeType.REMOVE})
+ @OneToMany(mappedBy = "rrmPolicy", cascade = CascadeType.ALL)
+ private List<RRMPolicyMember> rRMPolicyMemberList;
+ @Column(name = "QUOTATYPE")
+ private String quotaType;
+ @Column(name = "RRMPOLICYMAXRATIO")
+ private Integer rRMPolicyMaxRatio;
+ @Column(name = "RRMPOLICYMINRATIO")
+ private Integer rRMPolicyMinRatio;
+ @Column(name = "RRMPOLICYDEDICATEDRATIO")
+ private Integer rRMPolicyDedicatedRatio;
+
+ public Integer getRrmPolicyID() {
+ return rrmPolicyID;
+ }
+
+ public void setRrmPolicyID(Integer rrmPolicyID) {
+ this.rrmPolicyID = rrmPolicyID;
+ }
+
+ public String getResourceID() {
+ return resourceID;
+ }
+
+ public void setResourceID(String resourceID) {
+ this.resourceID = resourceID;
+ }
+
+ public String getResourceType() {
+ return resourceType;
+ }
+
+ public void setResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ }
+
+ public String getSliceType() {
+ return sliceType;
+ }
+
+ public void setSliceType(String sliceType) {
+ this.sliceType = sliceType;
+ }
+
+ public List<RRMPolicyMember> getrRMPolicyMemberList() {
+ return rRMPolicyMemberList;
+ }
+
+ public void setrRMPolicyMemberList(List<RRMPolicyMember> rRMPolicyMemberList) {
+ this.rRMPolicyMemberList = rRMPolicyMemberList;
+ }
+
+ public String getQuotaType() {
+ return quotaType;
+ }
+
+ public void setQuotaType(String quotaType) {
+ this.quotaType = quotaType;
+ }
+
+ public Integer getrRMPolicyMaxRatio() {
+ return rRMPolicyMaxRatio;
+ }
+
+ public void setrRMPolicyMaxRatio(Integer rRMPolicyMaxRatio) {
+ this.rRMPolicyMaxRatio = rRMPolicyMaxRatio;
+ }
+
+ public Integer getrRMPolicyMinRatio() {
+ return rRMPolicyMinRatio;
+ }
+
+ public void setrRMPolicyMinRatio(Integer rRMPolicyMinRatio) {
+ this.rRMPolicyMinRatio = rRMPolicyMinRatio;
+ }
+
+ public Integer getrRMPolicyDedicatedRatio() {
+ return rRMPolicyDedicatedRatio;
+ }
+
+ public void setrRMPolicyDedicatedRatio(Integer rRMPolicyDedicatedRatio) {
+ this.rRMPolicyDedicatedRatio = rRMPolicyDedicatedRatio;
+ }
+}
+
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SNSSAI.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SNSSAI.java
index db43ce0..1c35546 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SNSSAI.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SNSSAI.java
@@ -1,68 +1,88 @@
-package org.onap.ransim.rest.api.models;
-
-import java.io.Serializable;
-import javax.persistence.Column;
-import javax.persistence.Embeddable;
-import javax.persistence.Embedded;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.Table;
-
-@Embeddable
-@Table(name = "SNSSAI")
-public class SNSSAI implements Serializable {
- private static final long serialVersionUID = 1L;
-
- @Column(name = "sNSSAI")
- private String sNSSAI;
- @Column(name = "STATUS")
- private String status;
- @Column(name = "GLOBALSUBSCRIBERID")
- private String globalSubscriberId;
- @Column(name = "SUBSCRIPTIONSERVICETYPE")
- private String subscriptionServiceType;
- @Embedded
- private NSSAIConfig configData;
-
- public String getStatus() {
- return status;
- }
-
- public void setStatus(String status) {
- this.status = status;
- }
-
- public String getGlobalSubscriberId() {
- return globalSubscriberId;
- }
-
- public void setGlobalSubscriberId(String globalSubscriberId) {
- this.globalSubscriberId = globalSubscriberId;
- }
-
- public String getSubscriptionServiceType() {
- return subscriptionServiceType;
- }
-
- public void setSubscriptionServiceType(String subscriptionServiceType) {
- this.subscriptionServiceType = subscriptionServiceType;
- }
-
- public NSSAIConfig getConfigData() {
- return configData;
- }
-
- public void setConfigData(NSSAIConfig configData) {
- this.configData = configData;
- }
-
- public String getsNSSAI() {
- return sNSSAI;
- }
-
- public void setsNSSAI(String sNSSAI) {
- this.sNSSAI = sNSSAI;
- }
-
-} \ No newline at end of file
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ransim.rest.api.models;
+
+import java.io.Serializable;
+import javax.persistence.Column;
+import javax.persistence.Embeddable;
+import javax.persistence.Embedded;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+
+@Embeddable
+@Table(name = "SNSSAI")
+public class SNSSAI implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @Column(name = "sNSSAI")
+ private String sNSSAI;
+ @Column(name = "STATUS")
+ private String status;
+ @Column(name = "GLOBALSUBSCRIBERID")
+ private String globalSubscriberId;
+ @Column(name = "SUBSCRIPTIONSERVICETYPE")
+ private String subscriptionServiceType;
+ @Embedded
+ private NSSAIConfig configData;
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getGlobalSubscriberId() {
+ return globalSubscriberId;
+ }
+
+ public void setGlobalSubscriberId(String globalSubscriberId) {
+ this.globalSubscriberId = globalSubscriberId;
+ }
+
+ public String getSubscriptionServiceType() {
+ return subscriptionServiceType;
+ }
+
+ public void setSubscriptionServiceType(String subscriptionServiceType) {
+ this.subscriptionServiceType = subscriptionServiceType;
+ }
+
+ public NSSAIConfig getConfigData() {
+ return configData;
+ }
+
+ public void setConfigData(NSSAIConfig configData) {
+ this.configData = configData;
+ }
+
+ public String getsNSSAI() {
+ return sNSSAI;
+ }
+
+ public void setsNSSAI(String sNSSAI) {
+ this.sNSSAI = sNSSAI;
+ }
+
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SliceProfile.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SliceProfile.java
index 4705674..d8f280b 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SliceProfile.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/SliceProfile.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -12,45 +32,52 @@ import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
-@Table(name="SLICEPROFILE")
-public class SliceProfile implements Serializable{
+@Table(name = "SLICEPROFILE")
+public class SliceProfile implements Serializable {
private static final long serialVersionUID = 1L;
-
+
@Id
- @Column(name="SLICEPROFILEID")
+ @Column(name = "SLICEPROFILEID")
private String sliceProfileId;
- @Column(name="SNSSAI")
+ @Column(name = "SNSSAI")
private String sNSSAI;
- @Column(name="PLMNIDLIST")
+ @Column(name = "PLMNIDLIST")
private String pLMNIdList;
- @Column(name="MAXNOOFUES")
+ @Column(name = "MAXNOOFUES")
private Integer maxNumberofUEs;
- @Column(name="LATENCY")
+ @Column(name = "LATENCY")
private Integer latency;
- @Column(name="DLTHPTPERSLICE")
+ @Column(name = "DLTHPTPERSLICE")
private Integer dLThptPerSlice;
- @Column(name="ULTHPTPERSLICE")
+ @Column(name = "ULTHPTPERSLICE")
private Integer uLThptPerSlice;
- @Column(name="MAXNUMBEROFCONNS")
+ @Column(name = "MAXNUMBEROFCONNS")
private Integer maxNumberofConns;
+
public Integer getdLThptPerSlice() {
return dLThptPerSlice;
}
+
public void setdLThptPerSlice(Integer dLThptPerSlice) {
this.dLThptPerSlice = dLThptPerSlice;
}
+
public Integer getuLThptPerSlice() {
return uLThptPerSlice;
}
+
public void setuLThptPerSlice(Integer uLThptPerSlice) {
this.uLThptPerSlice = uLThptPerSlice;
}
+
public Integer getMaxNumberofConns() {
return maxNumberofConns;
}
+
public void setMaxNumberofConns(Integer maxNumberofConns) {
this.maxNumberofConns = maxNumberofConns;
}
+
public String getCoverageAreaList() {
return coverageAreaList;
}
@@ -63,68 +90,85 @@ public class SliceProfile implements Serializable{
* @Column(name="MAXNUMBEROFPDUSESSIONS") private Integer
* maxNumberofPDUSessions;
*/
- @Column(name="UEMOBILITYLEVEL")
+ @Column(name = "UEMOBILITYLEVEL")
private String uEMobilityLevel;
- @Column(name="RESOURCESHARINGLEVEL")
+ @Column(name = "RESOURCESHARINGLEVEL")
private String resourceSharingLevel;
- //@ElementCollection
- //@CollectionTable(name="coveragearealist", joinColumns = @JoinColumn(name="sliceprofileid"))
- @Column(name="coveragearealist")
+ // @ElementCollection
+ // @CollectionTable(name="coveragearealist", joinColumns =
+ // @JoinColumn(name="sliceprofileid"))
+ @Column(name = "coveragearealist")
private String coverageAreaList;
@ManyToOne
@JoinColumn(name = "rannfnssiid")
private RANSliceInfo rANSliceInventory;
+
public String getSliceProfileId() {
return sliceProfileId;
}
+
public void setSliceProfileId(String sliceProfileId) {
this.sliceProfileId = sliceProfileId;
}
+
public String getsNSSAI() {
return sNSSAI;
}
+
public void setsNSSAI(String sNSSAI) {
this.sNSSAI = sNSSAI;
}
+
public String getpLMNIdList() {
return pLMNIdList;
}
+
public void setpLMNIdList(String pLMNIdList) {
this.pLMNIdList = pLMNIdList;
}
+
public Integer getMaxNumberofUEs() {
return maxNumberofUEs;
}
+
public void setMaxNumberofUEs(Integer maxNumberofUEs) {
this.maxNumberofUEs = maxNumberofUEs;
}
+
public Integer getLatency() {
return latency;
}
+
public void setLatency(Integer latency) {
this.latency = latency;
}
+
public String getuEMobilityLevel() {
return uEMobilityLevel;
}
+
public void setuEMobilityLevel(String uEMobilityLevel) {
this.uEMobilityLevel = uEMobilityLevel;
}
+
public String getResourceSharingLevel() {
return resourceSharingLevel;
}
+
public void setResourceSharingLevel(String resourceSharingLevel) {
this.resourceSharingLevel = resourceSharingLevel;
}
+
public RANSliceInfo getrANSliceInventory() {
return rANSliceInventory;
}
+
public void setrANSliceInventory(RANSliceInfo rANSliceInventory) {
this.rANSliceInventory = rANSliceInventory;
}
-
+
public void setCoverageAreaList(String coverageAreaList) {
this.coverageAreaList = coverageAreaList;
}
-
-} \ No newline at end of file
+
+}
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/TACells.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/TACells.java
index b56cf2b..37ff491 100644
--- a/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/TACells.java
+++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/main/java/org/onap/ransim/rest/api/models/TACells.java
@@ -1,3 +1,23 @@
+/*
+ * ============LICENSE_START=======================================================
+ * Ran Simulator Controller
+ * ================================================================================
+ * Copyright (C) 2020-2021 Wipro Limited.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
package org.onap.ransim.rest.api.models;
import java.io.Serializable;
@@ -8,29 +28,33 @@ import javax.persistence.Id;
import javax.persistence.Table;
@Entity
-@Table(name="TACELLS")
-public class TACells implements Serializable{
+@Table(name = "TACELLS")
+public class TACells implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- @Column(name="TRACKINGAREA")
+ @Column(name = "TRACKINGAREA")
private String trackingArea;
- @Column(name="CELLS")
+ @Column(name = "CELLS")
private String cellsList;
+
public String getTrackingArea() {
return trackingArea;
}
+
public void setTrackingArea(String trackingArea) {
this.trackingArea = trackingArea;
}
-
+
public String getCellsList() {
return cellsList;
}
+
public void setCellsList(String cellsList) {
this.cellsList = cellsList;
}
+
@Override
public String toString() {
return "TACells [trackingArea=" + trackingArea + ", cellsList=" + cellsList + "]";
}
-} \ No newline at end of file
+}