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