Set mobility model for node instead of net device

This commit is contained in:
Tim Schubert 2020-07-15 22:18:30 +02:00
parent f34ca7fafd
commit 6c154b6d60
5 changed files with 11 additions and 28 deletions

View file

@ -78,11 +78,6 @@ MockNetDevice::GetTypeId (void)
PointerValue (),
MakePointerAccessor (&MockNetDevice::m_queue),
MakePointerChecker<Queue<Packet> > ())
.AddAttribute ("MobilityModel", "The mobility model of the device",
PointerValue (),
MakePointerAccessor (&MockNetDevice::SetMobilityModel,
&MockNetDevice::GetMobilityModel),
MakePointerChecker<MobilityModel> ())
//
// Trace sources at the "top" of the net device, where packets transition
// to/from higher layers.
@ -713,19 +708,6 @@ MockNetDevice::EtherToPpp (uint16_t proto)
return 0;
}
Ptr<MobilityModel>
MockNetDevice::GetMobilityModel (void) const
{
return m_mobilityModel;
}
void
MockNetDevice::SetMobilityModel (Ptr<MobilityModel> model)
{
NS_LOG_FUNCTION (this);
m_mobilityModel = model;
}
bool
MockNetDevice::IsPointToPoint() const
{