Fix issue of PerfReq for RAN SliceProfile 87/114987/4
authorEnbo Wang <wangenbo@huawei.com>
Tue, 17 Nov 2020 09:22:07 +0000 (17:22 +0800)
committerEnbo Wang <wangenbo@huawei.com>
Tue, 17 Nov 2020 15:12:55 +0000 (23:12 +0800)
Issue-ID: SO-3274
Signed-off-by: Enbo Wang <wangenbo@huawei.com>
Change-Id: I612d4e7acee9cab440354035a416d024cefec62c

common/src/main/java/org/onap/so/beans/nsmf/AnPerfReq.java [deleted file]
common/src/main/java/org/onap/so/beans/nsmf/AnSliceProfile.java
common/src/main/java/org/onap/so/beans/nsmf/PerfReq.java
common/src/main/java/org/onap/so/beans/nsmf/PerfReqEmbb.java
common/src/main/java/org/onap/so/beans/nsmf/SliceProfileAdapter.java

diff --git a/common/src/main/java/org/onap/so/beans/nsmf/AnPerfReq.java b/common/src/main/java/org/onap/so/beans/nsmf/AnPerfReq.java
deleted file mode 100644 (file)
index e2c2e99..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP - SO
- * ================================================================================
- * Copyright (C) 2020 Huawei Technologies Co., Ltd. All rights reserved.
- * ================================================================================
- * 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.so.beans.nsmf;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import java.io.Serializable;
-
-@JsonInclude(JsonInclude.Include.NON_NULL)
-public class AnPerfReq implements Serializable {
-
-    private static final long serialVersionUID = -7415880702887244040L;
-
-    private PerfReqEmbb perfReqEmbb;
-
-    private PerfReqUrllc perfReqUrllc;
-
-    public PerfReqEmbb getPerfReqEmbb() {
-        return perfReqEmbb;
-    }
-
-    public void setPerfReqEmbb(PerfReqEmbb perfReqEmbb) {
-        this.perfReqEmbb = perfReqEmbb;
-    }
-
-    public PerfReqUrllc getPerfReqUrllc() {
-        return perfReqUrllc;
-    }
-
-    public void setPerfReqUrllc(PerfReqUrllc perfReqUrllc) {
-        this.perfReqUrllc = perfReqUrllc;
-    }
-}
index eef0396..14918c7 100644 (file)
@@ -31,6 +31,9 @@ import java.util.List;
 @Data
 @ToString
 public class AnSliceProfile implements Serializable {
+    /*
+     * Reference 3GPP TS 28.541 V16.5.0, Section 6.3.4.
+     */
 
     private static final long serialVersionUID = -3057342171549542794L;
 
@@ -44,7 +47,7 @@ public class AnSliceProfile implements Serializable {
     private List<String> pLMNIdList;
 
     @JsonProperty(value = "perfReq", required = true)
-    private AnPerfReq perfReq;
+    private PerfReq perfReq;
 
     @JsonInclude(JsonInclude.Include.NON_DEFAULT)
     @JsonProperty(value = "maxNumberofUEs")
index c67f193..6697c8d 100644 (file)
 package org.onap.so.beans.nsmf;
 
 import com.fasterxml.jackson.annotation.JsonInclude;
+import java.io.Serializable;
 import java.util.List;
 
 @JsonInclude(JsonInclude.Include.NON_NULL)
-public class PerfReq {
+public class PerfReq implements Serializable {
+
+    private static final long serialVersionUID = 8463835350563510267L;
 
     private List<PerfReqEmbb> perfReqEmbbList;
 
index f6e945e..1db009c 100644 (file)
@@ -25,6 +25,9 @@ import java.io.Serializable;
 
 @JsonInclude(JsonInclude.Include.NON_NULL)
 public class PerfReqEmbb implements Serializable {
+    /*
+     * Reference 3GPP TS 28.541 V16.5.0, Section 6.4.1.
+     */
 
     private static final long serialVersionUID = 8886635511695277599L;
 
index c64af1d..9b6df0f 100644 (file)
@@ -83,9 +83,9 @@ public class SliceProfileAdapter implements Serializable {
         anSliceProfile.setCoverageAreaTAList(Arrays.asList(areasRes));
         anSliceProfile.setUEMobilityLevel(UeMobilityLevel.fromString(this.uEMobilityLevel));
         anSliceProfile.setResourceSharingLevel(ResourceSharingLevel.fromString(this.resourceSharingLevel));
-        AnPerfReq anPerfReq = new AnPerfReq();
+        PerfReq perfReq = new PerfReq();
         // todo
-        anSliceProfile.setPerfReq(anPerfReq);
+        anSliceProfile.setPerfReq(perfReq);
         return anSliceProfile;
     }