Interface to network animator. More...
#include <animation-interface.h>
Public Types | |
typedef void(* | AnimWriteCallback )(const char *str) |
typedef for WriteCallBack used for listening to AnimationInterface write messages |
Public Member Functions | |
AnimationInterface (const std::string filename, uint64_t maxPktsPerFile=MAX_PKTS_PER_TRACE_FILE, bool usingXML=true) | |
Constructor. | |
~AnimationInterface () | |
Destructor for the animator interface. | |
AnimationInterface & | AddSourceDestination (uint32_t fromNodeId, std::string destinationIpv4Address) |
Helper function to print the routing path from a source node to destination IP. | |
int64_t | AssignStreams (int64_t stream) |
AnimationInterface & | EnableIpv4RouteTracking (std::string fileName, Time startTime, Time stopTime, Time pollInterval=Seconds(5)) |
Enable tracking of the Ipv4 routing table for all Nodes. | |
AnimationInterface & | EnableIpv4RouteTracking (std::string fileName, Time startTime, Time stopTime, NodeContainer nc, Time pollInterval=Seconds(5)) |
Enable tracking of the Ipv4 routing table for a set of Nodes. | |
void | EnablePacketMetadata (bool enable) |
Enable Packet metadata. | |
uint64_t | GetTracePktCount () |
Get trace file packet count (This used only for testing) | |
bool | IsStarted (void) |
Is AnimationInterface started. | |
void | ResetAnimWriteCallback () |
Reset the write callback function. | |
void | SetAnimWriteCallback (AnimWriteCallback cb) |
Set a callback function to listen to AnimationInterface write events. | |
void | SetMobilityPollInterval (Time t) |
Set mobility poll interval:WARNING: setting a low interval can cause slowness. | |
void | SetRandomPosition (bool setRandPos) |
Set random position if a Mobility Model does not exists for the node. | |
void | SetStartTime (Time t) |
Specify the time at which capture should start. | |
void | SetStopTime (Time t) |
Specify the time at which capture should stop. | |
void | ShowNode (uint32_t nodeId, bool show=true) |
Helper function to show/hide a node. | |
void | ShowNode (Ptr< Node > n, bool show=true) |
Helper function to show/hide a node. | |
void | UpdateLinkDescription (uint32_t fromNode, uint32_t toNode, std::string linkDescription) |
Helper function to update the description for a link. | |
void | UpdateLinkDescription (Ptr< Node > fromNode, Ptr< Node > toNode, std::string linkDescription) |
Helper function to update the description for a link. | |
void | UpdateNodeColor (Ptr< Node > n, uint8_t r, uint8_t g, uint8_t b) |
Helper function to update the node color. | |
void | UpdateNodeColor (uint32_t nodeId, uint8_t r, uint8_t g, uint8_t b) |
Helper function to update the node color. | |
void | UpdateNodeDescription (Ptr< Node > n, std::string descr) |
Helper function to update the description for a given node. | |
void | UpdateNodeDescription (uint32_t nodeId, std::string descr) |
Helper function to update the description for a given node. |
Static Public Member Functions | |
static bool | IsInitialized (void) |
Check if AnimationInterface is initialized. | |
static void | SetConstantPosition (Ptr< Node > n, double x, double y, double z=0) |
Helper function to set Constant Position for a given node. | |
static void | SetLinkDescription (uint32_t fromNode, uint32_t toNode, std::string linkDescription, std::string fromNodeDescription="", std::string toNodeDescription="") |
Helper function to set the description for a link. | |
static void | SetLinkDescription (Ptr< Node > fromNode, Ptr< Node > toNode, std::string linkDescription, std::string fromNodeDescription="", std::string toNodeDescription="") |
Helper function to set the description for a link. | |
static void | SetNodeColor (Ptr< Node > n, uint8_t r, uint8_t g, uint8_t b) |
Helper function to set the node color. | |
static void | SetNodeColor (NodeContainer nc, uint8_t r, uint8_t g, uint8_t b) |
Helper function to set the color of nodes in a container. | |
static void | SetNodeDescription (Ptr< Node > n, std::string descr) |
Helper function to set a brief description for a given node. | |
static void | SetNodeDescription (NodeContainer nc, std::string descr) |
Helper function to set a brief description for nodes in a Node Container. |
Private Types | |
typedef std::vector < Ipv4RoutePathElement > | Ipv4RoutePathElements |
Private Member Functions | |
void | AddPendingCsmaPacket (uint64_t AnimUid, AnimPacketInfo &) |
void | AddPendingLtePacket (uint64_t AnimUid, AnimPacketInfo &) |
void | AddPendingUanPacket (uint64_t AnimUid, AnimPacketInfo &) |
void | AddPendingWifiPacket (uint64_t AnimUid, AnimPacketInfo &) |
void | AddPendingWimaxPacket (uint64_t AnimUid, AnimPacketInfo &) |
void | AddToIpv4AddressNodeIdTable (std::string, uint32_t) |
void | ConnectCallbacks () |
void | ConnectLte () |
void | ConnectLteEnb (Ptr< Node > n, Ptr< LteEnbNetDevice > nd, uint32_t devIndex) |
void | ConnectLteUe (Ptr< Node > n, Ptr< LteUeNetDevice > nd, uint32_t devIndex) |
void | CsmaMacRxTrace (std::string context, Ptr< const Packet > p) |
bool | CsmaPacketIsPending (uint64_t AnimUid) |
void | CsmaPhyRxEndTrace (std::string context, Ptr< const Packet > p) |
void | CsmaPhyTxBeginTrace (std::string context, Ptr< const Packet > p) |
void | CsmaPhyTxEndTrace (std::string context, Ptr< const Packet > p) |
void | DevTxTrace (std::string context, Ptr< const Packet > p, Ptr< NetDevice > tx, Ptr< NetDevice > rx, Time txTime, Time rxTime) |
uint64_t | GetAnimUidFromPacket (Ptr< const Packet >) |
std::vector< std::string > | GetElementsFromContext (std::string context) |
std::string | GetIpv4Address (Ptr< NetDevice > nd) |
std::string | GetIpv4RoutingTable (Ptr< Node > n) |
std::string | GetMacAddress (Ptr< NetDevice > nd) |
std::string | GetNetAnimVersion () |
Ptr< NetDevice > | GetNetDeviceFromContext (std::string context) |
std::string | GetPacketMetadata (Ptr< const Packet > p) |
Vector | GetPosition (Ptr< Node > n) |
std::string | GetPreamble (void) |
std::string | GetXMLClose (std::string name) |
std::string | GetXMLOpen_anim (uint32_t lp) |
std::string | GetXMLOpen_packet (uint32_t fromLp, uint32_t fromId, double fbTx, double lbTx, std::string auxInfo="") |
std::string | GetXMLOpen_topology (double minX, double minY, double maxX, double maxY) |
std::string | GetXMLOpen_wpacket (uint32_t fromLp, uint32_t fromId, double fbTx, double lbTx, double range) |
std::string | GetXMLOpenClose_link (uint32_t fromLp, uint32_t fromId, uint32_t toLp, uint32_t toId) |
std::string | GetXMLOpenClose_linkupdate (uint32_t fromId, uint32_t toId, std::string) |
std::string | GetXMLOpenClose_meta (std::string metaInfo) |
std::string | GetXMLOpenClose_node (uint32_t lp, uint32_t id, double locX, double locY) |
std::string | GetXMLOpenClose_node (uint32_t lp, uint32_t id, double locX, double locY, struct Rgb rgb) |
std::string | GetXMLOpenClose_nodeupdate (uint32_t id, bool visible=true) |
std::string | GetXMLOpenClose_NonP2pLinkProperties (uint32_t id, std::string ipv4Address, std::string channelType) |
std::string | GetXMLOpenClose_p (std::string pktType, uint32_t fId, double fbTx, double lbTx, uint32_t tId, double fbRx, double lbRx, std::string metaInfo="", std::string auxInfo="") |
std::string | GetXMLOpenClose_routing (uint32_t id, std::string routingInfo) |
std::string | GetXMLOpenClose_rp (uint32_t nodeId, std::string destination, Ipv4RoutePathElements rpElements) |
std::string | GetXMLOpenClose_rx (uint32_t toLp, uint32_t toId, double fbRx, double lbRx) |
bool | IsInTimeWindow () |
bool | LtePacketIsPending (uint64_t AnimUid) |
void | LteRxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &) |
void | LteSpectrumPhyRxStart (std::string context, Ptr< const PacketBurst > pb) |
void | LteSpectrumPhyTxStart (std::string context, Ptr< const PacketBurst > pb) |
void | LteTxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &) |
void | MobilityAutoCheck () |
void | MobilityCourseChangeTrace (Ptr< const MobilityModel > mob) |
bool | NodeHasMoved (Ptr< Node > n, Vector newLocation) |
void | OutputCsmaPacket (Ptr< const Packet > p, AnimPacketInfo &pktInfo, AnimRxInfo pktrxInfo) |
void | OutputWirelessPacket (Ptr< const Packet > p, AnimPacketInfo &pktInfo, AnimRxInfo pktrxInfo) |
void | PurgePendingCsma () |
void | PurgePendingLte () |
void | PurgePendingWifi () |
void | PurgePendingWimax () |
void | RecalcTopoBounds (Vector v) |
std::vector< Ptr< Node > > | RecalcTopoBounds () |
void | RecursiveIpv4RoutePathSearch (std::string fromIpv4, std::string toIpv4, Ipv4RoutePathElements &) |
bool | SetOutputFile (const std::string &fn) |
Specify that animation commands are to be written to the specified output file. | |
bool | SetRoutingOutputFile (const std::string &fn) |
void | SetXMLOutput () |
Specify that animation commands are to be written in XML format. | |
void | StartAnimation (bool restart=false) |
Writes the topology information and sets up the appropriate animation packet tx callback. | |
void | StartNewTraceFile () |
void | StopAnimation (bool onlyAnimation=false) |
Closes the interface to the animator. | |
void | TrackIpv4Route () |
void | TrackIpv4RoutePaths () |
bool | UanPacketIsPending (uint64_t AnimUid) |
void | UanPhyGenRxTrace (std::string context, Ptr< const Packet >) |
void | UanPhyGenTxTrace (std::string context, Ptr< const Packet >) |
Vector | UpdatePosition (Ptr< Node > n) |
Vector | UpdatePosition (Ptr< Node > n, Vector v) |
void | WifiMacRxTrace (std::string context, Ptr< const Packet > p) |
bool | WifiPacketIsPending (uint64_t AnimUid) |
void | WifiPhyRxBeginTrace (std::string context, Ptr< const Packet > p) |
void | WifiPhyRxDropTrace (std::string context, Ptr< const Packet > p) |
void | WifiPhyRxEndTrace (std::string context, Ptr< const Packet > p) |
void | WifiPhyTxBeginTrace (std::string context, Ptr< const Packet > p) |
void | WifiPhyTxDropTrace (std::string context, Ptr< const Packet > p) |
void | WifiPhyTxEndTrace (std::string context, Ptr< const Packet > p) |
bool | WimaxPacketIsPending (uint64_t AnimUid) |
void | WimaxRxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &) |
void | WimaxTxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &) |
void | WriteDummyPacket () |
int | WriteN (const char *, uint32_t, FILE *f) |
int | WriteN (const std::string &, FILE *f) |
void | WriteNonP2pLinkProperties (uint32_t id, std::string ipv4Address, std::string channelType) |
void | WriteRoutePath (uint32_t nodeId, std::string destination, Ipv4RoutePathElements rpElements) |
Static Private Attributes | |
static std::map < P2pLinkNodeIdPair, LinkProperties, LinkPairCompare > | linkProperties |
static std::map< uint32_t, Rgb > | nodeColors |
static std::map< uint32_t, std::string > | nodeDescriptions |
Interface to network animator.
Provides functions that facilitate communications with an external or internal network animator.
Definition at line 104 of file animation-interface.h.
typedef void(* ns3::AnimationInterface::AnimWriteCallback)(const char *str) |
typedef for WriteCallBack used for listening to AnimationInterface write messages
Definition at line 204 of file animation-interface.h.
|
private |
Definition at line 592 of file animation-interface.h.
ns3::AnimationInterface::AnimationInterface | ( | const std::string | filename, |
uint64_t | maxPktsPerFile = MAX_PKTS_PER_TRACE_FILE , |
||
bool | usingXML = true |
||
) |
Constructor.
filename | The Filename for the trace file used by the Animator |
maxPktsPerFile | The maximum number of packets per trace file. AnimationInterface will create trace files with the following filenames : filename, filename-1, filename-2..., filename-N where each file contains packet info for 'maxPktPerFile' number of packets |
usingXML | Set to true if XML output traces are required |
Definition at line 64 of file animation-interface.cc.
References ns3::initialized, m_uniformRandomVariable, and StartAnimation().
ns3::AnimationInterface::~AnimationInterface | ( | ) |
Destructor for the animator interface.
Definition at line 79 of file animation-interface.cc.
References StopAnimation().
|
private |
Definition at line 1046 of file animation-interface.cc.
References m_pendingCsmaPackets, ns3::AnimPacketInfo::m_txnd, and NS_ASSERT.
Referenced by CsmaPhyTxBeginTrace(), and CsmaPhyTxEndTrace().
|
private |
Definition at line 1040 of file animation-interface.cc.
References m_pendingLtePackets, ns3::AnimPacketInfo::m_txnd, and NS_ASSERT.
Referenced by LteSpectrumPhyTxStart(), and LteTxTrace().
|
private |
Definition at line 1023 of file animation-interface.cc.
References m_pendingUanPackets.
Referenced by UanPhyGenTxTrace().
|
private |
Definition at line 1029 of file animation-interface.cc.
References m_pendingWifiPackets.
Referenced by WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), and WifiPhyTxBeginTrace().
|
private |
Definition at line 1034 of file animation-interface.cc.
References m_pendingWimaxPackets, ns3::AnimPacketInfo::m_txnd, and NS_ASSERT.
Referenced by WimaxTxTrace().
AnimationInterface & ns3::AnimationInterface::AddSourceDestination | ( | uint32_t | fromNodeId, |
std::string | destinationIpv4Address | ||
) |
Helper function to print the routing path from a source node to destination IP.
Definition at line 728 of file animation-interface.cc.
References m_ipv4RouteTrackElements.
|
private |
Definition at line 723 of file animation-interface.cc.
References m_ipv4ToNodeIdMap.
Referenced by StartAnimation().
int64_t ns3::AnimationInterface::AssignStreams | ( | int64_t | stream | ) |
Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned.
stream | first stream index to use |
Definition at line 1578 of file animation-interface.cc.
References m_uniformRandomVariable, NS_LOG_FUNCTION, and ns3::RandomVariableStream::SetStream().
|
private |
Definition at line 807 of file animation-interface.cc.
References ns3::Config::Connect(), ConnectLte(), ns3::Config::ConnectWithoutContext(), CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), DevTxTrace(), LteRxTrace(), LteTxTrace(), ns3::MakeCallback(), MobilityCourseChangeTrace(), UanPhyGenRxTrace(), UanPhyGenTxTrace(), WifiPhyRxBeginTrace(), WifiPhyTxBeginTrace(), WimaxRxTrace(), and WimaxTxTrace().
Referenced by StartAnimation().
|
private |
Definition at line 780 of file animation-interface.cc.
References ns3::NodeList::Begin(), ConnectLteEnb(), ConnectLteUe(), ns3::NodeList::End(), ns3::Node::GetDevice(), ns3::Node::GetNDevices(), and NS_ASSERT.
Referenced by ConnectCallbacks().
|
private |
Definition at line 736 of file animation-interface.cc.
References ns3::LtePhy::GetDownlinkSpectrumPhy(), ns3::Node::GetId(), ns3::LteEnbNetDevice::GetPhy(), ns3::LtePhy::GetUplinkSpectrumPhy(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), ns3::MakeCallback(), and ns3::ObjectBase::TraceConnect().
Referenced by ConnectLte().
|
private |
Definition at line 759 of file animation-interface.cc.
References ns3::LtePhy::GetDownlinkSpectrumPhy(), ns3::Node::GetId(), ns3::LtePhy::GetUplinkSpectrumPhy(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), ns3::MakeCallback(), and ns3::ObjectBase::TraceConnect().
Referenced by ConnectLte().
Definition at line 1470 of file animation-interface.cc.
References CsmaPacketIsPending(), GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), ns3::AnimPacketInfo::GetRxInfo(), IsInTimeWindow(), ns3::AnimRxInfo::IsPhyRxComplete(), m_pendingCsmaPackets, m_started, NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, and OutputCsmaPacket().
Referenced by ConnectCallbacks().
|
private |
Definition at line 403 of file animation-interface.cc.
References m_pendingCsmaPackets.
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), and CsmaPhyTxEndTrace().
|
private |
Definition at line 1448 of file animation-interface.cc.
References CsmaPacketIsPending(), GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_pendingCsmaPackets, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, ns3::AnimPacketInfo::ProcessRxEnd(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1408 of file animation-interface.cc.
References ns3::Packet::AddByteTag(), AddPendingCsmaPacket(), gAnimUid, GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, ns3::AnimByteTag::Set(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1426 of file animation-interface.cc.
References AddPendingCsmaPacket(), CsmaPacketIsPending(), GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), ns3::Time::GetSeconds(), IsInTimeWindow(), ns3::AnimPacketInfo::m_lbTx, m_pendingCsmaPackets, m_started, ns3::Now(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 975 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::NetDevice::GetNode(), GetPacketMetadata(), ns3::Time::GetSeconds(), GetXMLOpenClose_p(), IsInTimeWindow(), m_currentPktCount, m_enablePacketMetadata, m_f, m_started, m_xml, ns3::Now(), NS_ASSERT, StartNewTraceFile(), and WriteN().
Referenced by ConnectCallbacks().
AnimationInterface & ns3::AnimationInterface::EnableIpv4RouteTracking | ( | std::string | fileName, |
Time | startTime, | ||
Time | stopTime, | ||
Time | pollInterval = Seconds(5) |
||
) |
Enable tracking of the Ipv4 routing table for all Nodes.
fileName | Trace file for storing routing table information |
startTime | Start time for capture |
stopTime | End time for capture |
pollInterval | The periodic interval at which routing table information is polled Default: 5s |
Definition at line 84 of file animation-interface.cc.
References GetXMLOpen_anim(), m_routingF, m_routingFileName, m_routingPollInterval, m_routingStopTime, ns3::Simulator::Schedule(), SetRoutingOutputFile(), TrackIpv4Route(), and WriteN().
Referenced by EnableIpv4RouteTracking(), and main().
AnimationInterface & ns3::AnimationInterface::EnableIpv4RouteTracking | ( | std::string | fileName, |
Time | startTime, | ||
Time | stopTime, | ||
NodeContainer | nc, | ||
Time | pollInterval = Seconds(5) |
||
) |
Enable tracking of the Ipv4 routing table for a set of Nodes.
fileName | Trace file for storing routing table information |
startTime | Start time for capture |
stopTime | End time for capture |
nc | A NodeContainer containing nodes for which Routing table has to be tracked |
pollInterval | The periodic interval at which routing table information is polled Default: 5s |
Definition at line 95 of file animation-interface.cc.
References EnableIpv4RouteTracking(), and m_routingNc.
void ns3::AnimationInterface::EnablePacketMetadata | ( | bool | enable | ) |
Enable Packet metadata.
enable | if true enables writing the packet metadata to the XML trace file if false disables writing the packet metadata |
Definition at line 356 of file animation-interface.cc.
References ns3::Packet::EnablePrinting(), and m_enablePacketMetadata.
Referenced by main().
Definition at line 1052 of file animation-interface.cc.
References ns3::AnimByteTag::Get(), ns3::Packet::GetByteTagIterator(), ns3::AnimByteTag::GetInstanceTypeId(), ns3::ByteTagIterator::Item::GetTag(), ns3::ByteTagIterator::Item::GetTypeId(), ns3::ByteTagIterator::HasNext(), and ns3::ByteTagIterator::Next().
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxEndTrace(), LteRxTrace(), LteSpectrumPhyRxStart(), UanPhyGenRxTrace(), WifiMacRxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), WifiPhyTxDropTrace(), and WimaxRxTrace().
|
private |
Definition at line 2070 of file animation-interface.cc.
Referenced by GetNetDeviceFromContext().
Definition at line 586 of file animation-interface.cc.
References ns3::Ipv4::GetAddress(), ns3::Node::GetId(), ns3::Ipv4::GetInterfaceForDevice(), ns3::Ipv4InterfaceAddress::GetLocal(), ns3::NodeList::GetNode(), ns3::NetDevice::GetNode(), and NS_LOG_WARN.
Referenced by StartAnimation().
Definition at line 101 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::Object::GetObject(), ns3::Ipv4::GetRoutingProtocol(), NS_ASSERT, NS_LOG_WARN, and ns3::Ipv4RoutingProtocol::PrintRoutingTable().
Referenced by TrackIpv4Route().
Definition at line 578 of file animation-interface.cc.
References ns3::NetDevice::GetAddress().
Referenced by StartAnimation().
|
private |
Definition at line 307 of file animation-interface.cc.
Referenced by GetXMLOpen_anim().
Definition at line 1011 of file animation-interface.cc.
References ns3::Node::GetDevice(), GetElementsFromContext(), ns3::NodeList::GetNode(), and NS_ASSERT.
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), LteRxTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), LteTxTrace(), UanPhyGenRxTrace(), UanPhyGenTxTrace(), WifiMacRxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), WifiPhyTxBeginTrace(), WifiPhyTxDropTrace(), WimaxRxTrace(), and WimaxTxTrace().
Definition at line 1565 of file animation-interface.cc.
References ns3::Packet::Print().
Referenced by DevTxTrace(), OutputCsmaPacket(), and OutputWirelessPacket().
Definition at line 459 of file animation-interface.cc.
References ns3::Node::GetId(), m_nodeLocation, and NS_FATAL_ERROR.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), NodeHasMoved(), RecalcTopoBounds(), and StartAnimation().
|
private |
Definition at line 1589 of file animation-interface.cc.
Referenced by StartAnimation().
uint64_t ns3::AnimationInterface::GetTracePktCount | ( | ) |
Get trace file packet count (This used only for testing)
returns Number of packets recorded in the current trace file
Definition at line 1572 of file animation-interface.cc.
References m_currentPktCount.
|
inlineprivate |
Definition at line 636 of file animation-interface.h.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), StartAnimation(), and StopAnimation().
|
private |
Definition at line 1840 of file animation-interface.cc.
References GetNetAnimVersion().
Referenced by EnableIpv4RouteTracking(), and StartAnimation().
|
private |
Definition at line 1964 of file animation-interface.cc.
|
private |
Definition at line 1846 of file animation-interface.cc.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), and StartAnimation().
|
private |
Definition at line 2026 of file animation-interface.cc.
|
private |
Definition at line 1933 of file animation-interface.cc.
References ns3::LinkProperties::fromNodeDescription, ns3::LinkProperties::linkDescription, linkProperties, and ns3::LinkProperties::toNodeDescription.
Referenced by StartAnimation().
|
private |
Definition at line 1919 of file animation-interface.cc.
References ns3::Time::GetSeconds(), and ns3::Now().
Referenced by UpdateLinkDescription().
|
private |
Definition at line 2049 of file animation-interface.cc.
|
private |
Definition at line 1883 of file animation-interface.cc.
References nodeDescriptions.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), and StartAnimation().
|
private |
Definition at line 1899 of file animation-interface.cc.
References ns3::Rgb::b, ns3::Rgb::g, nodeDescriptions, and ns3::Rgb::r.
|
private |
Definition at line 1856 of file animation-interface.cc.
References ns3::Rgb::b, ns3::Rgb::g, ns3::Time::GetSeconds(), nodeColors, nodeDescriptions, ns3::Now(), and ns3::Rgb::r.
Referenced by ShowNode(), UpdateNodeColor(), and UpdateNodeDescription().
|
private |
Definition at line 2058 of file animation-interface.cc.
Referenced by WriteNonP2pLinkProperties().
|
private |
Definition at line 2003 of file animation-interface.cc.
Referenced by DevTxTrace(), OutputCsmaPacket(), OutputWirelessPacket(), and WriteDummyPacket().
|
private |
Definition at line 1975 of file animation-interface.cc.
References ns3::Time::GetSeconds(), and ns3::Now().
Referenced by TrackIpv4Route().
|
private |
Definition at line 1985 of file animation-interface.cc.
References ns3::Time::GetSeconds(), ns3::Ipv4RoutePathElement::nextHop, ns3::Ipv4RoutePathElement::nodeId, and ns3::Now().
Referenced by WriteRoutePath().
|
private |
Definition at line 2038 of file animation-interface.cc.
|
static |
Check if AnimationInterface is initialized.
Definition at line 363 of file animation-interface.cc.
References ns3::initialized.
|
private |
Definition at line 384 of file animation-interface.cc.
References m_startTime, m_stopTime, and ns3::Simulator::Now().
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), DevTxTrace(), LteRxTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), LteTxTrace(), MobilityAutoCheck(), MobilityCourseChangeTrace(), UanPhyGenRxTrace(), UanPhyGenTxTrace(), WifiMacRxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), WifiPhyTxBeginTrace(), WifiPhyTxDropTrace(), WimaxRxTrace(), and WimaxTxTrace().
bool ns3::AnimationInterface::IsStarted | ( | void | ) |
Is AnimationInterface started.
Definition at line 368 of file animation-interface.cc.
References m_started.
|
private |
Definition at line 414 of file animation-interface.cc.
References m_pendingLtePackets.
Referenced by LteRxTrace(), and LteSpectrumPhyRxStart().
|
private |
Definition at line 1316 of file animation-interface.cc.
References gAnimUid, GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), ns3::AnimPacketInfo::GetRxInfo(), IsInTimeWindow(), LtePacketIsPending(), m_pendingLtePackets, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacket(), ns3::AnimPacketInfo::ProcessRxBegin(), ns3::AnimPacketInfo::ProcessRxEnd(), ns3::Seconds(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1371 of file animation-interface.cc.
References gAnimUid, GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), ns3::AnimPacketInfo::GetRxInfo(), IsInTimeWindow(), list, LtePacketIsPending(), m_pendingLtePackets, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacket(), ns3::AnimPacketInfo::ProcessRxBegin(), ns3::AnimPacketInfo::ProcessRxEnd(), ns3::Seconds(), and UpdatePosition().
Referenced by ConnectLteEnb(), and ConnectLteUe().
|
private |
Definition at line 1339 of file animation-interface.cc.
References ns3::Packet::AddByteTag(), AddPendingLtePacket(), gAnimUid, GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), list, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, ns3::Seconds(), ns3::AnimByteTag::Set(), and UpdatePosition().
Referenced by ConnectLteEnb(), and ConnectLteUe().
|
private |
Definition at line 1297 of file animation-interface.cc.
References ns3::Packet::AddByteTag(), AddPendingLtePacket(), gAnimUid, GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, ns3::Seconds(), ns3::AnimByteTag::Set(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1538 of file animation-interface.cc.
References ns3::Node::GetId(), GetPosition(), GetXMLClose(), GetXMLOpen_topology(), GetXMLOpenClose_node(), ns3::Simulator::IsFinished(), IsInTimeWindow(), m_f, m_mobilityPollInterval, m_started, m_topoMaxX, m_topoMaxY, m_topoMinX, m_topoMinY, NS_ASSERT, PurgePendingCsma(), PurgePendingLte(), PurgePendingWifi(), PurgePendingWimax(), RecalcTopoBounds(), ns3::Simulator::Schedule(), WriteDummyPacket(), WriteN(), ns3::Vector3D::x, and ns3::Vector3D::y.
Referenced by StartAnimation().
|
private |
Definition at line 1497 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::Object::GetObject(), ns3::MobilityModel::GetPosition(), GetPosition(), GetXMLClose(), GetXMLOpen_topology(), GetXMLOpenClose_node(), IsInTimeWindow(), m_f, m_started, m_topoMaxX, m_topoMaxY, m_topoMinX, m_topoMinY, nodeColors, NS_ASSERT, RecalcTopoBounds(), UpdatePosition(), WriteDummyPacket(), WriteN(), ns3::Vector3D::x, and ns3::Vector3D::y.
Referenced by ConnectCallbacks().
Definition at line 1523 of file animation-interface.cc.
References GetPosition(), ns3::Vector3D::x, and ns3::Vector3D::y.
Referenced by RecalcTopoBounds().
|
private |
Definition at line 1665 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::NetDevice::GetNode(), GetPacketMetadata(), GetXMLOpenClose_p(), m_enablePacketMetadata, m_f, ns3::AnimRxInfo::m_fbRx, ns3::AnimPacketInfo::m_fbTx, ns3::AnimRxInfo::m_lbRx, ns3::AnimPacketInfo::m_lbTx, ns3::AnimRxInfo::m_rxnd, ns3::AnimPacketInfo::m_txnd, m_xml, NS_ASSERT, StartNewTraceFile(), and WriteN().
Referenced by CsmaMacRxTrace().
|
private |
Definition at line 1646 of file animation-interface.cc.
References ns3::AnimPacketInfo::firstlastbitDelta, ns3::Node::GetId(), ns3::NetDevice::GetNode(), GetPacketMetadata(), GetXMLOpenClose_p(), m_enablePacketMetadata, m_f, ns3::AnimRxInfo::m_fbRx, ns3::AnimPacketInfo::m_fbTx, ns3::AnimRxInfo::m_lbRx, ns3::AnimRxInfo::m_rxnd, ns3::AnimPacketInfo::m_txnd, ns3::AnimPacketInfo::m_txNodeId, m_xml, NS_ASSERT, StartNewTraceFile(), and WriteN().
Referenced by LteRxTrace(), LteSpectrumPhyRxStart(), UanPhyGenRxTrace(), WifiMacRxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), and WimaxRxTrace().
|
private |
Definition at line 551 of file animation-interface.cc.
References ns3::Time::GetSeconds(), ns3::AnimPacketInfo::m_fbTx, m_pendingCsmaPackets, ns3::Now(), and PURGE_INTERVAL.
Referenced by MobilityAutoCheck().
|
private |
Definition at line 525 of file animation-interface.cc.
References ns3::Time::GetSeconds(), ns3::AnimPacketInfo::m_fbTx, m_pendingLtePackets, ns3::Now(), and PURGE_INTERVAL.
Referenced by MobilityAutoCheck().
|
private |
Definition at line 470 of file animation-interface.cc.
References ns3::Time::GetSeconds(), ns3::AnimPacketInfo::m_fbTx, m_pendingWifiPackets, ns3::Now(), and PURGE_INTERVAL.
Referenced by MobilityAutoCheck().
|
private |
Definition at line 497 of file animation-interface.cc.
References ns3::Time::GetSeconds(), ns3::AnimPacketInfo::m_fbTx, m_pendingWimaxPackets, ns3::Now(), and PURGE_INTERVAL.
Referenced by MobilityAutoCheck().
|
private |
Definition at line 909 of file animation-interface.cc.
References m_topoMaxX, m_topoMaxY, m_topoMinX, m_topoMinY, ns3::Vector3D::x, and ns3::Vector3D::y.
Definition at line 878 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Object::GetObject(), ns3::MobilityModel::GetPosition(), GetPosition(), NodeHasMoved(), NS_ASSERT, and UpdatePosition().
Referenced by MobilityAutoCheck(), and MobilityCourseChangeTrace().
|
private |
Definition at line 118 of file animation-interface.cc.
References ns3::Socket::ERROR_NOROUTETOHOST, ns3::Ipv4Route::GetGateway(), ns3::Node::GetId(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), ns3::Ipv4::GetRoutingProtocol(), m_ipv4ToNodeIdMap, NS_FATAL_ERROR, NS_LOG_INFO, NS_LOG_UNCOND, NS_LOG_WARN, ns3::Ipv4RoutingProtocol::RouteOutput(), and ns3::Ipv4Header::SetDestination().
Referenced by TrackIpv4RoutePaths().
void ns3::AnimationInterface::ResetAnimWriteCallback | ( | ) |
Reset the write callback function.
Definition at line 379 of file animation-interface.cc.
References m_writeCallback.
Referenced by StopAnimation().
void ns3::AnimationInterface::SetAnimWriteCallback | ( | AnimWriteCallback | cb | ) |
Set a callback function to listen to AnimationInterface write events.
cb | Address of callback function |
Definition at line 374 of file animation-interface.cc.
References m_writeCallback.
|
static |
Helper function to set Constant Position for a given node.
n | Ptr to the node |
x | X co-ordinate of the node |
y | Y co-ordinate of the node |
z | Z co-ordinate of the node |
Definition at line 1679 of file animation-interface.cc.
References ns3::Object::AggregateObject(), ns3::Node::GetId(), ns3::Object::GetObject(), NS_ASSERT, and NS_LOG_INFO.
Referenced by ns3::AnimationInterfaceTestCase::DoRun(), and main().
|
static |
Helper function to set the description for a link.
fromNode | Node Id of the "from Node" of the p2p link |
toNode | Node Id of the "to Node" of the p2p link |
linkDescription | Description of the link such as link bandwidth |
fromNodeDescription | Description at the "from Node" end such as IP address |
toNodeDescription | Description at the "to Node" end such as Ip address |
Definition at line 1766 of file animation-interface.cc.
References ns3::P2pLinkNodeIdPair::fromNode, linkProperties, and ns3::P2pLinkNodeIdPair::toNode.
Referenced by SetLinkDescription(), and StartAnimation().
|
static |
Helper function to set the description for a link.
fromNode | Ptr to the "from Node" of the p2p link |
toNode | Ptr the "to Node" of the p2p link |
linkDescription | Description of the link such as link bandwidth |
fromNodeDescription | Description at the "from Node" end such as IP address |
toNodeDescription | Description at the "to Node" end such as Ip address |
Definition at line 1790 of file animation-interface.cc.
References ns3::Node::GetId(), NS_ASSERT, and SetLinkDescription().
void ns3::AnimationInterface::SetMobilityPollInterval | ( | Time | t | ) |
Set mobility poll interval:WARNING: setting a low interval can cause slowness.
t | Time interval between fetching mobility/position information Default: 0.25s |
Definition at line 419 of file animation-interface.cc.
References m_mobilityPollInterval.
|
static |
Helper function to set the node color.
n | Ptr to the node |
r | Red component value (0-255) |
g | Green component value (0-255) |
b | Blue component value (0-255) |
Definition at line 1694 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::initialized, nodeColors, NS_ASSERT, NS_FATAL_ERROR, and NS_LOG_INFO.
Referenced by main(), and SetNodeColor().
|
static |
Helper function to set the color of nodes in a container.
n | Ptr to the node |
r | Red component value (0-255) |
g | Green component value (0-255) |
b | Blue component value (0-255) |
Definition at line 1737 of file animation-interface.cc.
References ns3::NodeContainer::Get(), ns3::NodeContainer::GetN(), NS_ASSERT, and SetNodeColor().
Helper function to set a brief description for a given node.
Definition at line 1801 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::initialized, nodeDescriptions, NS_ASSERT, and NS_FATAL_ERROR.
Referenced by main().
|
static |
Helper function to set a brief description for nodes in a Node Container.
nc | NodeContainer containing the nodes |
descr | A string to briefly describe the nodes |
Definition at line 1825 of file animation-interface.cc.
References ns3::NodeContainer::Get(), ns3::Node::GetId(), ns3::NodeContainer::GetN(), ns3::initialized, nodeDescriptions, NS_ASSERT, and NS_FATAL_ERROR.
|
private |
Specify that animation commands are to be written to the specified output file.
This call is used to write the animation information to a text file that can later be used as input to the network animator tool.
fn | The name of the output file. |
Definition at line 322 of file animation-interface.cc.
References m_f, m_outputFileName, m_outputFileSet, NS_FATAL_ERROR, and NS_LOG_INFO.
Referenced by StartAnimation().
void ns3::AnimationInterface::SetRandomPosition | ( | bool | setRandPos | ) |
Set random position if a Mobility Model does not exists for the node.
setRandPos | True if a random position can be set for a node without a Mobililty model |
Definition at line 424 of file animation-interface.cc.
References m_randomPosition.
|
private |
Definition at line 340 of file animation-interface.cc.
References m_routingF, and NS_FATAL_ERROR.
Referenced by EnableIpv4RouteTracking().
void ns3::AnimationInterface::SetStartTime | ( | Time | t | ) |
Specify the time at which capture should start.
t | The time at which AnimationInterface should begin capture of traffic info |
Definition at line 312 of file animation-interface.cc.
References m_startTime.
void ns3::AnimationInterface::SetStopTime | ( | Time | t | ) |
Specify the time at which capture should stop.
t | The time at which AnimationInterface should stop capture of traffic info |
Definition at line 317 of file animation-interface.cc.
References m_stopTime.
|
private |
Specify that animation commands are to be written in XML format.
Definition at line 283 of file animation-interface.cc.
References m_xml, and NS_LOG_INFO.
void ns3::AnimationInterface::ShowNode | ( | uint32_t | nodeId, |
bool | show = true |
||
) |
Helper function to show/hide a node.
nodeId | Id of the node |
show | Set to true to show node, set to false to hide |
Definition at line 1704 of file animation-interface.cc.
References ns3::NodeList::GetNode(), GetXMLOpenClose_nodeupdate(), m_f, NS_ASSERT, NS_LOG_INFO, and WriteN().
Referenced by modify(), and ShowNode().
Helper function to show/hide a node.
n | Ptr to the node |
show | Set to true to show node, set to false to hide |
Definition at line 1714 of file animation-interface.cc.
References ShowNode().
|
private |
Writes the topology information and sets up the appropriate animation packet tx callback.
Writes the topology information to the appropriate output, depending on prior calls to SetOutputFile, SetServerPort, or SetInternalAnimation. Then creates the callbacks needed for the animator to start processing packets.
restart | True when restarting animation |
Definition at line 606 of file animation-interface.cc.
References AddToIpv4AddressNodeIdTable(), ns3::NodeList::Begin(), ConnectCallbacks(), ns3::NodeList::End(), ns3::NetDevice::GetChannel(), ns3::Channel::GetDevice(), ns3::Node::GetDevice(), ns3::Node::GetId(), ns3::Object::GetInstanceTypeId(), GetIpv4Address(), GetMacAddress(), ns3::TypeId::GetName(), ns3::Channel::GetNDevices(), ns3::Node::GetNDevices(), ns3::NodeList::GetNNodes(), ns3::NetDevice::GetNode(), GetPosition(), GetPreamble(), GetXMLClose(), GetXMLOpen_anim(), GetXMLOpen_topology(), GetXMLOpenClose_link(), GetXMLOpenClose_node(), linkProperties, m_currentPktCount, m_f, m_mobilityPollInterval, m_outputFileName, m_started, m_topoMaxX, m_topoMaxY, m_topoMinX, m_topoMinY, m_xml, MobilityAutoCheck(), nodeColors, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_INFO, ns3::Simulator::Schedule(), SetLinkDescription(), SetOutputFile(), UpdatePosition(), WriteN(), WriteNonP2pLinkProperties(), ns3::Vector3D::x, and ns3::Vector3D::y.
Referenced by AnimationInterface(), and StartNewTraceFile().
|
private |
Definition at line 290 of file animation-interface.cc.
References m_currentPktCount, m_maxPktsPerFile, m_originalFileName, m_outputFileName, StartAnimation(), and StopAnimation().
Referenced by DevTxTrace(), OutputCsmaPacket(), and OutputWirelessPacket().
|
private |
Closes the interface to the animator.
Definition at line 844 of file animation-interface.cc.
References GetXMLClose(), m_f, m_outputFileSet, m_routingF, m_started, m_xml, NS_LOG_INFO, ResetAnimWriteCallback(), and WriteN().
Referenced by StartNewTraceFile(), and ~AnimationInterface().
|
private |
Definition at line 256 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeContainer::Begin(), ns3::NodeList::End(), ns3::NodeContainer::End(), ns3::Node::GetId(), GetIpv4RoutingTable(), ns3::NodeContainer::GetN(), GetXMLOpenClose_routing(), m_routingF, m_routingNc, m_routingPollInterval, m_routingStopTime, ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), TrackIpv4RoutePaths(), and WriteN().
Referenced by EnableIpv4RouteTracking().
|
private |
Definition at line 187 of file animation-interface.cc.
References ns3::Ipv4RouteTrackElement::destination, ns3::Ipv4RouteTrackElement::fromNodeId, ns3::Ipv4Route::GetGateway(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), ns3::Ipv4::GetRoutingProtocol(), m_ipv4RouteTrackElements, m_ipv4ToNodeIdMap, NS_FATAL_ERROR, NS_LOG_INFO, NS_LOG_WARN, RecursiveIpv4RoutePathSearch(), ns3::Ipv4RoutingProtocol::RouteOutput(), ns3::Ipv4Header::SetDestination(), and WriteRoutePath().
Referenced by TrackIpv4Route().
|
private |
Definition at line 393 of file animation-interface.cc.
References m_pendingUanPackets.
Referenced by UanPhyGenRxTrace().
|
private |
Definition at line 1096 of file animation-interface.cc.
References GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_pendingUanPackets, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacket(), UanPacketIsPending(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1077 of file animation-interface.cc.
References ns3::Packet::AddByteTag(), AddPendingUanPacket(), gAnimUid, GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, ns3::AnimByteTag::Set(), and UpdatePosition().
Referenced by ConnectCallbacks().
void ns3::AnimationInterface::UpdateLinkDescription | ( | uint32_t | fromNode, |
uint32_t | toNode, | ||
std::string | linkDescription | ||
) |
Helper function to update the description for a link.
fromNode | Node Id of the "from Node" of the p2p link |
toNode | Node Id of the "to Node" of the p2p link |
linkDescription | Description of the link such as link bandwidth |
Definition at line 1748 of file animation-interface.cc.
References GetXMLOpenClose_linkupdate(), m_f, and WriteN().
Referenced by modify().
void ns3::AnimationInterface::UpdateLinkDescription | ( | Ptr< Node > | fromNode, |
Ptr< Node > | toNode, | ||
std::string | linkDescription | ||
) |
Helper function to update the description for a link.
fromNode | Ptr to the "from Node" of the p2p link |
toNode | Ptr to the "to Node" of the p2p link |
linkDescription | Description of the link such as link bandwidth |
Definition at line 1756 of file animation-interface.cc.
References ns3::Node::GetId(), GetXMLOpenClose_linkupdate(), m_f, NS_ASSERT, and WriteN().
Helper function to update the node color.
n | Ptr to the node |
r | Red component value (0-255) |
g | Green component value (0-255) |
b | Blue component value (0-255) |
Definition at line 1719 of file animation-interface.cc.
References ns3::Node::GetId().
Referenced by modify().
void ns3::AnimationInterface::UpdateNodeColor | ( | uint32_t | nodeId, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
Helper function to update the node color.
nodeId | Id of the node |
r | Red component value (0-255) |
g | Green component value (0-255) |
b | Blue component value (0-255) |
Definition at line 1724 of file animation-interface.cc.
References ns3::NodeList::GetNode(), GetXMLOpenClose_nodeupdate(), m_f, nodeColors, NS_ASSERT, NS_LOG_INFO, and WriteN().
Helper function to update the description for a given node.
Definition at line 1809 of file animation-interface.cc.
References ns3::Node::GetId().
Referenced by modify().
void ns3::AnimationInterface::UpdateNodeDescription | ( | uint32_t | nodeId, |
std::string | descr | ||
) |
Helper function to update the description for a given node.
nodeId | Id of the node |
descr | A string to briefly describe the node |
Definition at line 1814 of file animation-interface.cc.
References ns3::NodeList::GetNode(), GetXMLOpenClose_nodeupdate(), m_f, nodeDescriptions, NS_ASSERT, and WriteN().
Definition at line 429 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::Object::GetObject(), ns3::MobilityModel::GetPosition(), ns3::UniformRandomVariable::GetValue(), m_nodeLocation, m_randomPosition, m_topoMaxX, m_topoMaxY, m_topoMinX, m_topoMinY, m_uniformRandomVariable, and NS_LOG_UNCOND.
Referenced by CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), LteRxTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), LteTxTrace(), MobilityCourseChangeTrace(), RecalcTopoBounds(), StartAnimation(), UanPhyGenRxTrace(), UanPhyGenTxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), WifiPhyTxBeginTrace(), WimaxRxTrace(), and WimaxTxTrace().
Definition at line 453 of file animation-interface.cc.
References ns3::Node::GetId(), and m_nodeLocation.
Definition at line 1229 of file animation-interface.cc.
References GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), ns3::AnimPacketInfo::GetRxInfo(), IsInTimeWindow(), ns3::AnimRxInfo::IsPhyRxComplete(), m_pendingWifiPackets, m_started, NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacket(), and WifiPacketIsPending().
|
private |
Definition at line 398 of file animation-interface.cc.
References m_pendingWifiPackets.
Referenced by WifiMacRxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), and WifiPhyTxDropTrace().
|
private |
Definition at line 1163 of file animation-interface.cc.
References AddPendingWifiPacket(), ns3::WifiMacHeader::GetAddr2(), GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NodeList::GetNode(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_macToNodeIdMap, m_pendingWifiPackets, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacket(), ns3::Packet::PeekHeader(), UpdatePosition(), and WifiPacketIsPending().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1254 of file animation-interface.cc.
|
private |
Definition at line 1202 of file animation-interface.cc.
References AddPendingWifiPacket(), GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), ns3::AnimPacketInfo::GetRxInfo(), IsInTimeWindow(), ns3::AnimRxInfo::IsPhyRxComplete(), m_pendingWifiPackets, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacket(), ns3::AnimPacketInfo::ProcessRxEnd(), UpdatePosition(), and WifiPacketIsPending().
|
private |
Definition at line 1118 of file animation-interface.cc.
References ns3::Packet::AddByteTag(), AddPendingWifiPacket(), gAnimUid, ns3::Node::GetId(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_macToNodeIdMap, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, ns3::AnimByteTag::Set(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1148 of file animation-interface.cc.
References GetAnimUidFromPacket(), GetNetDeviceFromContext(), IsInTimeWindow(), m_pendingWifiPackets, m_started, NS_ASSERT, NS_LOG_INFO, and WifiPacketIsPending().
|
private |
Definition at line 1143 of file animation-interface.cc.
|
private |
Definition at line 409 of file animation-interface.cc.
References m_pendingWimaxPackets.
Referenced by WimaxRxTrace().
|
private |
Definition at line 1278 of file animation-interface.cc.
References GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), ns3::AnimPacketInfo::GetRxInfo(), IsInTimeWindow(), m_pendingWimaxPackets, m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, OutputWirelessPacket(), ns3::AnimPacketInfo::ProcessRxBegin(), ns3::AnimPacketInfo::ProcessRxEnd(), ns3::Seconds(), UpdatePosition(), and WimaxPacketIsPending().
Referenced by ConnectCallbacks().
|
private |
Definition at line 1259 of file animation-interface.cc.
References ns3::Packet::AddByteTag(), AddPendingWimaxPacket(), gAnimUid, GetNetDeviceFromContext(), ns3::NetDevice::GetNode(), IsInTimeWindow(), m_started, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_INFO, ns3::Seconds(), ns3::AnimByteTag::Set(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
Definition at line 938 of file animation-interface.cc.
References ns3::Time::GetSeconds(), GetXMLOpenClose_p(), m_f, ns3::Now(), and WriteN().
Referenced by MobilityAutoCheck(), and MobilityCourseChangeTrace().
|
private |
Definition at line 918 of file animation-interface.cc.
References data.
Referenced by DevTxTrace(), EnableIpv4RouteTracking(), MobilityAutoCheck(), MobilityCourseChangeTrace(), OutputCsmaPacket(), OutputWirelessPacket(), ShowNode(), StartAnimation(), StopAnimation(), TrackIpv4Route(), UpdateLinkDescription(), UpdateNodeColor(), UpdateNodeDescription(), WriteDummyPacket(), WriteN(), WriteNonP2pLinkProperties(), and WriteRoutePath().
|
private |
Definition at line 869 of file animation-interface.cc.
References m_writeCallback, and WriteN().
|
private |
Definition at line 968 of file animation-interface.cc.
References GetXMLOpenClose_NonP2pLinkProperties(), m_f, and WriteN().
Referenced by StartAnimation().
|
private |
Definition at line 952 of file animation-interface.cc.
References GetXMLOpenClose_rp(), m_routingF, NS_LOG_INFO, and WriteN().
Referenced by TrackIpv4RoutePaths().
|
private |
Definition at line 421 of file animation-interface.h.
Referenced by CsmaPhyTxBeginTrace(), LteRxTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), LteTxTrace(), UanPhyGenTxTrace(), WifiPhyTxBeginTrace(), and WimaxTxTrace().
|
staticprivate |
Definition at line 603 of file animation-interface.h.
Referenced by GetXMLOpenClose_link(), SetLinkDescription(), and StartAnimation().
|
private |
Definition at line 604 of file animation-interface.h.
Referenced by DevTxTrace(), GetTracePktCount(), StartAnimation(), and StartNewTraceFile().
|
private |
Definition at line 425 of file animation-interface.h.
Referenced by DevTxTrace(), EnablePacketMetadata(), OutputCsmaPacket(), and OutputWirelessPacket().
|
private |
Definition at line 413 of file animation-interface.h.
Referenced by DevTxTrace(), MobilityAutoCheck(), MobilityCourseChangeTrace(), OutputCsmaPacket(), OutputWirelessPacket(), SetOutputFile(), ShowNode(), StartAnimation(), StopAnimation(), UpdateLinkDescription(), UpdateNodeColor(), UpdateNodeDescription(), WriteDummyPacket(), and WriteNonP2pLinkProperties().
|
private |
Definition at line 591 of file animation-interface.h.
Referenced by AddSourceDestination(), and TrackIpv4RoutePaths().
|
private |
Definition at line 589 of file animation-interface.h.
Referenced by AddToIpv4AddressNodeIdTable(), RecursiveIpv4RoutePathSearch(), and TrackIpv4RoutePaths().
|
private |
Definition at line 588 of file animation-interface.h.
Referenced by WifiPhyRxBeginTrace(), and WifiPhyTxBeginTrace().
|
private |
Definition at line 428 of file animation-interface.h.
Referenced by StartNewTraceFile().
|
private |
Definition at line 418 of file animation-interface.h.
Referenced by MobilityAutoCheck(), SetMobilityPollInterval(), and StartAnimation().
|
private |
Definition at line 566 of file animation-interface.h.
Referenced by GetPosition(), and UpdatePosition().
|
private |
Definition at line 429 of file animation-interface.h.
Referenced by StartNewTraceFile().
|
private |
Definition at line 419 of file animation-interface.h.
Referenced by SetOutputFile(), StartAnimation(), and StartNewTraceFile().
|
private |
Definition at line 420 of file animation-interface.h.
Referenced by SetOutputFile(), and StopAnimation().
|
private |
Definition at line 556 of file animation-interface.h.
Referenced by AddPendingCsmaPacket(), CsmaMacRxTrace(), CsmaPacketIsPending(), CsmaPhyRxEndTrace(), CsmaPhyTxEndTrace(), and PurgePendingCsma().
|
private |
Definition at line 552 of file animation-interface.h.
Referenced by AddPendingLtePacket(), LtePacketIsPending(), LteRxTrace(), LteSpectrumPhyRxStart(), and PurgePendingLte().
|
private |
Definition at line 560 of file animation-interface.h.
Referenced by AddPendingUanPacket(), UanPacketIsPending(), and UanPhyGenRxTrace().
|
private |
Definition at line 544 of file animation-interface.h.
Referenced by AddPendingWifiPacket(), PurgePendingWifi(), WifiMacRxTrace(), WifiPacketIsPending(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), and WifiPhyTxDropTrace().
|
private |
Definition at line 548 of file animation-interface.h.
Referenced by AddPendingWimaxPacket(), PurgePendingWimax(), WimaxPacketIsPending(), and WimaxRxTrace().
|
private |
Definition at line 422 of file animation-interface.h.
Referenced by SetRandomPosition(), and UpdatePosition().
|
private |
Definition at line 414 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking(), SetRoutingOutputFile(), StopAnimation(), TrackIpv4Route(), and WriteRoutePath().
|
private |
Definition at line 431 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking().
|
private |
Definition at line 433 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking(), and TrackIpv4Route().
|
private |
Definition at line 432 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking(), and TrackIpv4Route().
|
private |
Definition at line 430 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking(), and TrackIpv4Route().
|
private |
Definition at line 424 of file animation-interface.h.
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), DevTxTrace(), IsStarted(), LteRxTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), LteTxTrace(), MobilityAutoCheck(), MobilityCourseChangeTrace(), StartAnimation(), StopAnimation(), UanPhyGenRxTrace(), UanPhyGenTxTrace(), WifiMacRxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxEndTrace(), WifiPhyTxBeginTrace(), WifiPhyTxDropTrace(), WimaxRxTrace(), and WimaxTxTrace().
|
private |
Definition at line 426 of file animation-interface.h.
Referenced by IsInTimeWindow(), and SetStartTime().
|
private |
Definition at line 427 of file animation-interface.h.
Referenced by IsInTimeWindow(), and SetStopTime().
|
private |
Definition at line 619 of file animation-interface.h.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), RecalcTopoBounds(), StartAnimation(), and UpdatePosition().
|
private |
Definition at line 620 of file animation-interface.h.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), RecalcTopoBounds(), StartAnimation(), and UpdatePosition().
|
private |
Definition at line 617 of file animation-interface.h.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), RecalcTopoBounds(), StartAnimation(), and UpdatePosition().
|
private |
Definition at line 618 of file animation-interface.h.
Referenced by MobilityAutoCheck(), MobilityCourseChangeTrace(), RecalcTopoBounds(), StartAnimation(), and UpdatePosition().
|
private |
Provides uniform random variables.
Definition at line 645 of file animation-interface.h.
Referenced by AnimationInterface(), AssignStreams(), and UpdatePosition().
|
private |
Definition at line 423 of file animation-interface.h.
Referenced by ResetAnimWriteCallback(), SetAnimWriteCallback(), and WriteN().
|
private |
Definition at line 417 of file animation-interface.h.
Referenced by DevTxTrace(), OutputCsmaPacket(), OutputWirelessPacket(), SetXMLOutput(), StartAnimation(), and StopAnimation().
|
staticprivate |
Definition at line 601 of file animation-interface.h.
Referenced by GetXMLOpenClose_nodeupdate(), MobilityCourseChangeTrace(), SetNodeColor(), StartAnimation(), and UpdateNodeColor().
|
staticprivate |
Definition at line 602 of file animation-interface.h.
Referenced by GetXMLOpenClose_node(), GetXMLOpenClose_nodeupdate(), SetNodeDescription(), and UpdateNodeDescription().