A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
lte-simple-net-device.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
*/
8
9
#include "
lte-simple-net-device.h
"
10
11
#include "ns3/log.h"
12
#include "ns3/pointer.h"
13
#include "ns3/queue.h"
14
#include "ns3/simulator.h"
15
16
namespace
ns3
17
{
18
19
NS_LOG_COMPONENT_DEFINE
(
"LteSimpleNetDevice"
);
20
21
NS_OBJECT_ENSURE_REGISTERED
(LteSimpleNetDevice);
22
23
TypeId
24
LteSimpleNetDevice::GetTypeId
()
25
{
26
static
TypeId
tid =
TypeId
(
"ns3::LteSimpleNetDevice"
)
27
.
SetParent
<
SimpleNetDevice
>()
28
.AddConstructor<LteSimpleNetDevice>();
29
30
return
tid;
31
}
32
33
LteSimpleNetDevice::LteSimpleNetDevice
()
34
{
35
NS_LOG_FUNCTION
(
this
);
36
}
37
38
LteSimpleNetDevice::LteSimpleNetDevice
(
Ptr<Node>
node)
39
{
40
NS_LOG_FUNCTION
(
this
);
41
SetNode
(node);
42
}
43
44
LteSimpleNetDevice::~LteSimpleNetDevice
()
45
{
46
NS_LOG_FUNCTION
(
this
);
47
}
48
49
void
50
LteSimpleNetDevice::DoDispose
()
51
{
52
NS_LOG_FUNCTION
(
this
);
53
SimpleNetDevice::DoDispose
();
54
}
55
56
void
57
LteSimpleNetDevice::DoInitialize
()
58
{
59
NS_LOG_FUNCTION
(
this
);
60
}
61
62
bool
63
LteSimpleNetDevice::Send
(
Ptr<Packet>
packet,
const
Address
& dest, uint16_t protocolNumber)
64
{
65
NS_LOG_FUNCTION
(
this
<< dest << protocolNumber);
66
return
SimpleNetDevice::Send
(packet, dest, protocolNumber);
67
}
68
69
}
// namespace ns3
ns3::Address
a polymophic address class
Definition
address.h:90
ns3::LteSimpleNetDevice::Send
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) override
Definition
lte-simple-net-device.cc:63
ns3::LteSimpleNetDevice::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-simple-net-device.cc:24
ns3::LteSimpleNetDevice::DoDispose
void DoDispose() override
Destructor implementation.
Definition
lte-simple-net-device.cc:50
ns3::LteSimpleNetDevice::LteSimpleNetDevice
LteSimpleNetDevice()
Definition
lte-simple-net-device.cc:33
ns3::LteSimpleNetDevice::~LteSimpleNetDevice
~LteSimpleNetDevice() override
Definition
lte-simple-net-device.cc:44
ns3::LteSimpleNetDevice::DoInitialize
void DoInitialize() override
Initialize() implementation.
Definition
lte-simple-net-device.cc:57
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
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:44
ns3::SimpleNetDevice::DoDispose
void DoDispose() override
Destructor implementation.
Definition
simple-net-device.cc:529
ns3::SimpleNetDevice::Send
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) override
Definition
simple-net-device.cc:411
ns3::SimpleNetDevice::SetNode
void SetNode(Ptr< Node > node) override
Definition
simple-net-device.cc:508
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
lte-simple-net-device.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-simple-net-device.cc
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0