src/lte/test/lte-test-cell-selection.h
author Robert Ammon <ammo6818@vandals.uidaho.edu>
Fri, 02 Jun 2017 14:45:29 +0200
changeset 12904 e949b994faad
parent 12750 6c9232bd3ba4
child 13423 b34ee29ed6ab
permissions -rw-r--r--
lte: Additional doxygen corrections (patch set 5)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     1
/* -*-  Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     2
/*
10353
938b6e44ab95 Updated GPL header of GSoC files
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10302
diff changeset
     3
 * Copyright (c) 2013 Budiarto Herman
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     4
 *
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     7
 * published by the Free Software Foundation;
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     8
 *
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    12
 * GNU General Public License for more details.
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    13
 *
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    17
 *
10353
938b6e44ab95 Updated GPL header of GSoC files
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10302
diff changeset
    18
 * Author: Budiarto Herman <budiarto.herman@magister.fi>
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    19
 *
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    20
 */
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    21
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    22
#ifndef LTE_TEST_CELL_SELECTION_H
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    23
#define LTE_TEST_CELL_SELECTION_H
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    24
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    25
#include <ns3/test.h>
10291
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
    26
#include <ns3/nstime.h>
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    27
#include <ns3/node-container.h>
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    28
#include <ns3/vector.h>
10291
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
    29
#include <ns3/lte-ue-rrc.h>
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    30
#include <vector>
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    31
10553
8c347165bb56 Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents: 10425
diff changeset
    32
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    33
namespace ns3 {
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    34
10553
8c347165bb56 Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents: 10425
diff changeset
    35
class LteUeNetDevice;
8c347165bb56 Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents: 10425
diff changeset
    36
8c347165bb56 Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents: 10425
diff changeset
    37
}
8c347165bb56 Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents: 10425
diff changeset
    38
8c347165bb56 Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents: 10425
diff changeset
    39
using namespace ns3;
8c347165bb56 Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents: 10425
diff changeset
    40
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    41
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    42
/**
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    43
 * \brief Test suite for executing the cell selection test cases in without-EPC
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    44
 *        and with-EPC scenarios.
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    45
 *
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    46
 * \sa ns3::LteCellSelectionTestCase
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    47
 */
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    48
class LteCellSelectionTestSuite : public TestSuite
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    49
{
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    50
public:
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    51
  LteCellSelectionTestSuite ();
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    52
};
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    53
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    54
10291
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
    55
10360
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    56
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    57
/**
12750
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    58
 * \ingroup lte
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    59
 *
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    60
 * \brief Testing the initial cell selection procedure by UE at IDLE state in
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    61
 *        the beginning of simulation.
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    62
 */
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    63
class LteCellSelectionTestCase : public TestCase
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    64
{
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    65
public:
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    66
  /**
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    67
   * \brief A set of input parameters for setting up a UE in the simulation.
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    68
   */
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    69
  struct UeSetup_t
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    70
  {
10360
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    71
    Vector position; ///< The position, relative to the inter site distance, where the UE will be spawned in the simulation.
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    72
    bool isCsgMember; ///< Whether UE is allowed access to CSG cell.
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    73
    Time checkPoint; ///< The time in simulation when the UE is verified by the test script.
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    74
    uint16_t expectedCellId1; ///< The cell ID that the UE is expected to attach to (0 means that the UE should not attach to any cell).
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    75
    uint16_t expectedCellId2; ///< An alternative cell ID that the UE is expected to attach to (0 means that this no alternative cell is expected).
12750
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    76
    /**
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    77
     * \brief UE test setup funtion.
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    78
     * \param relPosX relative position to the inter site distance in X
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    79
     * \param relPosY relative position to the inter site distance in Y
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    80
     * \param isCsgMember if true, simulation is allowed access to CSG cell
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    81
     * \param checkPoint the tiem int he simulation when the UE is verified
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    82
     * \param expectedCellId1 ///< The cell ID that the UE is expected to attach to (0 means that the UE should not attach to any cell).
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    83
     * \param expectedCellId2 ///< An alternative cell ID that the UE is expected to attach to (0 means that this no alternative cell is expected).
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
    84
     */
10360
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    85
    UeSetup_t (double relPosX, double relPosY, bool isCsgMember, Time checkPoint,
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    86
               uint16_t expectedCellId1, uint16_t expectedCellId2);
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    87
  };
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    88
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    89
  /**
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    90
   * \brief Creates an instance of the initial cell selection test case.
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    91
   * \param name name of this test
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    92
   * \param isEpcMode set to true for setting up simulation with EPC enabled
10360
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    93
   * \param isIdealRrc if true, simulation uses Ideal RRC protocol, otherwise
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
    94
   *                   simulation uses Real RRC protocol
10361
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
    95
   * \param interSiteDistance the distance between eNodeB in meters
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
    96
   * \param ueSetupList a list of UE configuration to be installed in the
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
    97
   *                    simulation
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
    98
   * \param rngRun the number of run to be used by the random number generator
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
    99
   */
10360
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
   100
  LteCellSelectionTestCase (std::string name, bool isEpcMode, bool isIdealRrc,
10404
eb6495608840 fixed Bug 1794 - clang errors on LTE tests
Nicola Baldo <nbaldo@cttc.es>
parents: 10361
diff changeset
   101
                            double interSiteDistance,
10360
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
   102
                            std::vector<UeSetup_t> ueSetupList,
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
   103
                            int64_t rngRun);
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   104
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   105
  virtual ~LteCellSelectionTestCase ();
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   106
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   107
private:
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   108
  /**
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   109
   * \brief Setup the simulation according to the configuration set by the
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   110
   *        class constructor, run it, and verify the result.
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   111
   */
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   112
  virtual void DoRun ();
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   113
10361
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
   114
  /**
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
   115
   * \brief Verifies if the given UE is attached to either of the given two
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
   116
   *        cells and in a CONNECTED_NORMALLY state.
12904
e949b994faad lte: Additional doxygen corrections (patch set 5)
Robert Ammon <ammo6818@vandals.uidaho.edu>
parents: 12750
diff changeset
   117
   * \param ueDev the UE device
e949b994faad lte: Additional doxygen corrections (patch set 5)
Robert Ammon <ammo6818@vandals.uidaho.edu>
parents: 12750
diff changeset
   118
   * \param expectedCellId1 the first cell ID
e949b994faad lte: Additional doxygen corrections (patch set 5)
Robert Ammon <ammo6818@vandals.uidaho.edu>
parents: 12750
diff changeset
   119
   * \param expectedCellId2 the second cell ID
10361
858da9c4d11b Simplified lte-cell-selection test suite
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10360
diff changeset
   120
   */
10360
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
   121
  void CheckPoint (Ptr<LteUeNetDevice> ueDev, uint16_t expectedCellId1,
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
   122
                   uint16_t expectedCellId2);
b3d6acea639c Revamped lte-cell-selection test suite with better success probability
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10357
diff changeset
   123
12750
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   124
  /**
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   125
   * \brief State transition callback function
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   126
   * \param context the context string
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   127
   * \param imsi the IMSI
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   128
   * \param cellId the cell ID
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   129
   * \param rnti the RNTI
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   130
   * \param oldState the old state
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   131
   * \param newState the new state
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   132
   */
10291
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   133
  void StateTransitionCallback (std::string context, uint64_t imsi,
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   134
                                uint16_t cellId, uint16_t rnti,
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   135
                                LteUeRrc::State oldState, LteUeRrc::State newState);
12750
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   136
  /**
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   137
   * \brief Initial cell selection end ok callback function
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   138
   * \param context the context string
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   139
   * \param imsi the IMSI
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   140
   * \param cellId the cell ID
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   141
   */
10291
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   142
  void InitialCellSelectionEndOkCallback (std::string context, uint64_t imsi,
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   143
                                          uint16_t cellId);
12750
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   144
  /**
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   145
   * \brief Initial cell selection end error callback function
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   146
   * \param context the context string
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   147
   * \param imsi the IMSI
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   148
   * \param cellId the cell ID
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   149
   */
10291
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   150
  void InitialCellSelectionEndErrorCallback (std::string context, uint64_t imsi,
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   151
                                             uint16_t cellId);
12750
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   152
  /**
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   153
   * \brief Connection established callback function
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   154
   * \param context the context string
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   155
   * \param imsi the IMSI
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   156
   * \param cellId the cell ID
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   157
   * \param rnti the RNTI
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   158
   */
10357
74fc0fdda26b Revised lte-cell-selection test vector
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10353
diff changeset
   159
  void ConnectionEstablishedCallback (std::string context, uint64_t imsi,
74fc0fdda26b Revised lte-cell-selection test vector
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10353
diff changeset
   160
                                      uint16_t cellId, uint16_t rnti);
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   161
12750
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   162
  bool m_isEpcMode; ///< whether the LTE configuration in test is using EPC
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   163
  bool m_isIdealRrc; ///< whether the LTE is configured to use ideal RRC
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   164
  double m_interSiteDistance; ///< inter site distance
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   165
  std::vector<UeSetup_t> m_ueSetupList; ///< UE setup list
6c9232bd3ba4 lte: doxygen updates of tests (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents: 10553
diff changeset
   166
  int64_t m_rngRun; ///< rng run
10291
e7b10263462c Several fixed to LTE initial cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10288
diff changeset
   167
10296
13ff285523bf Generic (not eNodeB-specific) helper functions Attach and Connect
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10295
diff changeset
   168
  /// The current UE RRC state.
10357
74fc0fdda26b Revised lte-cell-selection test vector
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10353
diff changeset
   169
  std::vector<LteUeRrc::State> m_lastState;
10296
13ff285523bf Generic (not eNodeB-specific) helper functions Attach and Connect
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10295
diff changeset
   170
10288
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   171
}; // end of class LteCellSelectionTestCase
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   172
ea6c9b15169c Attempt to initial synchronization, cell search, MIB and SIB1
Budiarto Herman <budiarto.herman@magister.fi>
parents:
diff changeset
   173
#endif /* LTE_TEST_CELL_SELECTION_H */