src/lte/model/lte-enb-net-device.cc
author Budiarto Herman <budiarto.herman@magister.fi>
Wed, 07 Aug 2013 11:42:53 +0300
changeset 10316 dc88a59d7ff2
parent 9703 681f35b212ff
child 10320 0fca10d6d044
permissions -rw-r--r--
Handover management SAP interface and A2/RSRQ-based handover algorithm
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7385
10beb0e53130 standardize emacs c++ mode comments
Vedran Mileti? <rivanvx@gmail.com>
parents: 7252
diff changeset
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     2
/*
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     3
 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     4
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     7
 * published by the Free Software Foundation;
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     8
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    12
 * GNU General Public License for more details.
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    13
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    17
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    18
 * Author: Giuseppe Piro  <g.piro@poliba.it>
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    19
 * Author: Marco Miozzo <mmiozzo@cttc.es> : Update to FF API Architecture
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    20
 * Author: Nicola Baldo <nbaldo@cttc.es>  : Integrated with new RRC and MAC architecture
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    21
 */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    22
7897
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    23
#include <ns3/llc-snap-header.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    24
#include <ns3/simulator.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    25
#include <ns3/callback.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    26
#include <ns3/node.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    27
#include <ns3/packet.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    28
#include <ns3/lte-net-device.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    29
#include <ns3/packet-burst.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    30
#include <ns3/uinteger.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    31
#include <ns3/trace-source-accessor.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    32
#include <ns3/pointer.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    33
#include <ns3/enum.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    34
#include <ns3/lte-amc.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    35
#include <ns3/lte-enb-mac.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    36
#include <ns3/lte-enb-net-device.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    37
#include <ns3/lte-enb-rrc.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    38
#include <ns3/lte-ue-net-device.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    39
#include <ns3/lte-enb-phy.h>
313a02778014 DL PF Scheduler
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7887
diff changeset
    40
#include <ns3/ff-mac-scheduler.h>
10316
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
    41
#include <ns3/handover-algorithm.h>
8389
cb215987eb77 LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents: 8167
diff changeset
    42
#include <ns3/ipv4-l3-protocol.h>
8255
bd60df311c7b revised interaction between LenaHelper and propagation models
Nicola Baldo <nbaldo@cttc.es>
parents: 8253
diff changeset
    43
#include <ns3/abort.h>
8256
629982ba48a8 removed some useless inclusions of log.h
Nicola Baldo <nbaldo@cttc.es>
parents: 8255
diff changeset
    44
#include <ns3/log.h>
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    45
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    46
NS_LOG_COMPONENT_DEFINE ("LteEnbNetDevice");
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    47
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    48
namespace ns3 {
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    49
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    50
NS_OBJECT_ENSURE_REGISTERED ( LteEnbNetDevice);
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    51
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    52
TypeId LteEnbNetDevice::GetTypeId (void)
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    53
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    54
  static TypeId
7252
c8200621e252 rerun check-style.py with uncrustify-0.58
Tom Henderson <tomh@tomh.org>
parents: 7177
diff changeset
    55
    tid =
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    56
    TypeId ("ns3::LteEnbNetDevice")
7901
2451f71f1ce4 Added attributes to enable access to RLC instances in Enb
jnin
parents: 7887
diff changeset
    57
    .SetParent<LteNetDevice> ()
2451f71f1ce4 Added attributes to enable access to RLC instances in Enb
jnin
parents: 7887
diff changeset
    58
    .AddConstructor<LteEnbNetDevice> ()
2451f71f1ce4 Added attributes to enable access to RLC instances in Enb
jnin
parents: 7887
diff changeset
    59
    .AddAttribute ("LteEnbRrc",
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    60
                   "The RRC associated to this EnbNetDevice",
7901
2451f71f1ce4 Added attributes to enable access to RLC instances in Enb
jnin
parents: 7887
diff changeset
    61
                   PointerValue (),
2451f71f1ce4 Added attributes to enable access to RLC instances in Enb
jnin
parents: 7887
diff changeset
    62
                   MakePointerAccessor (&LteEnbNetDevice::m_rrc),
2451f71f1ce4 Added attributes to enable access to RLC instances in Enb
jnin
parents: 7887
diff changeset
    63
                   MakePointerChecker <LteEnbRrc> ())
10316
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
    64
    .AddAttribute ("HandoverAlgorithm",
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
    65
                   "The handover algorithm associated to this EnbNetDevice",
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
    66
                   PointerValue (),
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
    67
                   MakePointerAccessor (&LteEnbNetDevice::m_handoverAlgorithm),
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
    68
                   MakePointerChecker <HandoverAlgorithm> ())
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    69
    .AddAttribute ("LteEnbMac",
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    70
                   "The MAC associated to this EnbNetDevice",
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    71
                   PointerValue (),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    72
                   MakePointerAccessor (&LteEnbNetDevice::m_mac),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    73
                   MakePointerChecker <LteEnbMac> ())
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    74
    .AddAttribute ("FfMacScheduler",
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    75
                   "The scheduler associated to this EnbNetDevice",
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    76
                   PointerValue (),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    77
                   MakePointerAccessor (&LteEnbNetDevice::m_scheduler),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    78
                   MakePointerChecker <FfMacScheduler> ())
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    79
    .AddAttribute ("LteEnbPhy",
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    80
                   "The PHY associated to this EnbNetDevice",
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    81
                   PointerValue (),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    82
                   MakePointerAccessor (&LteEnbNetDevice::m_phy),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    83
                   MakePointerChecker <LteEnbPhy> ())
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    84
    .AddAttribute ("UlBandwidth",
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
    85
                   "Uplink Transmission Bandwidth Configuration in number of Resource Blocks",
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    86
                   UintegerValue (25),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    87
                   MakeUintegerAccessor (&LteEnbNetDevice::SetUlBandwidth, 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    88
                                         &LteEnbNetDevice::GetUlBandwidth),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    89
                   MakeUintegerChecker<uint8_t> ())
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    90
    .AddAttribute ("DlBandwidth",
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
    91
                   "Downlink Transmission Bandwidth Configuration in number of Resource Blocks",
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    92
                   UintegerValue (25),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    93
                   MakeUintegerAccessor (&LteEnbNetDevice::SetDlBandwidth, 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    94
                                         &LteEnbNetDevice::GetDlBandwidth),
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
    95
                   MakeUintegerChecker<uint8_t> ())
8007
845888b95c15 Added IMSI output to RLC outpu
jnin
parents: 7976
diff changeset
    96
    .AddAttribute ("CellId",
845888b95c15 Added IMSI output to RLC outpu
jnin
parents: 7976
diff changeset
    97
                   "Cell Identifier",
845888b95c15 Added IMSI output to RLC outpu
jnin
parents: 7976
diff changeset
    98
                   UintegerValue (0),
845888b95c15 Added IMSI output to RLC outpu
jnin
parents: 7976
diff changeset
    99
                   MakeUintegerAccessor (&LteEnbNetDevice::m_cellId),
845888b95c15 Added IMSI output to RLC outpu
jnin
parents: 7976
diff changeset
   100
                   MakeUintegerChecker<uint16_t> ())
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   101
    .AddAttribute ("DlEarfcn",
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   102
                   "Downlink E-UTRA Absolute Radio Frequency Channel Number (EARFCN) "
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   103
                   "as per 3GPP 36.101 Section 5.7.3. ",
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   104
                   UintegerValue (100),
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   105
                   MakeUintegerAccessor (&LteEnbNetDevice::m_dlEarfcn),
8693
478733ab87b7 MultiModelSpectrumChannel working with LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8390
diff changeset
   106
                   MakeUintegerChecker<uint16_t> (0, 6149))
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   107
    .AddAttribute ("UlEarfcn",
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   108
                   "Uplink E-UTRA Absolute Radio Frequency Channel Number (EARFCN) "
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   109
                   "as per 3GPP 36.101 Section 5.7.3. ",
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   110
                   UintegerValue (18100),
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   111
                   MakeUintegerAccessor (&LteEnbNetDevice::m_ulEarfcn),
8693
478733ab87b7 MultiModelSpectrumChannel working with LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8390
diff changeset
   112
                   MakeUintegerChecker<uint16_t> (18000, 24149))
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   113
  ;
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   114
  return tid;
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   115
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   116
8255
bd60df311c7b revised interaction between LenaHelper and propagation models
Nicola Baldo <nbaldo@cttc.es>
parents: 8253
diff changeset
   117
LteEnbNetDevice::LteEnbNetDevice ()
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   118
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   119
  NS_LOG_FUNCTION (this);
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   120
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   121
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
   122
LteEnbNetDevice::~LteEnbNetDevice (void)
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   123
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   124
  NS_LOG_FUNCTION (this);
6710
3cd651349cb6 lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents: 6709
diff changeset
   125
}
3cd651349cb6 lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents: 6709
diff changeset
   126
3cd651349cb6 lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents: 6709
diff changeset
   127
void
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
   128
LteEnbNetDevice::DoDispose ()
6710
3cd651349cb6 lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents: 6709
diff changeset
   129
{
3cd651349cb6 lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents: 6709
diff changeset
   130
  NS_LOG_FUNCTION (this);
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   131
7921
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   132
  m_mac->Dispose ();
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   133
  m_mac = 0;
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   134
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   135
  m_scheduler->Dispose ();
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   136
  m_scheduler = 0;
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   137
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   138
  m_rrc->Dispose ();
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   139
  m_rrc = 0;
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   140
10316
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
   141
  m_handoverAlgorithm->Dispose ();
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
   142
  m_handoverAlgorithm = 0;
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
   143
7921
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   144
  m_phy->Dispose ();
0a504caf445d added more disposal stuff
Nicola Baldo <nbaldo@cttc.es>
parents: 7907
diff changeset
   145
  m_phy = 0;
6710
3cd651349cb6 lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents: 6709
diff changeset
   146
6709
4f3100141560 fixed some valgrind errors
Giuseppe Piro <g.piro@poliba.it>
parents: 6705
diff changeset
   147
  LteNetDevice::DoDispose ();
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   148
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   149
6710
3cd651349cb6 lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents: 6709
diff changeset
   150
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   151
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   152
Ptr<LteEnbMac>
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   153
LteEnbNetDevice::GetMac (void) const
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   154
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   155
  NS_LOG_FUNCTION (this);
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   156
  return m_mac;
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   157
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   158
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   159
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
   160
Ptr<LteEnbPhy>
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
   161
LteEnbNetDevice::GetPhy (void) const
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   162
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   163
  NS_LOG_FUNCTION (this);
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   164
  return m_phy;
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   165
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   166
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   167
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   168
Ptr<LteEnbRrc>
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   169
LteEnbNetDevice::GetRrc () const
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   170
{
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   171
  return m_rrc;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   172
}
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   173
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   174
uint16_t
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   175
LteEnbNetDevice::GetCellId () const
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   176
{
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   177
  return m_cellId;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   178
}
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   179
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   180
uint8_t 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   181
LteEnbNetDevice::GetUlBandwidth () const
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   182
{
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   183
  return m_ulBandwidth;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   184
}
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   185
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   186
void 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   187
LteEnbNetDevice::SetUlBandwidth (uint8_t bw)
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   188
{ 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   189
  switch (bw)
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   190
    { 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   191
    case 6:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   192
    case 15:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   193
    case 25:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   194
    case 50:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   195
    case 75:
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   196
    case 100:
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   197
      m_ulBandwidth = bw;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   198
      break;
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   199
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   200
    default:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   201
      NS_FATAL_ERROR ("invalid bandwidth value " << (uint16_t) bw);
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   202
      break;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   203
    }
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   204
}
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   205
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   206
uint8_t 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   207
LteEnbNetDevice::GetDlBandwidth () const
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   208
{
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   209
  return m_dlBandwidth;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   210
}
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   211
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   212
void 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   213
LteEnbNetDevice::SetDlBandwidth (uint8_t bw)
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   214
{
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   215
  switch (bw)
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   216
    { 
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   217
    case 6:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   218
    case 15:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   219
    case 25:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   220
    case 50:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   221
    case 75:
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   222
    case 100:
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   223
      m_dlBandwidth = bw;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   224
      break;
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   225
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   226
    default:
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   227
      NS_FATAL_ERROR ("invalid bandwidth value " << (uint16_t) bw);
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   228
      break;
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   229
    }
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   230
}
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   231
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   232
uint16_t 
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   233
LteEnbNetDevice::GetDlEarfcn () const
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   234
{
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   235
  return m_dlEarfcn;
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   236
}
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   237
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   238
void 
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   239
LteEnbNetDevice::SetDlEarfcn (uint16_t earfcn)
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   240
{ 
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   241
  m_dlEarfcn = earfcn;
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   242
}
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   243
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   244
uint16_t 
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   245
LteEnbNetDevice::GetUlEarfcn () const
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   246
{
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   247
  return m_ulEarfcn;
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   248
}
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   249
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   250
void 
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   251
LteEnbNetDevice::SetUlEarfcn (uint16_t earfcn)
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   252
{ 
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   253
  m_ulEarfcn = earfcn;
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   254
}
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   255
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 8008
diff changeset
   256
7976
541eee38ac12 fixed LENA-78 m_dlBandwidth not initialized
Nicola Baldo <nbaldo@cttc.es>
parents: 7952
diff changeset
   257
void 
9703
681f35b212ff Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Mileti? <rivanvx@gmail.com>
parents: 9439
diff changeset
   258
LteEnbNetDevice::DoInitialize (void)
7976
541eee38ac12 fixed LENA-78 m_dlBandwidth not initialized
Nicola Baldo <nbaldo@cttc.es>
parents: 7952
diff changeset
   259
{
9439
5107601b7a75 added S1 path switch + S11 modify bearer for X2 handover
Nicola Baldo <nbaldo@cttc.es>
parents: 9406
diff changeset
   260
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   261
  UpdateConfig ();
9703
681f35b212ff Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Mileti? <rivanvx@gmail.com>
parents: 9439
diff changeset
   262
  m_phy->Initialize ();
681f35b212ff Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Mileti? <rivanvx@gmail.com>
parents: 9439
diff changeset
   263
  m_mac->Initialize ();
681f35b212ff Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Mileti? <rivanvx@gmail.com>
parents: 9439
diff changeset
   264
  m_rrc->Initialize ();
10316
dc88a59d7ff2 Handover management SAP interface and A2/RSRQ-based handover algorithm
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9703
diff changeset
   265
  m_handoverAlgorithm->Initialize ();
7976
541eee38ac12 fixed LENA-78 m_dlBandwidth not initialized
Nicola Baldo <nbaldo@cttc.es>
parents: 7952
diff changeset
   266
}
541eee38ac12 fixed LENA-78 m_dlBandwidth not initialized
Nicola Baldo <nbaldo@cttc.es>
parents: 7952
diff changeset
   267
541eee38ac12 fixed LENA-78 m_dlBandwidth not initialized
Nicola Baldo <nbaldo@cttc.es>
parents: 7952
diff changeset
   268
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   269
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   270
bool
8389
cb215987eb77 LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents: 8167
diff changeset
   271
LteEnbNetDevice::Send (Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber)
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   272
{
8389
cb215987eb77 LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents: 8167
diff changeset
   273
  NS_LOG_FUNCTION (this << packet   << dest << protocolNumber);
cb215987eb77 LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents: 8167
diff changeset
   274
  NS_ASSERT_MSG (protocolNumber == Ipv4L3Protocol::PROT_NUMBER, "unsupported protocol " << protocolNumber << ", only IPv4 is supported");
9406
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   275
  return m_rrc->SendData (packet);
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   276
}
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   277
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   278
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   279
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   280
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   281
void
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   282
LteEnbNetDevice::UpdateConfig (void)
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   283
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   284
  NS_LOG_FUNCTION (this);
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   285
9337
ae7126b266ce revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 8693
diff changeset
   286
  m_rrc->ConfigureCell (m_ulBandwidth, m_dlBandwidth, m_ulEarfcn, m_dlEarfcn, m_cellId);
9036
5e09b29d4af5 Add SRS signaling
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8693
diff changeset
   287
  m_rrc->SetCellId (m_cellId);
7952
a15a8def979c attributes for ul & dl bandwidth at the eNB
Nicola Baldo <nbaldo@cttc.es>
parents: 7944
diff changeset
   288
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   289
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   290
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   291
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   292
} // namespace ns3