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) 2015 Danilo Abrignani | 3 * Copyright (c) 2015 Danilo Abrignani |
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 | 24 |
25 #include <ns3/object.h> | 25 #include <ns3/object.h> |
26 #include <ns3/packet.h> | 26 #include <ns3/packet.h> |
27 #include <ns3/nstime.h> | 27 #include <ns3/nstime.h> |
28 #include "ns3/lte-phy.h" | 28 #include "ns3/lte-phy.h" |
29 #include <ns3/lte-ue-phy.h> | 29 #include <ns3/lte-ue-phy.h> |
30 #include <ns3/component-carrier.h> | 30 #include <ns3/component-carrier.h> |
31 | 31 |
32 namespace ns3 { | 32 namespace ns3 { |
33 | 33 |
| 34 class LteUeMac; |
34 /** | 35 /** |
35 * \ingroup lte | 36 * \ingroup lte |
36 * | 37 * |
37 * ComponentCarrierUe Object, it defines a single Carrier | 38 * ComponentCarrierUe Object, it defines a single Carrier |
38 */ | 39 */ |
39 class ComponentCarrierUe : public ComponentCarrier | 40 class ComponentCarrierUe : public ComponentCarrier |
40 { | 41 { |
41 public: | 42 public: |
42 static TypeId GetTypeId (void); | 43 static TypeId GetTypeId (void); |
43 | 44 |
44 ComponentCarrierUe (); | 45 ComponentCarrierUe (); |
45 | 46 |
46 virtual ~ComponentCarrierUe (void); | 47 virtual ~ComponentCarrierUe (void); |
47 virtual void DoDispose (void); | 48 virtual void DoDispose (void); |
48 | 49 |
49 | 50 |
50 /** | 51 /** |
51 * \return a pointer to the physical layer. | 52 * \return a pointer to the physical layer. |
52 */ | 53 */ |
53 Ptr<LteUePhy> GetPhy (void) const; | 54 Ptr<LteUePhy> GetPhy (void) const; |
54 | 55 Ptr<LteUeMac> GetMac (void) const; |
| 56 void GetMac (Ptr<LteUeMac> s); |
| 57 void SetMac (Ptr<LteUeMac> s); |
55 Ptr<LteUePhy> m_phy; | 58 Ptr<LteUePhy> m_phy; |
56 | 59 Ptr<LteUeMac> m_mac; |
57 protected: | 60 protected: |
58 // inherited from Object | 61 // inherited from Object |
59 virtual void DoInitialize (void); | 62 virtual void DoInitialize (void); |
60 | 63 |
61 | 64 |
62 }; | 65 }; |
63 | 66 |
64 | 67 |
65 | 68 |
66 } // namespace ns3 | 69 } // namespace ns3 |
67 | 70 |
68 | 71 |
69 | 72 |
70 #endif /* COMPONENT_CARRIER_UE_H */ | 73 #endif /* COMPONENT_CARRIER_UE_H */ |
OLD | NEW |