mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
add transmit start for leo mock channels
This commit is contained in:
parent
aa4e5b5ef0
commit
20ad318cb9
8 changed files with 55 additions and 94 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue