OLD | NEW |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "ns3/tag.h" | 24 #include "ns3/tag.h" |
25 | 25 |
26 namespace ns3 { | 26 namespace ns3 { |
27 | 27 |
28 /** | 28 /** |
29 * Tag used to define PHY parameters· | 29 * Tag used to define PHY parameters· |
30 */ | 30 */ |
31 class LtePhyTag : public Tag | 31 class LtePhyTag : public Tag |
32 { | 32 { |
33 public: | 33 public: |
| 34 /** |
| 35 * \brief Get the type ID. |
| 36 * \return the object TypeId |
| 37 */ |
34 static TypeId GetTypeId (void); | 38 static TypeId GetTypeId (void); |
35 virtual TypeId GetInstanceTypeId (void) const; | 39 virtual TypeId GetInstanceTypeId (void) const; |
36 | 40 |
37 /** | 41 /** |
38 * Create an empty LtePhyTag | 42 * Create an empty LtePhyTag |
39 */ | 43 */ |
40 LtePhyTag (); | 44 LtePhyTag (); |
41 | 45 |
42 /** | 46 /** |
43 * Create a LtePhyTag with the given RNTI and LC id | 47 * Create a LtePhyTag with the given RNTI and LC id |
44 */ | 48 */ |
45 LtePhyTag (uint16_t cellId); | 49 LtePhyTag (uint16_t cellId); |
46 | 50 |
47 | 51 |
48 virtual ~LtePhyTag (); | 52 virtual ~LtePhyTag (); |
49 | 53 |
50 virtual void Serialize (TagBuffer i) const; | 54 virtual void Serialize (TagBuffer i) const; |
51 virtual void Deserialize (TagBuffer i); | 55 virtual void Deserialize (TagBuffer i); |
52 virtual uint32_t GetSerializedSize () const; | 56 virtual uint32_t GetSerializedSize () const; |
53 virtual void Print (std::ostream &os) const; | 57 virtual void Print (std::ostream &os) const; |
54 | 58 |
| 59 /** |
| 60 * Get cell ID |
| 61 * |
| 62 * \returns cell ID |
| 63 */ |
55 uint16_t GetCellId () const; | 64 uint16_t GetCellId () const; |
56 | 65 |
57 private: | 66 private: |
58 uint16_t m_cellId; | 67 uint16_t m_cellId; ///< the cell ID |
59 | 68 |
60 }; | 69 }; |
61 | 70 |
62 | 71 |
63 | 72 |
64 } // namespace ns3 | 73 } // namespace ns3 |
65 | 74 |
66 #endif /* LTE_PHY_TAG_H */ | 75 #endif /* LTE_PHY_TAG_H */ |
OLD | NEW |