port to new Channel API.
This commit is contained in:
1 parent
71721cff29
commit
74f35f06e3
2 files changed
+11
-10
No files matched your search
@@ -91,7 +91,7 @@ WifiChannel::GetNDevices (void) const
|
||||
return m_deviceList.size ();
|
||||
}
|
||||
Ptr<NetDevice>
|
||||
WifiChannel::GetDevice (uint32_t i) const
|
||||
WifiChannel::DoGetDevice (uint32_t i) const
|
||||
{
|
||||
return m_deviceList[i].first;
|
||||
}
|
||||
|
||||
@@ -64,15 +64,6 @@ public:
|
||||
* Overriden from the NetDevice base class.
|
||||
*/
|
||||
virtual uint32_t GetNDevices (void) const;
|
||||
/**
|
||||
* \param i index of the requested network interface.
|
||||
* \returns the requested network interfaces connected to
|
||||
* this channel.
|
||||
*
|
||||
* Overriden from the NetDevice base class.
|
||||
* Indexes start at 0 and end at n-1.
|
||||
*/
|
||||
virtual Ptr<NetDevice> GetDevice (uint32_t i) const ;
|
||||
|
||||
/**
|
||||
* \param loss the new propagation loss model.
|
||||
@@ -110,6 +101,16 @@ private:
|
||||
typedef std::vector<std::pair<Ptr<NetDevice>, ReceiveCallback> > DeviceList;
|
||||
void Receive (uint32_t i, const Packet &packet, double rxPowerDbm,
|
||||
WifiMode txMode, WifiPreamble preamble) const;
|
||||
/**
|
||||
* \param i index of the requested network interface.
|
||||
* \returns the requested network interfaces connected to
|
||||
* this channel.
|
||||
*
|
||||
* Overriden from the NetDevice base class.
|
||||
* Indexes start at 0 and end at n-1.
|
||||
*/
|
||||
virtual Ptr<NetDevice> DoGetDevice (uint32_t i) const ;
|
||||
|
||||
|
||||
DeviceList m_deviceList;
|
||||
Ptr<PropagationLossModel> m_loss;
|
||||
|
||||
Reference in new issue
Block a user