A Discrete-Event Network Simulator
API
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 * 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
21
22#include "ns3/log.h"
23#include "ns3/pointer.h"
24#include "ns3/queue.h"
25#include "ns3/simulator.h"
26
27namespace ns3
28{
29
30NS_LOG_COMPONENT_DEFINE("LteSimpleNetDevice");
31
32NS_OBJECT_ENSURE_REGISTERED(LteSimpleNetDevice);
33
34TypeId
36{
37 static TypeId tid = TypeId("ns3::LteSimpleNetDevice")
39 .AddConstructor<LteSimpleNetDevice>();
40
41 return tid;
42}
43
45{
46 NS_LOG_FUNCTION(this);
47}
48
50{
51 NS_LOG_FUNCTION(this);
52 SetNode(node);
53}
54
56{
57 NS_LOG_FUNCTION(this);
58}
59
60void
62{
63 NS_LOG_FUNCTION(this);
65}
66
67void
69{
70 NS_LOG_FUNCTION(this);
71}
72
73bool
74LteSimpleNetDevice::Send(Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber)
75{
76 NS_LOG_FUNCTION(this << dest << protocolNumber);
77 return SimpleNetDevice::Send(packet, dest, protocolNumber);
78}
79
80} // namespace ns3
a polymophic address class
Definition: address.h:100
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.
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:60
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:935
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#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:46
Every class exported by the ns3 library is enclosed in the ns3 namespace.