A Discrete-Event Network Simulator
qkdnetsim_etsi_014 @ (+)
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
e
i
l
o
r
s
t
v
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Examples
▼
ns-3
►
ns-3 Documentation
All ns3::TypeId's
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
Bug List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
lte-test-secondary-cell-selection.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_SECONDARY_CELL_SELECTION_H
23
#define LTE_TEST_SECONDARY_CELL_SELECTION_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
44
class
LteSecondaryCellSelectionTestSuite
:
public
TestSuite
45
{
46
public
:
47
LteSecondaryCellSelectionTestSuite
();
48
};
49
50
57
class
LteSecondaryCellSelectionTestCase
:
public
TestCase
58
{
59
public
:
68
LteSecondaryCellSelectionTestCase
(std::string name,
bool
isIdealRrc, uint64_t rngRun, uint8_t numberOfComponentCarriers);
69
70
virtual
~
LteSecondaryCellSelectionTestCase
();
71
72
private
:
77
virtual
void
DoRun ();
78
88
void
StateTransitionCallback (std::string context, uint64_t imsi,
89
uint16_t cellId, uint16_t rnti,
90
LteUeRrc::State
oldState,
LteUeRrc::State
newState);
97
void
InitialSecondaryCellSelectionEndOkCallback
(std::string context, uint64_t imsi,
98
uint16_t cellId);
106
void
ConnectionEstablishedCallback (std::string context, uint64_t imsi,
107
uint16_t cellId, uint16_t rnti);
108
109
bool
m_isIdealRrc
;
110
uint64_t
m_rngRun
;
111
uint8_t
m_numberOfComponentCarriers
;
112
114
std::map<uint64_t, LteUeRrc::State>
m_lastState
;
115
116
};
// end of class LteSecondaryCellSelectionTestCase
117
118
#endif
/* LTE_TEST_SECONDARY_CELL_SELECTION_H */
LteSecondaryCellSelectionTestCase
Testing the initial cell selection procedure by UE at IDLE state in the beginning of simulation with ...
Definition:
lte-test-secondary-cell-selection.h:58
LteSecondaryCellSelectionTestCase::m_isIdealRrc
bool m_isIdealRrc
whether the LTE is configured to use ideal RRC
Definition:
lte-test-secondary-cell-selection.h:109
LteSecondaryCellSelectionTestCase::m_rngRun
uint64_t m_rngRun
rng run
Definition:
lte-test-secondary-cell-selection.h:110
LteSecondaryCellSelectionTestCase::m_numberOfComponentCarriers
uint8_t m_numberOfComponentCarriers
number of component carriers
Definition:
lte-test-secondary-cell-selection.h:111
LteSecondaryCellSelectionTestCase::InitialSecondaryCellSelectionEndOkCallback
void InitialSecondaryCellSelectionEndOkCallback(std::string context, uint64_t imsi, uint16_t cellId)
Initial cell selection end ok callback function.
LteSecondaryCellSelectionTestCase::m_lastState
std::map< uint64_t, LteUeRrc::State > m_lastState
The current UE RRC state.
Definition:
lte-test-secondary-cell-selection.h:114
LteSecondaryCellSelectionTestSuite
Test suite for executing the secondary cell selection test cases.
Definition:
lte-test-secondary-cell-selection.h:45
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-secondary-cell-selection.h
Generated on Tue Feb 6 2024 19:21:23 for ns-3 by
1.9.1