X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helper%2Findication-message-helper.h;fp=helper%2Findication-message-helper.h;h=605f6330072cad51e590e9c3488f597aaf174c19;hb=8585bec317470bd91aa09d3274748af569ec5b75;hp=0000000000000000000000000000000000000000;hpb=240b99b7058fa8e961b36911746848a1b6b618b3;p=sim%2Fns3-o-ran-e2.git diff --git a/helper/indication-message-helper.h b/helper/indication-message-helper.h new file mode 100644 index 0000000..605f633 --- /dev/null +++ b/helper/indication-message-helper.h @@ -0,0 +1,64 @@ +/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2022 Northeastern University + * Copyright (c) 2022 Sapienza, University of Rome + * Copyright (c) 2022 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Andrea Lacava + * Tommaso Zugno + * Michele Polese + */ + +#ifndef INDICATION_MESSAGE_HELPER_H +#define INDICATION_MESSAGE_HELPER_H + +#include + +namespace ns3 { + +class IndicationMessageHelper : public Object +{ +public: + enum class IndicationMessageType { CuCp = 0, CuUp = 1, Du = 2 }; + IndicationMessageHelper (IndicationMessageType type, bool isOffline, bool reducedPmValues); + + ~IndicationMessageHelper (); + + Ptr CreateIndicationMessage (); + + bool const & + IsOffline () const + { + return m_offline; + } + +protected: + void FillBaseCuUpValues (std::string plmId); + + void FillBaseCuCpValues (uint16_t numActiveUes); + + IndicationMessageType m_type; + bool m_offline; + bool m_reducedPmValues; + KpmIndicationMessage::KpmIndicationMessageValues m_msgValues; + Ptr m_cuUpValues; + Ptr m_cuCpValues; + Ptr m_duValues; +}; + +} // namespace ns3 + +#endif /* INDICATION_MESSAGE_HELPER_H */ \ No newline at end of file