AnimPacketInfo helper class. More...
#include <animation-interface-helper.h>
Public Member Functions | |
AnimPacketInfo () | |
Default constructor. More... | |
AnimPacketInfo (Ptr< const NetDevice > tx_nd, const Time &fbTx, const Time &lbTx, Vector txLoc, uint32_t txNodeId=0) | |
Constructor. More... | |
AnimRxInfo | GetRxInfo (Ptr< const NetDevice > nd) |
GetRxInfo. More... | |
void | ProcessRxBegin (Ptr< const NetDevice > nd, const Time &fbRx) |
Process RxBegin notifications. More... | |
void | ProcessRxDrop (Ptr< const NetDevice > nd) |
Process RxDrop notifications. More... | |
bool | ProcessRxEnd (Ptr< const NetDevice > nd, const Time &fbRx, Vector rxLoc) |
Process RxEnd notifications. More... | |
void | RemoveRxInfo (Ptr< const NetDevice > nd) |
RemoveRxInfo. More... | |
Public Attributes | |
double | firstlastbitDelta |
Time delta between First bit Rx and Last bit Rx. More... | |
double | m_fbTx |
First bit transmission time. More... | |
double | m_lbTx |
Last bit transmission time. More... | |
std::map< uint32_t, AnimRxInfo > | m_rx |
Collection of receivers. More... | |
Vector | m_txLoc |
Transmitter's location. More... | |
Ptr< const NetDevice > | m_txnd |
Ptr to NetDevice that is transmitting. More... | |
uint32_t | m_txNodeId |
Tx Node Id if NetDevice is unknown. More... | |
AnimPacketInfo helper class.
This helper class keeps of wireless packets transmitted and received including info about the last bit transmit time, first bit transmit time, location of the transmitter and NetDevice transmited on It is intended only for use by the AnimationInterface class.
Definition at line 128 of file animation-interface-helper.h.
ns3::AnimPacketInfo::AnimPacketInfo | ( | ) |
Default constructor.
Definition at line 29 of file animation-interface-helper.cc.
ns3::AnimPacketInfo::AnimPacketInfo | ( | Ptr< const NetDevice > | tx_nd, |
const Time & | fbTx, | ||
const Time & | lbTx, | ||
Vector | txLoc, | ||
uint32_t | txNodeId = 0 |
||
) |
Constructor.
tx_nd | Ptr to NetDevice that is transmitting |
fbTx | First bit transmit time |
lbTx | Last bit transmit time |
txLoc | Transmitter Location |
txNodeId | Tx Node Id if NetDevice is unknown |
Definition at line 35 of file animation-interface-helper.cc.
References m_txnd, and m_txNodeId.
AnimRxInfo ns3::AnimPacketInfo::GetRxInfo | ( | Ptr< const NetDevice > | nd | ) |
GetRxInfo.
Definition at line 70 of file animation-interface-helper.cc.
References m_rx, and NS_ASSERT.
Referenced by ns3::AnimationInterface::CsmaMacRxTrace(), ns3::AnimationInterface::CsmaPhyRxEndTrace(), ns3::AnimationInterface::LteRxTrace(), ns3::AnimationInterface::LteSpectrumPhyRxStart(), ns3::AnimationInterface::WifiMacRxTrace(), ns3::AnimationInterface::WifiPhyRxEndTrace(), and ns3::AnimationInterface::WimaxRxTrace().
Process RxBegin notifications.
Definition at line 44 of file animation-interface-helper.cc.
References m_rx.
Referenced by ns3::AnimationInterface::LteRxTrace(), ns3::AnimationInterface::LteSpectrumPhyRxStart(), and ns3::AnimationInterface::WimaxRxTrace().
Process RxDrop notifications.
Definition at line 83 of file animation-interface-helper.cc.
bool ns3::AnimPacketInfo::ProcessRxEnd | ( | Ptr< const NetDevice > | nd, |
const Time & | fbRx, | ||
Vector | rxLoc | ||
) |
Process RxEnd notifications.
nd | Ptr to NetDevice where packet was received |
fbRx | First bit receive time |
rxLoc | Location of receiver |
Definition at line 49 of file animation-interface-helper.cc.
References ns3::CalculateDistance(), firstlastbitDelta, ns3::Time::GetSeconds(), ns3::AnimRxInfo::m_fbRx, ns3::AnimRxInfo::m_lbRx, m_rx, ns3::AnimRxInfo::m_rxnd, m_txLoc, ns3::AnimRxInfo::rxRange, and ns3::AnimRxInfo::SetPhyRxComplete().
Referenced by ns3::AnimationInterface::CsmaPhyRxEndTrace(), ns3::AnimationInterface::LteRxTrace(), ns3::AnimationInterface::LteSpectrumPhyRxStart(), ns3::AnimationInterface::WifiPhyRxEndTrace(), and ns3::AnimationInterface::WimaxRxTrace().
double ns3::AnimPacketInfo::firstlastbitDelta |
Time delta between First bit Rx and Last bit Rx.
firstlastbitDelta | Time delta between First bit Rx and Last bit Rx |
Definition at line 237 of file animation-interface-helper.h.
Referenced by ns3::AnimationInterface::OutputWirelessPacket(), and ProcessRxEnd().
double ns3::AnimPacketInfo::m_fbTx |
First bit transmission time.
m_fbTx | First bit transmission time |
Definition at line 169 of file animation-interface-helper.h.
Referenced by ns3::AnimationInterface::OutputCsmaPacket(), ns3::AnimationInterface::OutputWirelessPacket(), ns3::AnimationInterface::PurgePendingCsma(), ns3::AnimationInterface::PurgePendingLte(), ns3::AnimationInterface::PurgePendingWifi(), and ns3::AnimationInterface::PurgePendingWimax().
double ns3::AnimPacketInfo::m_lbTx |
Last bit transmission time.
m_lbTx | Last bit transmission time |
Definition at line 176 of file animation-interface-helper.h.
Referenced by ns3::AnimationInterface::CsmaPhyTxEndTrace(), and ns3::AnimationInterface::OutputCsmaPacket().
std::map<uint32_t,AnimRxInfo> ns3::AnimPacketInfo::m_rx |
Collection of receivers.
m_rx | Collection of receivers |
Definition at line 191 of file animation-interface-helper.h.
Referenced by GetRxInfo(), ProcessRxBegin(), ProcessRxEnd(), and RemoveRxInfo().
Vector ns3::AnimPacketInfo::m_txLoc |
Transmitter's location.
m_txLoc | Transmitter's Location |
Definition at line 183 of file animation-interface-helper.h.
Referenced by ProcessRxEnd().
Ptr to NetDevice that is transmitting.
m_txnd | NetDevice that is transmitting |
Definition at line 155 of file animation-interface-helper.h.
Referenced by ns3::AnimationInterface::AddPendingCsmaPacket(), ns3::AnimationInterface::AddPendingLtePacket(), ns3::AnimationInterface::AddPendingWimaxPacket(), AnimPacketInfo(), ns3::AnimationInterface::OutputCsmaPacket(), and ns3::AnimationInterface::OutputWirelessPacket().
uint32_t ns3::AnimPacketInfo::m_txNodeId |
Tx Node Id if NetDevice is unknown.
Definition at line 162 of file animation-interface-helper.h.
Referenced by AnimPacketInfo(), and ns3::AnimationInterface::OutputWirelessPacket().