2 // Copyright 2019 AT&T Intellectual Property
3 // Copyright 2019 Nokia
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 // This source code is part of the near-RT RIC (RAN Intelligent Controller)
20 // platform project (RICP).
29 type MeasurementFailureCause struct {
30 MeasurementFailedReportCharacteristics []byte
33 func (r MeasurementFailureCause) String() string {
34 return fmt.Sprintf("MeasurementFailedReportCharacteristics: %x", r.MeasurementFailedReportCharacteristics)
37 type MeasurementInitiationResult struct {
39 MeasurementFailureCauses []*MeasurementFailureCause
42 func (r MeasurementInitiationResult) String() string {
43 var strBuilder strings.Builder
44 strBuilder.WriteString("[ ")
45 for _, cause := range r.MeasurementFailureCauses {
46 strBuilder.WriteString(cause.String())
47 strBuilder.WriteString(" ")
49 strBuilder.WriteString(" ]")
50 return fmt.Sprintf("CellId: %s, MeasurementFailureCauses: %s", r.CellId, strBuilder.String())
53 type ResourceStatusResponse struct {
54 ENB1_Measurement_ID int64
55 ENB2_Measurement_ID int64
56 MeasurementInitiationResults []*MeasurementInitiationResult
59 func (r ResourceStatusResponse) String() string {
60 var strBuilder strings.Builder
61 strBuilder.WriteString("[ ")
62 for _, result := range r.MeasurementInitiationResults {
63 strBuilder.WriteString(result.String())
64 strBuilder.WriteString(" ")
66 strBuilder.WriteString(" ]")
67 return fmt.Sprintf("ENB1_Measurement_ID: %d, ENB2_Measurement_ID: %d, MeasurementInitiationResults:%s", r.ENB1_Measurement_ID, r.ENB2_Measurement_ID, strBuilder.String())