Moved DoDispose method of handover and ANR classes to protected scope

This commit is contained in:
Budiarto Herman
2013-10-17 17:33:30 +03:00
parent efc6f7e6c8
commit 6d96614e35
10 changed files with 49 additions and 46 deletions

View File

@@ -60,16 +60,8 @@ A2A4RsrqHandoverAlgorithm::~A2A4RsrqHandoverAlgorithm ()
}
void
A2A4RsrqHandoverAlgorithm::DoDispose ()
{
NS_LOG_FUNCTION (this);
delete m_handoverManagementSapProvider;
}
TypeId
A2A4RsrqHandoverAlgorithm::GetTypeId (void)
A2A4RsrqHandoverAlgorithm::GetTypeId ()
{
static TypeId tid = TypeId ("ns3::A2A4RsrqHandoverAlgorithm")
.SetParent<LteHandoverAlgorithm> ()
@@ -135,6 +127,14 @@ A2A4RsrqHandoverAlgorithm::DoInitialize ()
}
void
A2A4RsrqHandoverAlgorithm::DoDispose ()
{
NS_LOG_FUNCTION (this);
delete m_handoverManagementSapProvider;
}
void
A2A4RsrqHandoverAlgorithm::DoReportUeMeas (uint16_t rnti,
LteRrcSap::MeasResults measResults)

View File

@@ -86,8 +86,7 @@ public:
virtual ~A2A4RsrqHandoverAlgorithm ();
// inherited from Object
virtual void DoDispose (void);
static TypeId GetTypeId (void);
static TypeId GetTypeId ();
// inherited from LteHandoverAlgorithm
virtual void SetLteHandoverManagementSapUser (LteHandoverManagementSapUser* s);
@@ -99,6 +98,7 @@ public:
protected:
// inherited from Object
virtual void DoInitialize ();
virtual void DoDispose ();
// inherited from LteHandoverAlgorithm as a Handover Management SAP implementation
void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults);

View File

@@ -46,16 +46,8 @@ A3RsrpHandoverAlgorithm::~A3RsrpHandoverAlgorithm ()
}
void
A3RsrpHandoverAlgorithm::DoDispose ()
{
NS_LOG_FUNCTION (this);
delete m_handoverManagementSapProvider;
}
TypeId
A3RsrpHandoverAlgorithm::GetTypeId (void)
A3RsrpHandoverAlgorithm::GetTypeId ()
{
static TypeId tid = TypeId ("ns3::A3RsrpHandoverAlgorithm")
.SetParent<LteHandoverAlgorithm> ()
@@ -118,6 +110,14 @@ A3RsrpHandoverAlgorithm::DoInitialize ()
}
void
A3RsrpHandoverAlgorithm::DoDispose ()
{
NS_LOG_FUNCTION (this);
delete m_handoverManagementSapProvider;
}
void
A3RsrpHandoverAlgorithm::DoReportUeMeas (uint16_t rnti,
LteRrcSap::MeasResults measResults)

View File

@@ -73,8 +73,7 @@ public:
virtual ~A3RsrpHandoverAlgorithm ();
// inherited from Object
virtual void DoDispose (void);
static TypeId GetTypeId (void);
static TypeId GetTypeId ();
// inherited from LteHandoverAlgorithm
virtual void SetLteHandoverManagementSapUser (LteHandoverManagementSapUser* s);
@@ -86,6 +85,7 @@ public:
protected:
// inherited from Object
virtual void DoInitialize ();
virtual void DoDispose ();
// inherited from LteHandoverAlgorithm as a Handover Management SAP implementation
void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults);

View File

@@ -53,17 +53,8 @@ LteAnr::~LteAnr ()
}
void
LteAnr::DoDispose ()
{
NS_LOG_FUNCTION (this);
delete m_anrSapProvider;
m_neighbourRelationTable.clear ();
}
TypeId
LteAnr::GetTypeId (void)
LteAnr::GetTypeId ()
{
static TypeId tid = TypeId ("ns3::LteAnr")
.SetParent<Object> ()
@@ -148,6 +139,15 @@ LteAnr::DoInitialize ()
}
void
LteAnr::DoDispose ()
{
NS_LOG_FUNCTION (this);
delete m_anrSapProvider;
m_neighbourRelationTable.clear ();
}
void
LteAnr::DoReportUeMeas (LteRrcSap::MeasResults measResults)
{

View File

@@ -89,8 +89,7 @@ public:
virtual ~LteAnr ();
// inherited from Object
virtual void DoDispose (void);
static TypeId GetTypeId (void);
static TypeId GetTypeId ();
/**
* \brief Provide an advance information about a related neighbouring cell
@@ -139,6 +138,7 @@ public:
protected:
// inherited from Object
virtual void DoInitialize ();
virtual void DoDispose ();
private:

View File

@@ -39,14 +39,8 @@ LteHandoverAlgorithm::~LteHandoverAlgorithm ()
}
void
LteHandoverAlgorithm::DoDispose ()
{
}
TypeId
LteHandoverAlgorithm::GetTypeId (void)
LteHandoverAlgorithm::GetTypeId ()
{
static TypeId tid = TypeId ("ns3::LteHandoverAlgorithm")
.SetParent<Object> ()
@@ -55,4 +49,11 @@ LteHandoverAlgorithm::GetTypeId (void)
}
void
LteHandoverAlgorithm::DoDispose ()
{
}
} // end of namespace ns3

View File

@@ -70,8 +70,7 @@ public:
virtual ~LteHandoverAlgorithm ();
// inherited from Object
virtual void DoDispose (void);
static TypeId GetTypeId (void);
static TypeId GetTypeId ();
/**
* \brief Set the "user" part of the Handover Management SAP interface that
@@ -90,6 +89,9 @@ public:
protected:
// inherited from Object
virtual void DoDispose ();
// HANDOVER MANAGEMENT SAP PROVIDER IMPLEMENTATION
/**

View File

@@ -52,7 +52,7 @@ NoOpHandoverAlgorithm::DoDispose ()
TypeId
NoOpHandoverAlgorithm::GetTypeId (void)
NoOpHandoverAlgorithm::GetTypeId ()
{
static TypeId tid = TypeId ("ns3::NoOpHandoverAlgorithm")
.SetParent<LteHandoverAlgorithm> ()

View File

@@ -49,8 +49,7 @@ public:
virtual ~NoOpHandoverAlgorithm ();
// inherited from Object
virtual void DoDispose (void);
static TypeId GetTypeId (void);
static TypeId GetTypeId ();
// inherited from LteHandoverAlgorithm
virtual void SetLteHandoverManagementSapUser (LteHandoverManagementSapUser* s);
@@ -62,6 +61,7 @@ public:
protected:
// inherited from Object
virtual void DoInitialize ();
virtual void DoDispose ();
// inherited from LteHandoverAlgorithm as a Handover Management SAP implementation
void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults);