A Discrete-Event Network Simulator
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
10
11#include "ns3/log.h"
12#include "ns3/pointer.h"
13#include "ns3/queue.h"
14#include "ns3/simulator.h"
15
16namespace ns3
17{
18
19NS_LOG_COMPONENT_DEFINE("LteSimpleNetDevice");
20
21NS_OBJECT_ENSURE_REGISTERED(LteSimpleNetDevice);
22
23TypeId
25{
26 static TypeId tid = TypeId("ns3::LteSimpleNetDevice")
28 .AddConstructor<LteSimpleNetDevice>();
29
30 return tid;
31}
32
37
43
48
49void
55
56void
61
62bool
63LteSimpleNetDevice::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
a polymophic address class
Definition address.h:90
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.
Smart pointer class similar to boost::intrusive_ptr.
This device assumes 48-bit mac addressing; there is also the possibility to add an ErrorModel if you ...
void DoDispose() override
Destructor implementation.
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) override
void SetNode(Ptr< Node > node) override
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:978
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.