A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
39
class
LteSimpleNetDevice
:
public
SimpleNetDevice
40
{
41
public
:
46
static
TypeId
GetTypeId
();
47
48
LteSimpleNetDevice
();
54
LteSimpleNetDevice
(
Ptr<Node>
node);
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
ns3::Address
a polymophic address class
Definition:
address.h:101
ns3::LteSimpleNetDevice
The LteSimpleNetDevice class implements the LTE simple net device.
Definition:
lte-simple-net-device.h:40
ns3::LteSimpleNetDevice::Send
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) override
Definition:
lte-simple-net-device.cc:74
ns3::LteSimpleNetDevice::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-simple-net-device.cc:35
ns3::LteSimpleNetDevice::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
lte-simple-net-device.cc:61
ns3::LteSimpleNetDevice::LteSimpleNetDevice
LteSimpleNetDevice()
Definition:
lte-simple-net-device.cc:44
ns3::LteSimpleNetDevice::~LteSimpleNetDevice
~LteSimpleNetDevice() override
Definition:
lte-simple-net-device.cc:55
ns3::LteSimpleNetDevice::DoInitialize
void DoInitialize() override
Initialize() implementation.
Definition:
lte-simple-net-device.cc:68
ns3::Ptr< Node >
ns3::SimpleNetDevice
This device assumes 48-bit mac addressing; there is also the possibility to add an ErrorModel if you ...
Definition:
simple-net-device.h:55
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-simple-net-device.h
Generated on Sun Mar 3 2024 17:11:03 for ns-3 by
1.9.1