VES PM data for slicing use case. [Issue-Id: ODUHIGH-384]
[o-du/l2.git] / src / o1 / SliceMetrics.cpp
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2020-2021] [HCL Technologies Ltd.]                          #
4 #                                                                              #
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                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
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.                                             #
16 ################################################################################
17 *******************************************************************************/
18
19 /* This file defines the SliceMetrics which holds the Network Slice Metrics */ 
20
21 #include "SliceMetrics.hpp"
22
23 /* Default Constructor */
24 SliceMetrics::SliceMetrics() {
25
26 }
27
28 /* Default Destructor */
29 SliceMetrics::~SliceMetrics() {
30
31 }
32
33 /*******************************************************************
34  *
35  * @brief Add the slice metric record to the list 
36  *
37  * @details
38  *
39  *    Function : addMetric
40  *
41  *    Functionality:
42  *      - Adds slice metric record to the list
43  *
44  *
45  * @params[in] SliceMetricRecord
46  * @return void
47  ******************************************************************/
48 void SliceMetrics::addMetric(SliceMetricRecord& sliceMetricRecord) {
49
50    mSliceList.push_back(sliceMetricRecord);
51
52 }
53
54 /*******************************************************************
55  *
56  * @brief Returns the slice metric list
57  *
58  * @details
59  *
60  *    Function : getSliceMetrics
61  *
62  *    Functionality:
63  *      - Returns the slice metric vector list 
64  *
65  *
66  * @params[in] void
67  * @return const reference to vector<SliceMetricRecord>
68  ******************************************************************/
69 const vector<SliceMetricRecord>& SliceMetrics::getSliceMetrics() const {
70    return mSliceList;
71 }
72
73 /**********************************************************************
74          End of file
75 **********************************************************************/