mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Set mobility model for node instead of net device
This commit is contained in:
parent
f34ca7fafd
commit
6c154b6d60
5 changed files with 11 additions and 28 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue