X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=model%2Fkpm-function-description.h;fp=model%2Fkpm-function-description.h;h=2cbb101fe7b5e806c6fe471638292deab0e6c983;hb=8585bec317470bd91aa09d3274748af569ec5b75;hp=0000000000000000000000000000000000000000;hpb=240b99b7058fa8e961b36911746848a1b6b618b3;p=sim%2Fns3-o-ran-e2.git diff --git a/model/kpm-function-description.h b/model/kpm-function-description.h new file mode 100644 index 0000000..2cbb101 --- /dev/null +++ b/model/kpm-function-description.h @@ -0,0 +1,62 @@ +/* -*- 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 KPM_FUNCTION_DESCRIPTION_H +#define KPM_FUNCTION_DESCRIPTION_H + +#include "ns3/object.h" +#include + +extern "C" { + #include "E2SM-KPM-RANfunction-Description.h" + #include "E2SM-KPM-IndicationHeader.h" + #include "E2SM-KPM-IndicationMessage.h" + #include "RAN-Container.h" + #include "PF-Container.h" + #include "OCUUP-PF-Container.h" + #include "PF-ContainerListItem.h" + #include "asn1c-types.h" +} + +namespace ns3 { + + class KpmFunctionDescription : public FunctionDescription + { + public: + KpmFunctionDescription (); + ~KpmFunctionDescription (); + + private: + /** + * Encodes the RAN Function Description item for the KPM Service Model. + * + * \param kpmFunctionDescription the RAN Function Description item + */ + void FillAndEncodeKpmFunctionDescription (E2SM_KPM_RANfunction_Description_t* descriptor); + void Encode (E2SM_KPM_RANfunction_Description_t* descriptor); + }; + +} + +#endif /* KPM_FUNCTION_DESCRIPTION_H */