add index for satellite / ground net devices

This commit is contained in:
Tim Schubert 2020-06-26 13:54:03 +02:00
parent 20ad318cb9
commit 432866d8ca
3 changed files with 79 additions and 36 deletions

View file

@ -60,14 +60,14 @@ public:
* \param device Device to attach to the channel
* \return Index of the device inside the devices list
*/
int32_t Attach (Ptr<MockNetDevice> device);
virtual int32_t Attach (Ptr<MockNetDevice> device);
/**
* \brief Detach a given netdevice from this channel
* \param device pointer to the netdevice to detach from the channel
* \return true on success, false on failure
*/
bool Detach (uint32_t deviceId);
virtual bool Detach (uint32_t deviceId);
std::size_t GetNDevices (void) const;
virtual bool TransmitStart (Ptr<const Packet> p, uint32_t devId, Address dst, Time txTime) = 0;