RLC reference is not needed in the LTE simple device

This commit is contained in:
Manuel Requena
2012-02-08 16:23:37 +01:00
parent 59437db826
commit c18d6fc3ad
2 changed files with 3 additions and 17 deletions

View File

@@ -37,11 +37,7 @@ TypeId LteSimpleNetDevice::GetTypeId (void)
tid =
TypeId ("ns3::LteSimpleNetDevice")
.SetParent<SimpleNetDevice> ()
.AddAttribute ("LteRlc",
"The RLC instance",
PointerValue (),
MakePointerAccessor (&LteSimpleNetDevice::m_rlc),
MakePointerChecker <LteRlc> ())
.AddConstructor<LteSimpleNetDevice> ()
;
return tid;
@@ -51,14 +47,12 @@ TypeId LteSimpleNetDevice::GetTypeId (void)
LteSimpleNetDevice::LteSimpleNetDevice (void)
{
NS_LOG_FUNCTION (this);
NS_FATAL_ERROR ("This constructor should not be called");
}
LteSimpleNetDevice::LteSimpleNetDevice (Ptr<Node> node, Ptr<LteRlc> rlc)
LteSimpleNetDevice::LteSimpleNetDevice (Ptr<Node> node)
{
NS_LOG_FUNCTION (this);
m_rlc = rlc;
SetNode (node);
}
@@ -71,8 +65,6 @@ void
LteSimpleNetDevice::DoDispose (void)
{
NS_LOG_FUNCTION (this);
m_rlc->Dispose ();
m_rlc = 0;
SimpleNetDevice::DoDispose ();
}
@@ -81,7 +73,6 @@ void
LteSimpleNetDevice::DoStart (void)
{
NS_LOG_FUNCTION (this);
m_rlc->Start ();
}
bool

View File

@@ -42,7 +42,7 @@ public:
static TypeId GetTypeId (void);
LteSimpleNetDevice (void);
LteSimpleNetDevice (Ptr<Node> node, Ptr<LteRlc> rlc);
LteSimpleNetDevice (Ptr<Node> node);
virtual ~LteSimpleNetDevice (void);
virtual void DoDispose ();
@@ -56,11 +56,6 @@ protected:
// inherited from Object
virtual void DoStart (void);
private:
Ptr<LteRlc> m_rlc;
};
} // namespace ns3