Added IMSI field to LteUeNetDevice as unique UE identifier.

Work in progress to use it in Rlc and Mac stats output.
This commit is contained in:
jnin
2011-04-29 17:31:25 +02:00
parent 8dbfcbfddd
commit 7f1ef0a58b
3 changed files with 14 additions and 3 deletions

View File

@@ -24,7 +24,7 @@
#include "ns3/mobility-module.h"
#include "ns3/lte-module.h"
#include "ns3/config-store.h"
//#include "ns3/gtk-config-store.h"
#include "ns3/gtk-config-store.h"
@@ -87,8 +87,8 @@ int main (int argc, char *argv[])
Simulator::Run ();
// Uncomment to show available paths
/*GtkConfigStore config;
config.ConfigureAttributes ();*/
GtkConfigStore config;
config.ConfigureAttributes ();
Simulator::Destroy ();

View File

@@ -47,6 +47,8 @@ namespace ns3 {
NS_OBJECT_ENSURE_REGISTERED ( LteUeNetDevice);
uint64_t LteUeNetDevice::m_imsiCounter = 0;
TypeId LteUeNetDevice::GetTypeId (void)
{
@@ -59,6 +61,11 @@ TypeId LteUeNetDevice::GetTypeId (void)
PointerValue (),
MakePointerAccessor (&LteUeNetDevice::m_rrc),
MakePointerChecker <LteUeRrc> ())
.AddAttribute("Imsi",
"International Mobile Subscriber Identity assigned to this UE",
UintegerValue (1),
MakeUintegerAccessor (&LteUeNetDevice::m_imsi),
MakeUintegerChecker<uint64_t> ())
;
return tid;
@@ -69,6 +76,7 @@ LteUeNetDevice::LteUeNetDevice (void)
{
NS_LOG_FUNCTION (this);
NS_FATAL_ERROR ("This constructor should not be called");
m_imsi = ++m_imsiCounter;
}

View File

@@ -103,6 +103,9 @@ private:
Ptr<LteUePhy> m_phy;
Ptr<LteUeRrc> m_rrc;
uint64_t m_imsi;
static uint64_t m_imsiCounter;
};