A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
test
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
40
class
LteSimpleNetDevice
:
public
SimpleNetDevice
41
{
42
43
public
:
48
static
TypeId
GetTypeId
(
void
);
49
50
LteSimpleNetDevice
(
void
);
56
LteSimpleNetDevice
(
Ptr<Node>
node);
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
ns3::Ptr< Node >
ns3::LteSimpleNetDevice::~LteSimpleNetDevice
virtual ~LteSimpleNetDevice(void)
Definition:
lte-simple-net-device.cc:59
ns3::Address
a polymophic address class
Definition:
address.h:90
ns3::LteSimpleNetDevice::DoInitialize
virtual void DoInitialize(void)
Initialize() implementation.
Definition:
lte-simple-net-device.cc:73
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::LteSimpleNetDevice::LteSimpleNetDevice
LteSimpleNetDevice(void)
Definition:
lte-simple-net-device.cc:47
ns3::LteSimpleNetDevice::DoDispose
virtual void DoDispose()
Destructor implementation.
Definition:
lte-simple-net-device.cc:65
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteSimpleNetDevice::Send
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Definition:
lte-simple-net-device.cc:79
ns3::LteSimpleNetDevice
The LteSimpleNetDevice class implements the LTE simple net device.
Definition:
lte-simple-net-device.h:40
ns3::LteSimpleNetDevice::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
lte-simple-net-device.cc:34
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
Generated on Wed Nov 7 2018 10:02:03 for ns-3 by
1.8.14