mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Use speed of light in air
This commit is contained in:
parent
b0bd80c8fe
commit
37631d0758
6 changed files with 15 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <ns3/propagation-loss-model.h>
|
||||
|
||||
#define LEO_PROP_EARTH_RAD 6.37101e6
|
||||
#define LEO_SPEED_OF_LIGHT_IN_AIR 299702458
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
|
|
|
@ -191,4 +191,10 @@ MockChannel::Deliver (
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
MockChannel::SetPropagationDelay (Ptr<PropagationDelayModel> delay)
|
||||
{
|
||||
m_propagationDelay = delay;
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
|
|
|
@ -72,9 +72,12 @@ public:
|
|||
std::size_t GetNDevices (void) const;
|
||||
virtual bool TransmitStart (Ptr<const Packet> p, uint32_t devId, Address dst, Time txTime) = 0;
|
||||
|
||||
Ptr<PropagationLossModel> GetPropagationLoss () const;
|
||||
Ptr<PropagationLossModel> GetPropagationLoss (void) const;
|
||||
void SetPropagationLoss (Ptr<PropagationLossModel> model);
|
||||
|
||||
Ptr<PropagationDelayModel> GetPropagationDelay (void) const;
|
||||
void SetPropagationDelay (Ptr<PropagationDelayModel> delay);
|
||||
|
||||
protected:
|
||||
TracedCallback<Ptr<const Packet>, // Packet being transmitted
|
||||
Ptr<NetDevice>, // Transmitting NetDevice
|
||||
|
@ -89,7 +92,6 @@ protected:
|
|||
*/
|
||||
Time GetPropagationDelay (Ptr<MobilityModel> first, Ptr<MobilityModel> second, Time txTime) const;
|
||||
|
||||
Ptr<PropagationDelayModel> GetPropagationDelay () const;
|
||||
Ptr<MockNetDevice> GetDevice (Address &addr) const;
|
||||
|
||||
bool Deliver ( Ptr<const Packet> p, Ptr<MockNetDevice> src, Ptr<MockNetDevice> dst, Time txTime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue