A Discrete-Event Network Simulator
API
lte-simple-net-device.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation;
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  *
17  * Author: Manuel Requena <manuel.requena@cttc.es>
18  */
19 
20 #ifndef LTE_SIMPLE_NET_DEVICE_H
21 #define LTE_SIMPLE_NET_DEVICE_H
22 
23 #include "ns3/error-model.h"
24 #include "ns3/event-id.h"
25 #include "ns3/lte-rlc.h"
26 #include "ns3/node.h"
27 #include "ns3/simple-channel.h"
28 #include "ns3/simple-net-device.h"
29 
30 namespace ns3
31 {
32 
40 {
41  public:
46  static TypeId GetTypeId();
47 
55 
56  ~LteSimpleNetDevice() override;
57  void DoDispose() override;
58 
59  // inherited from NetDevice
60  bool Send(Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber) override;
61 
62  protected:
63  // inherited from Object
64  void DoInitialize() override;
65 };
66 
67 } // namespace ns3
68 
69 #endif // LTE_SIMPLE_NET_DEVICE_H
a polymophic address class
Definition: address.h:101
The LteSimpleNetDevice class implements the LTE simple net device.
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) override
static TypeId GetTypeId()
Get the type ID.
void DoDispose() override
Destructor implementation.
void DoInitialize() override
Initialize() implementation.
This device assumes 48-bit mac addressing; there is also the possibility to add an ErrorModel if you ...
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.