A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
lte-simple-net-device.cc
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
#include "ns3/simulator.h"
22
#include "ns3/pointer.h"
23
#include "ns3/log.h"
24
#include "
lte-simple-net-device.h
"
25
26
NS_LOG_COMPONENT_DEFINE
(
"LteSimpleNetDevice"
);
27
28
namespace
ns3 {
29
30
31
NS_OBJECT_ENSURE_REGISTERED
(LteSimpleNetDevice)
32
;
33
34
35
TypeId
LteSimpleNetDevice::GetTypeId
(
void
)
36
{
37
static
TypeId
38
tid =
39
TypeId
(
"ns3::LteSimpleNetDevice"
)
40
.
SetParent
<
SimpleNetDevice
> ()
41
.AddConstructor<LteSimpleNetDevice> ()
42
;
43
44
return
tid;
45
}
46
47
48
LteSimpleNetDevice::LteSimpleNetDevice
(
void
)
49
{
50
NS_LOG_FUNCTION
(
this
);
51
}
52
53
54
LteSimpleNetDevice::LteSimpleNetDevice
(
Ptr<Node>
node)
55
{
56
NS_LOG_FUNCTION
(
this
);
57
SetNode
(node);
58
}
59
60
LteSimpleNetDevice::~LteSimpleNetDevice
(
void
)
61
{
62
NS_LOG_FUNCTION
(
this
);
63
}
64
65
void
66
LteSimpleNetDevice::DoDispose
(
void
)
67
{
68
NS_LOG_FUNCTION
(
this
);
69
SimpleNetDevice::DoDispose
();
70
}
71
72
73
void
74
LteSimpleNetDevice::DoInitialize
(
void
)
75
{
76
NS_LOG_FUNCTION
(
this
);
77
}
78
79
bool
80
LteSimpleNetDevice::Send
(
Ptr<Packet>
packet,
const
Address
& dest, uint16_t protocolNumber)
81
{
82
NS_LOG_FUNCTION
(
this
<< dest << protocolNumber);
83
return
SimpleNetDevice::Send
(packet, dest, protocolNumber);
84
}
85
86
87
}
// namespace ns3
ns3::SimpleNetDevice::Send
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Definition:
simple-net-device.cc:217
ns3::Ptr< Node >
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
Definition:
log.h:345
ns3::LteSimpleNetDevice::~LteSimpleNetDevice
virtual ~LteSimpleNetDevice(void)
Definition:
lte-simple-net-device.cc:60
ns3::NS_OBJECT_ENSURE_REGISTERED
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
lte-simple-net-device.h
ns3::Address
a polymophic address class
Definition:
address.h:86
ns3::SimpleNetDevice::SetNode
virtual void SetNode(Ptr< Node > node)
Definition:
simple-net-device.cc:241
NS_LOG_COMPONENT_DEFINE
NS_LOG_COMPONENT_DEFINE("LteSimpleNetDevice")
ns3::LteSimpleNetDevice::DoInitialize
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
Definition:
lte-simple-net-device.cc:74
ns3::SimpleNetDevice
This device does not have a helper and assumes 48-bit mac addressing; the default address assigned to...
Definition:
simple-net-device.h:45
ns3::LteSimpleNetDevice::LteSimpleNetDevice
LteSimpleNetDevice(void)
Definition:
lte-simple-net-device.cc:48
ns3::LteSimpleNetDevice::DoDispose
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
lte-simple-net-device.cc:66
ns3::LteSimpleNetDevice::Send
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Definition:
lte-simple-net-device.cc:80
ns3::SimpleNetDevice::DoDispose
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
simple-net-device.cc:260
ns3::LteSimpleNetDevice::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-simple-net-device.cc:35
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Definition:
type-id.cc:611
src
lte
test
lte-simple-net-device.cc
Generated on Sat Apr 19 2014 14:07:02 for ns-3 by
1.8.6