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 16 matching lines...) Expand all Loading... |
27 class Tag; | 27 class Tag; |
28 | 28 |
29 | 29 |
30 /** | 30 /** |
31 * Tag used to define the RNTI and LC id for each MAC packet trasmitted | 31 * Tag used to define the RNTI and LC id for each MAC packet trasmitted |
32 */ | 32 */ |
33 | 33 |
34 class LteRadioBearerTag : public Tag | 34 class LteRadioBearerTag : public Tag |
35 { | 35 { |
36 public: | 36 public: |
| 37 /** |
| 38 * \brief Get the type ID. |
| 39 * \return the object TypeId |
| 40 */ |
37 static TypeId GetTypeId (void); | 41 static TypeId GetTypeId (void); |
38 virtual TypeId GetInstanceTypeId (void) const; | 42 virtual TypeId GetInstanceTypeId (void) const; |
39 | 43 |
40 /** | 44 /** |
41 * Create an empty LteRadioBearerTag | 45 * Create an empty LteRadioBearerTag |
42 */ | 46 */ |
43 LteRadioBearerTag (); | 47 LteRadioBearerTag (); |
44 | 48 |
45 /** | 49 /** |
46 * Create a LteRadioBearerTag with the given RNTI and LC id | 50 * Create a LteRadioBearerTag with the given RNTI and LC id |
(...skipping 25 matching lines...) Expand all Loading... |
72 * @param layer the value of the layer to set | 76 * @param layer the value of the layer to set |
73 */ | 77 */ |
74 void SetLayer (uint8_t layer); | 78 void SetLayer (uint8_t layer); |
75 | 79 |
76 | 80 |
77 virtual void Serialize (TagBuffer i) const; | 81 virtual void Serialize (TagBuffer i) const; |
78 virtual void Deserialize (TagBuffer i); | 82 virtual void Deserialize (TagBuffer i); |
79 virtual uint32_t GetSerializedSize () const; | 83 virtual uint32_t GetSerializedSize () const; |
80 virtual void Print (std::ostream &os) const; | 84 virtual void Print (std::ostream &os) const; |
81 | 85 |
| 86 /** |
| 87 * Get RNTI function |
| 88 * |
| 89 * \returns RNTI |
| 90 */ |
82 uint16_t GetRnti (void) const; | 91 uint16_t GetRnti (void) const; |
| 92 /** |
| 93 * Get LCID function |
| 94 * |
| 95 * \returns LCID |
| 96 */ |
83 uint8_t GetLcid (void) const; | 97 uint8_t GetLcid (void) const; |
| 98 /** |
| 99 * Get layer function |
| 100 * |
| 101 * \returns layer |
| 102 */ |
84 uint8_t GetLayer (void) const; | 103 uint8_t GetLayer (void) const; |
85 | 104 |
86 private: | 105 private: |
87 uint16_t m_rnti; | 106 uint16_t m_rnti; ///< RNTI |
88 uint8_t m_lcid; | 107 uint8_t m_lcid; ///< LCID |
89 uint8_t m_layer; | 108 uint8_t m_layer; ///< layer |
90 | 109 |
91 }; | 110 }; |
92 | 111 |
93 | 112 |
94 | 113 |
95 } // namespace ns3 | 114 } // namespace ns3 |
96 | 115 |
97 #endif /* LTE_RADIO_BEARER_TAG_H */ | 116 #endif /* LTE_RADIO_BEARER_TAG_H */ |
OLD | NEW |