First release
[sim/ns3-o-ran-e2.git] / examples / e2sim-integration-example.cc
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 #include "ns3/core-module.h"
26 #include "ns3/oran-interface.h"
27
28 extern "C" {
29   // #include "OCUCP-PF-Container.h"
30   #include "OCTET_STRING.h"
31   #include "asn_application.h"
32   // #include "E2SM-KPM-IndicationMessage.h"
33   // #include "FQIPERSlicesPerPlmnListItem.h"
34   // #include "E2SM-KPM-RANfunction-Description.h"
35   // #include "E2SM-KPM-IndicationHeader-Format1.h"
36   // #include "E2SM-KPM-IndicationHeader.h"
37   // #include "Timestamp.h"
38   #include "E2AP-PDU.h"
39   #include "RICsubscriptionRequest.h"
40   #include "RICsubscriptionResponse.h"
41   #include "RICactionType.h"
42   #include "ProtocolIE-Field.h"
43   #include "ProtocolIE-SingleContainer.h"
44   #include "InitiatingMessage.h"
45 }
46
47 #include "e2sim.hpp"
48
49 using namespace ns3;
50
51 int 
52 main (int argc, char *argv[])
53 {
54   E2Sim e2sim;
55   e2sim.run_loop (argc, argv);
56   
57   Simulator::Run ();
58   Simulator::Destroy ();
59   return 0;
60 }