add transmit start for leo mock channels

This commit is contained in:
Tim Schubert 2020-06-24 22:23:09 +02:00
parent aa4e5b5ef0
commit 20ad318cb9
8 changed files with 55 additions and 94 deletions

View file

@ -44,6 +44,8 @@ namespace ns3 {
* \brief Mocked satellite-gateway, satellite-terminal channel types
*
*/
// TODO make separate clases for ut and gw links
// TODO make separate clases for ut and gw devices
class LeoMockChannel : public MockChannel
{
public:
@ -60,7 +62,6 @@ public:
virtual bool TransmitStart (Ptr<const Packet> p, uint32_t devId, Address dst, Time txTime);
protected:
enum ChannelType
{
GW,
@ -78,6 +79,10 @@ private:
bool IsChannel (Ptr<LeoMockNetDevice> dstType, Ptr<LeoMockNetDevice> srcType, bool isBroadcast);
typedef std::map<Address, Ptr<LeoMockNetDevice> > DeviceIndex;
DeviceIndex m_gndDevs;
DeviceIndex m_satDevs;
}; // class MockChannel
} // namespace ns3