1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2020-2021] [HCL Technologies Ltd.] #
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. #
16 ################################################################################
17 *******************************************************************************/
19 /* This file defines the SliceMetrics which holds the Network Slice Metrics */
21 #include "SliceMetrics.hpp"
23 /* Default Constructor */
24 SliceMetrics::SliceMetrics() {
28 /* Default Destructor */
29 SliceMetrics::~SliceMetrics() {
33 /*******************************************************************
35 * @brief Add the slice metric record to the list
39 * Function : addMetric
42 * - Adds slice metric record to the list
45 * @params[in] SliceMetricRecord
47 ******************************************************************/
48 void SliceMetrics::addMetric(SliceMetricRecord& sliceMetricRecord) {
50 mSliceList.push_back(sliceMetricRecord);
54 /*******************************************************************
56 * @brief Returns the slice metric list
60 * Function : getSliceMetrics
63 * - Returns the slice metric vector list
67 * @return const reference to vector<SliceMetricRecord>
68 ******************************************************************/
69 const vector<SliceMetricRecord>& SliceMetrics::getSliceMetrics() const {
73 /**********************************************************************
75 **********************************************************************/