21 #include "ns3/animation-interface-helper.h"
30 : m_txnd (0), m_fbTx (0), m_lbTx (0),
36 const Time& lbTx,
Vector txLoc, uint32_t txNodeId)
37 : m_txnd (txnd), m_fbTx (fbTx.GetSeconds ()), m_lbTx (lbTx.GetSeconds ()),
51 uint32_t NodeId = nd->GetNode ()->GetId ();
53 if (
m_rx.find (NodeId) ==
m_rx.end ())
72 uint32_t NodeId = nd->GetNode ()->GetId ();
79 uint32_t NodeId = nd->GetNode ()->GetId ();
double rxRange
Reception range.
Simulation virtual time values and global simulation resolution.
smart pointer class similar to boost::intrusive_ptr
AnimRxInfo GetRxInfo(Ptr< const NetDevice > nd)
GetRxInfo.
void RemoveRxInfo(Ptr< const NetDevice > nd)
RemoveRxInfo.
Vector m_txLoc
Transmitter's location.
bool ProcessRxEnd(Ptr< const NetDevice > nd, const Time &fbRx, Vector rxLoc)
Process RxEnd notifications.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void ProcessRxBegin(Ptr< const NetDevice > nd, const Time &fbRx)
Process RxBegin notifications.
double GetSeconds(void) const
void ProcessRxDrop(Ptr< const NetDevice > nd)
Process RxDrop notifications.
double CalculateDistance(const Vector3D &a, const Vector3D &b)
Ptr< const NetDevice > m_rxnd
Ptr to receiving NetDevice.
double m_fbRx
First bit receive time.
double firstlastbitDelta
Time delta between First bit Rx and Last bit Rx.
uint32_t m_txNodeId
Tx Node Id if NetDevice is unknown.
double m_lbRx
Last bit receive time.
bool IsPhyRxComplete()
Check if Wifi Phy Rx is Complete.
std::map< uint32_t, AnimRxInfo > m_rx
Collection of receivers.
Ptr< const NetDevice > m_txnd
Ptr to NetDevice that is transmitting.
AnimPacketInfo()
Default constructor.
void SetPhyRxComplete()
Set Wifi Phy Rx Complete.