First release
[sim/ns3-o-ran-e2.git] / helper / indication-message-helper.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 INDICATION_MESSAGE_HELPER_H
26 #define INDICATION_MESSAGE_HELPER_H
27
28 #include <ns3/kpm-indication.h>
29
30 namespace ns3 {
31
32 class IndicationMessageHelper : public Object
33 {
34 public:
35   enum class IndicationMessageType { CuCp = 0, CuUp = 1, Du = 2 };
36   IndicationMessageHelper (IndicationMessageType type, bool isOffline, bool reducedPmValues);
37
38   ~IndicationMessageHelper ();
39
40   Ptr<KpmIndicationMessage> CreateIndicationMessage ();
41
42   bool const &
43   IsOffline () const
44   {
45     return m_offline;
46   }
47
48 protected:
49   void FillBaseCuUpValues (std::string plmId);
50
51   void FillBaseCuCpValues (uint16_t numActiveUes);
52
53   IndicationMessageType m_type;
54   bool m_offline;
55   bool m_reducedPmValues;
56   KpmIndicationMessage::KpmIndicationMessageValues m_msgValues;
57   Ptr<OCuUpContainerValues> m_cuUpValues;
58   Ptr<OCuCpContainerValues> m_cuCpValues;
59   Ptr<ODuContainerValues> m_duValues;
60 };
61
62 } // namespace ns3
63
64 #endif /* INDICATION_MESSAGE_HELPER_H */