First release
[sim/ns3-o-ran-e2.git] / model / kpm-function-description.h
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2022 Northeastern University
4  * Copyright (c) 2022 Sapienza, University of Rome
5  * Copyright (c) 2022 University of Padova
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation;
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  * Author: Andrea Lacava <thecave003@gmail.com>
21  *                 Tommaso Zugno <tommasozugno@gmail.com>
22  *                 Michele Polese <michele.polese@gmail.com>
23  */
24
25 #ifndef KPM_FUNCTION_DESCRIPTION_H
26 #define KPM_FUNCTION_DESCRIPTION_H
27
28 #include "ns3/object.h"
29 #include <ns3/function-description.h>
30
31 extern "C" {
32   #include "E2SM-KPM-RANfunction-Description.h"
33   #include "E2SM-KPM-IndicationHeader.h"
34   #include "E2SM-KPM-IndicationMessage.h"
35   #include "RAN-Container.h"
36   #include "PF-Container.h"
37   #include "OCUUP-PF-Container.h"
38   #include "PF-ContainerListItem.h"
39   #include "asn1c-types.h"
40 }
41
42 namespace ns3 {
43
44   class KpmFunctionDescription : public FunctionDescription
45   {
46   public:
47     KpmFunctionDescription ();
48     ~KpmFunctionDescription ();
49     
50   private:
51     /**
52     * Encodes the RAN Function Description item for the KPM Service Model.
53     *
54     * \param kpmFunctionDescription the RAN Function Description item
55     */
56     void FillAndEncodeKpmFunctionDescription (E2SM_KPM_RANfunction_Description_t* descriptor);
57     void Encode (E2SM_KPM_RANfunction_Description_t* descriptor);
58   };
59   
60 }
61
62 #endif /* KPM_FUNCTION_DESCRIPTION_H */