A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-test-primary-cell-change.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2017 Alexander Krotov
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: Alexander Krotov <krotov@iitp.ru>
19
*
20
*/
21
22
#ifndef LTE_TEST_PRIMARY_CELL_CHANGE_H
23
#define LTE_TEST_PRIMARY_CELL_CHANGE_H
24
25
#include <ns3/test.h>
26
#include <ns3/nstime.h>
27
#include <ns3/node-container.h>
28
#include <ns3/vector.h>
29
#include <ns3/lte-ue-rrc.h>
30
#include <vector>
31
32
using namespace
ns3
;
33
39
class
LtePrimaryCellChangeTestSuite
:
public
TestSuite
40
{
41
public
:
42
LtePrimaryCellChangeTestSuite
();
43
};
44
45
46
47
53
class
LtePrimaryCellChangeTestCase
:
public
TestCase
54
{
55
public
:
69
LtePrimaryCellChangeTestCase
(std::string name,
bool
isIdealRrc, int64_t rngRun,
70
uint8_t numberOfComponentCarriers,
71
uint8_t sourceComponentCarrier,
72
uint8_t targetComponentCarrier);
73
74
virtual
~
LtePrimaryCellChangeTestCase
();
75
76
private
:
81
virtual
void
DoRun ();
82
92
void
StateTransitionCallback (std::string context, uint64_t imsi,
93
uint16_t cellId, uint16_t rnti,
94
LteUeRrc::State
oldState,
LteUeRrc::State
newState);
101
void
InitialPrimaryCellChangeEndOkCallback
(std::string context, uint64_t imsi,
102
uint16_t cellId);
110
void
ConnectionEstablishedCallback (std::string context, uint64_t imsi,
111
uint16_t cellId, uint16_t rnti);
112
113
bool
m_isIdealRrc
;
114
int64_t
m_rngRun
;
115
uint8_t
m_numberOfComponentCarriers
;
116
uint8_t
m_sourceComponentCarrier
;
117
uint8_t
m_targetComponentCarrier
;
118
120
std::map<uint64_t, LteUeRrc::State>
m_lastState
;
121
122
};
// end of class LtePrimaryCellChangeTestCase
123
124
#endif
/* LTE_TEST_PRIMARY_CELL_CHANGE_H */
LtePrimaryCellChangeTestCase
Testing the handover procedure with multiple component carriers.
Definition:
lte-test-primary-cell-change.h:54
LtePrimaryCellChangeTestCase::InitialPrimaryCellChangeEndOkCallback
void InitialPrimaryCellChangeEndOkCallback(std::string context, uint64_t imsi, uint16_t cellId)
Initial cell selection end ok callback function.
LtePrimaryCellChangeTestCase::m_rngRun
int64_t m_rngRun
rng run
Definition:
lte-test-primary-cell-change.h:114
LtePrimaryCellChangeTestCase::m_sourceComponentCarrier
uint8_t m_sourceComponentCarrier
source primary component carrier
Definition:
lte-test-primary-cell-change.h:116
LtePrimaryCellChangeTestCase::m_lastState
std::map< uint64_t, LteUeRrc::State > m_lastState
The current UE RRC state.
Definition:
lte-test-primary-cell-change.h:120
LtePrimaryCellChangeTestCase::m_targetComponentCarrier
uint8_t m_targetComponentCarrier
target primary component carrier
Definition:
lte-test-primary-cell-change.h:117
LtePrimaryCellChangeTestCase::m_isIdealRrc
bool m_isIdealRrc
whether the LTE is configured to use ideal RRC
Definition:
lte-test-primary-cell-change.h:113
LtePrimaryCellChangeTestCase::m_numberOfComponentCarriers
uint8_t m_numberOfComponentCarriers
number of component carriers
Definition:
lte-test-primary-cell-change.h:115
LtePrimaryCellChangeTestSuite
Test suite for executing the primary cell change test cases.
Definition:
lte-test-primary-cell-change.h:40
ns3::LteUeRrc::State
State
The states of the UE RRC entity.
Definition:
lte-ue-rrc.h:106
ns3::TestCase
encapsulates test code
Definition:
test.h:994
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1188
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-test-primary-cell-change.h
Generated on Tue Feb 6 2024 19:21:23 for ns-3 by
1.9.1