Interface to network animator. More...
#include "animation-interface.h"
Classes | |
class | AnimPacketInfo |
AnimPacketInfo class. More... | |
class | AnimXmlElement |
AnimXmlElement class. More... | |
struct | Ipv4RoutePathElement |
Ipv4RoutePathElement structure IPv4 route path element. More... | |
struct | Ipv4RouteTrackElement |
Ipv4RouteTrackElement structure IPv4 route track element. More... | |
struct | LinkPairCompare |
LinkPairCompare structure. More... | |
struct | LinkProperties |
LinkProperties structure link properties. More... | |
struct | NodeSize |
NodeSize structure node size. More... | |
struct | P2pLinkNodeIdPair |
P2pLinkNodeIdPair structure P2P link node id pair. More... | |
struct | Rgb |
RGB structure RGB structure. More... | |
Public Types | |
typedef void(* | AnimWriteCallback) (const char *str) |
typedef for WriteCallBack used for listening to AnimationInterface write messages More... | |
enum | CounterType { UINT32_COUNTER , DOUBLE_COUNTER } |
Counter Types. More... | |
Public Member Functions | |
AnimationInterface (const std::string filename) | |
Constructor. More... | |
~AnimationInterface () | |
Destructor for the animator interface. More... | |
uint32_t | AddNodeCounter (std::string counterName, CounterType counterType) |
Setup a node counter. More... | |
uint32_t | AddResource (std::string resourcePath) |
Add a resource such as the path to an image file. More... | |
AnimationInterface & | AddSourceDestination (uint32_t fromNodeId, std::string destinationIpv4Address) |
Helper function to print the routing path from a source node to destination IP. More... | |
void | EnableIpv4L3ProtocolCounters (Time startTime, Time stopTime, Time pollInterval=Seconds(1)) |
Enable tracking of Ipv4 L3 Protocol Counters such as Tx, Rx, Drop. More... | |
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. More... | |
AnimationInterface & | EnableIpv4RouteTracking (std::string fileName, Time startTime, Time stopTime, Time pollInterval=Seconds(5)) |
Enable tracking of the Ipv4 routing table for all Nodes. More... | |
void | EnablePacketMetadata (bool enable=true) |
Enable Packet metadata. More... | |
void | EnableQueueCounters (Time startTime, Time stopTime, Time pollInterval=Seconds(1)) |
Enable tracking of Queue Counters such as Enqueue, Dequeue, Queue Drops. More... | |
void | EnableWifiMacCounters (Time startTime, Time stopTime, Time pollInterval=Seconds(1)) |
Enable tracking of Wifi Mac Counters such as Tx, TxDrop, Rx, RxDrop. More... | |
void | EnableWifiPhyCounters (Time startTime, Time stopTime, Time pollInterval=Seconds(1)) |
Enable tracking of Wifi Phy Counters such as TxDrop, RxDrop. More... | |
double | GetNodeEnergyFraction (Ptr< const Node > node) const |
Get node's energy fraction (This used only for testing) More... | |
uint64_t | GetTracePktCount () const |
Get trace file packet count (This used only for testing) More... | |
bool | IsStarted () const |
Is AnimationInterface started. More... | |
void | ResetAnimWriteCallback () |
Reset the write callback function. More... | |
void | SetAnimWriteCallback (AnimWriteCallback cb) |
Set a callback function to listen to AnimationInterface write events. More... | |
void | SetBackgroundImage (std::string fileName, double x, double y, double scaleX, double scaleY, double opacity) |
Helper function to set the background image. More... | |
void | SetMaxPktsPerTraceFile (uint64_t maxPktsPerFile) |
Set Max packets per trace file. More... | |
void | SetMobilityPollInterval (Time t) |
Set mobility poll interval:WARNING: setting a low interval can cause slowness. More... | |
void | SetStartTime (Time t) |
Specify the time at which capture should start. More... | |
void | SetStopTime (Time t) |
Specify the time at which capture should stop. More... | |
void | SkipPacketTracing () |
Do not trace packets. More... | |
void | UpdateLinkDescription (Ptr< Node > fromNode, Ptr< Node > toNode, std::string linkDescription) |
Helper function to update the description for a link. More... | |
void | UpdateLinkDescription (uint32_t fromNode, uint32_t toNode, std::string linkDescription) |
Helper function to update the description for a link. More... | |
void | UpdateNodeColor (Ptr< Node > n, uint8_t r, uint8_t g, uint8_t b) |
Helper function to update the node color. More... | |
void | UpdateNodeColor (uint32_t nodeId, uint8_t r, uint8_t g, uint8_t b) |
Helper function to update the node color. More... | |
void | UpdateNodeCounter (uint32_t nodeCounterId, uint32_t nodeId, double counter) |
Helper function to update a node's counter referenced by the nodeCounterId. More... | |
void | UpdateNodeDescription (Ptr< Node > n, std::string descr) |
Helper function to update the description for a given node. More... | |
void | UpdateNodeDescription (uint32_t nodeId, std::string descr) |
Helper function to update the description for a given node. More... | |
void | UpdateNodeImage (uint32_t nodeId, uint32_t resourceId) |
Helper function to update the image of a node. More... | |
void | UpdateNodeSize (Ptr< Node > n, double width, double height) |
Helper function to update the size of a node. More... | |
void | UpdateNodeSize (uint32_t nodeId, double width, double height) |
Helper function to update the size of a node. More... | |
Static Public Member Functions | |
static bool | IsInitialized () |
Check if AnimationInterface is initialized. More... | |
static void | SetConstantPosition (Ptr< Node > n, double x, double y, double z=0) |
Helper function to set Constant Position for a given node. More... | |
Private Types | |
typedef std::map< uint64_t, AnimPacketInfo > | AnimUidPacketInfoMap |
AnimUidPacketInfoMap typedef. More... | |
typedef std::map< uint32_t, double > | EnergyFractionMap |
EnergyFractionMap typedef. More... | |
typedef std::vector< Ipv4RoutePathElement > | Ipv4RoutePathElements |
Ipv4RoutePathElements typedef. More... | |
typedef std::map< P2pLinkNodeIdPair, LinkProperties, LinkPairCompare > | LinkPropertiesMap |
LinkPropertiesMap typedef. More... | |
typedef std::map< uint32_t, Rgb > | NodeColorsMap |
NodeColorsMap typedef. More... | |
typedef std::map< uint32_t, uint64_t > | NodeCounterMap64 |
NodeCounterMap64 typedef. More... | |
typedef std::map< uint32_t, std::string > | NodeDescriptionsMap |
NodeDescriptionsMap typedef. More... | |
typedef std::multimap< uint32_t, std::string > | NodeIdIpv4Map |
NodeIdIpv4Map typedef. More... | |
typedef std::pair< uint32_t, std::string > | NodeIdIpv4Pair |
NodeIdIpv4Pair typedef. More... | |
typedef std::multimap< uint32_t, std::string > | NodeIdIpv6Map |
NodeIdIpv6Map typedef. More... | |
typedef std::pair< uint32_t, std::string > | NodeIdIpv6Pair |
NodeIdIpv6Pair typedef. More... | |
enum | ProtocolType { UAN , LTE , WIFI , WIMAX , CSMA , LRWPAN } |
ProtocolType enumeration. More... | |
Private Member Functions | |
void | AddByteTag (uint64_t animUid, Ptr< const Packet > p) |
Add byte tag function. More... | |
void | AddPendingPacket (ProtocolType protocolType, uint64_t animUid, AnimPacketInfo pktInfo) |
Add pending packet function. More... | |
void | AddToIpv4AddressNodeIdTable (std::string ipv4Address, uint32_t nodeId) |
Add to IPv4 address node ID table function. More... | |
void | AddToIpv4AddressNodeIdTable (std::vector< std::string > ipv4Addresses, uint32_t nodeId) |
Add to IPv4 address node ID table function. More... | |
void | AddToIpv6AddressNodeIdTable (std::string ipv6Address, uint32_t nodeId) |
Add to IPv6 address node ID table function. More... | |
void | AddToIpv6AddressNodeIdTable (std::vector< std::string > ipv6Addresses, uint32_t nodeId) |
Add to IPv6 address node ID table function. More... | |
void | CheckMaxPktsPerTraceFile () |
Check maximum packets per trace file function. More... | |
void | ConnectCallbacks () |
Connect callbacks function. More... | |
void | ConnectLte () |
Connect LTE function. More... | |
void | ConnectLteEnb (Ptr< Node > n, Ptr< LteEnbNetDevice > nd, uint32_t devIndex) |
Connect LTE ENB function. More... | |
void | ConnectLteUe (Ptr< Node > n, Ptr< LteUeNetDevice > nd, uint32_t devIndex) |
Connect LTE ue function. More... | |
std::string | CounterTypeToString (CounterType counterType) |
Counter type to string function. More... | |
void | CsmaMacRxTrace (std::string context, Ptr< const Packet > p) |
CSMA MAC receive trace function. More... | |
void | CsmaPhyRxEndTrace (std::string context, Ptr< const Packet > p) |
CSMA Phy receive end trace function. More... | |
void | CsmaPhyTxBeginTrace (std::string context, Ptr< const Packet > p) |
CSMA Phy transmit begin trace function. More... | |
void | CsmaPhyTxEndTrace (std::string context, Ptr< const Packet > p) |
CSMA Phy transmit end trace function. More... | |
void | DequeueTrace (std::string context, Ptr< const Packet >) |
Dequeue trace function. More... | |
void | DevTxTrace (std::string context, Ptr< const Packet > p, Ptr< NetDevice > tx, Ptr< NetDevice > rx, Time txTime, Time rxTime) |
Device transmit trace function. More... | |
void | EnqueueTrace (std::string context, Ptr< const Packet >) |
Enqueue trace function. More... | |
void | GenericWirelessRxTrace (std::string context, Ptr< const Packet > p, ProtocolType protocolType) |
Generic wireless receive trace function. More... | |
void | GenericWirelessTxTrace (std::string context, Ptr< const Packet > p, ProtocolType protocolType) |
Generic wireless transmit trace function. More... | |
uint64_t | GetAnimUidFromPacket (Ptr< const Packet >) |
Get anim UID from packet function. More... | |
const std::vector< std::string > | GetElementsFromContext (const std::string &context) const |
Get elements from context. More... | |
std::string | GetIpv4Address (Ptr< NetDevice > nd) |
Get IPv4 address. More... | |
std::vector< std::string > | GetIpv4Addresses (Ptr< NetDevice > nd) |
Get IPv4 addresses. More... | |
std::string | GetIpv4RoutingTable (Ptr< Node > n) |
Get IPv4 routing table function. More... | |
std::string | GetIpv6Address (Ptr< NetDevice > nd) |
Get IPv6 address. More... | |
std::vector< std::string > | GetIpv6Addresses (Ptr< NetDevice > nd) |
Get IPv6 addresses. More... | |
std::string | GetMacAddress (Ptr< NetDevice > nd) |
Get MAC address function. More... | |
std::vector< Ptr< Node > > | GetMovedNodes () |
Get moved nodes function. More... | |
std::string | GetNetAnimVersion () |
Get netanim version function. More... | |
Ptr< NetDevice > | GetNetDeviceFromContext (std::string context) |
Get net device from context. More... | |
Ptr< Node > | GetNodeFromContext (const std::string &context) const |
Get node from context. More... | |
std::string | GetPacketMetadata (Ptr< const Packet > p) |
Get packet metadata function. More... | |
Vector | GetPosition (Ptr< Node > n) |
Get position function. More... | |
void | Ipv4DropTrace (std::string context, const Ipv4Header &ipv4Header, Ptr< const Packet > p, Ipv4L3Protocol::DropReason dropReason, Ptr< Ipv4 > ipv4, uint32_t interfaceIndex) |
IPv4 drop trace function. More... | |
void | Ipv4RxTrace (std::string context, Ptr< const Packet > p, Ptr< Ipv4 > ipv4, uint32_t interfaceIndex) |
IPv4 receive trace function. More... | |
void | Ipv4TxTrace (std::string context, Ptr< const Packet > p, Ptr< Ipv4 > ipv4, uint32_t interfaceIndex) |
IPv4 transmit trace function. More... | |
bool | IsInTimeWindow () |
Is in time window function. More... | |
bool | IsPacketPending (uint64_t animUid, ProtocolType protocolType) |
Is packet pending function. More... | |
void | LrWpanMacRxDropTrace (std::string context, Ptr< const Packet > p) |
LR-WPAN MAC receive drop trace function. More... | |
void | LrWpanMacRxTrace (std::string context, Ptr< const Packet > p) |
LR-WPAN MAC receive trace function. More... | |
void | LrWpanMacTxDropTrace (std::string context, Ptr< const Packet > p) |
LR-WPAN MAC transmit drop trace function. More... | |
void | LrWpanMacTxTrace (std::string context, Ptr< const Packet > p) |
LR-WPAN MAC transmit trace function. More... | |
void | LrWpanPhyRxBeginTrace (std::string context, Ptr< const Packet > p) |
LR-WPAN Phy receive begin trace function. More... | |
void | LrWpanPhyTxBeginTrace (std::string context, Ptr< const Packet > p) |
LR-WPAN Phy receive begin trace function. More... | |
void | LteRxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &m) |
LTE receive trace function. More... | |
void | LteSpectrumPhyRxStart (std::string context, Ptr< const PacketBurst > pb) |
LTE Spectrum Phy receive start function. More... | |
void | LteSpectrumPhyTxStart (std::string context, Ptr< const PacketBurst > pb) |
LTE Spectrum Phy transmit start function. More... | |
void | LteTxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &m) |
LTE transmit trace function. More... | |
void | MobilityAutoCheck () |
Mobility auto check function. More... | |
void | MobilityCourseChangeTrace (Ptr< const MobilityModel > mob) |
Mobility course change trace function. More... | |
bool | NodeHasMoved (Ptr< Node > n, Vector newLocation) |
Node has moved function. More... | |
void | OutputCsmaPacket (Ptr< const Packet > p, AnimPacketInfo &pktInfo) |
Output CSMA packet function. More... | |
void | OutputWirelessPacketRxInfo (Ptr< const Packet > p, AnimPacketInfo &pktInfo, uint64_t animUid) |
Output wireless packet receive info. More... | |
void | OutputWirelessPacketTxInfo (Ptr< const Packet > p, AnimPacketInfo &pktInfo, uint64_t animUid) |
Output wireless packet transmit info. More... | |
AnimUidPacketInfoMap * | ProtocolTypeToPendingPackets (ProtocolType protocolType) |
Protocol type to pending packets function. More... | |
std::string | ProtocolTypeToString (ProtocolType protocolType) |
Protocol type to string function. More... | |
void | PurgePendingPackets (ProtocolType protocolType) |
Purge pending packets function. More... | |
void | QueueDropTrace (std::string context, Ptr< const Packet >) |
Queue trace function. More... | |
void | RecursiveIpv4RoutePathSearch (std::string from, std::string to, Ipv4RoutePathElements &rpElements) |
Recursive IPv4 route path search function. More... | |
void | RemainingEnergyTrace (std::string context, double previousEnergy, double currentEnergy) |
Remaining energy trace function. More... | |
void | SetOutputFile (const std::string &fn, bool routing=false) |
Set output file function. More... | |
void | StartAnimation (bool restart=false) |
Start animation function. More... | |
void | StopAnimation (bool onlyAnimation=false) |
Stop animation function. More... | |
void | TrackIpv4L3ProtocolCounters () |
Track IPv4 L3 protocol counters function. More... | |
void | TrackIpv4Route () |
Track IPv4 router function. More... | |
void | TrackIpv4RoutePaths () |
Track IPv4 route paths function. More... | |
void | TrackQueueCounters () |
Track queue counters function. More... | |
void | TrackWifiMacCounters () |
Track wifi MAC counters function. More... | |
void | TrackWifiPhyCounters () |
Track wifi phy counters function. More... | |
void | UanPhyGenRxTrace (std::string context, Ptr< const Packet >) |
UAN Phy gen receive trace function. More... | |
void | UanPhyGenTxTrace (std::string context, Ptr< const Packet >) |
UAN Phy gen transmit trace function. More... | |
Vector | UpdatePosition (Ptr< NetDevice > ndev) |
Update position function. More... | |
Vector | UpdatePosition (Ptr< Node > n) |
Update position function. More... | |
Vector | UpdatePosition (Ptr< Node > n, Vector v) |
Update position function. More... | |
void | WifiMacRxDropTrace (std::string context, Ptr< const Packet > p) |
wifi MAC receive drop trace function More... | |
void | WifiMacRxTrace (std::string context, Ptr< const Packet > p) |
wifi MAC receive trace function More... | |
void | WifiMacTxDropTrace (std::string context, Ptr< const Packet > p) |
wifi MAC transmit drop trace function More... | |
void | WifiMacTxTrace (std::string context, Ptr< const Packet > p) |
wifi MAC transmit trace function More... | |
void | WifiPhyRxBeginTrace (std::string context, Ptr< const Packet > p, RxPowerWattPerChannelBand rxPowersW) |
wifi Phy receive begin trace function More... | |
void | WifiPhyRxDropTrace (std::string context, Ptr< const Packet > p, WifiPhyRxfailureReason reason) |
wifi Phy receive drop trace function More... | |
void | WifiPhyTxBeginTrace (std::string context, WifiConstPsduMap psduMap, WifiTxVector txVector, double txPowerW) |
wifi Phy transmit PSDU begin trace function More... | |
void | WifiPhyTxDropTrace (std::string context, Ptr< const Packet > p) |
wifi Phy transmit drop trace function More... | |
void | WimaxRxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &m) |
WIMax receive trace function. More... | |
void | WimaxTxTrace (std::string context, Ptr< const Packet > p, const Mac48Address &m) |
WIMax transmit trace function. More... | |
void | WriteIpv4Addresses () |
Write IPv4 Addresses function. More... | |
void | WriteIpv6Addresses () |
Write IPv6 Addresses function. More... | |
void | WriteLinkProperties () |
Write link properties function. More... | |
int | WriteN (const char *data, uint32_t count, FILE *f) |
WriteN function. More... | |
int | WriteN (const std::string &st, FILE *f) |
WriteN function. More... | |
void | WriteNodeColors () |
Write node colors function. More... | |
void | WriteNodeEnergies () |
Write node energies function. More... | |
void | WriteNodes () |
Write nodes function. More... | |
void | WriteNodeSizes () |
Write node sizes function. More... | |
void | WriteNodeUpdate (uint32_t nodeId) |
Write node update function. More... | |
void | WriteNonP2pLinkProperties (uint32_t id, std::string ipv4Address, std::string channelType) |
Write non P2P link properties function. More... | |
void | WriteRoutePath (uint32_t nodeId, std::string destination, Ipv4RoutePathElements rpElements) |
Write route path function. More... | |
void | WriteXmlAddNodeCounter (uint32_t counterId, std::string counterName, CounterType counterType) |
Write XML add node counter function. More... | |
void | WriteXmlAddResource (uint32_t resourceId, std::string resourcePath) |
Write XML add resource function. More... | |
void | WriteXmlAnim (bool routing=false) |
Write XML anim function. More... | |
void | WriteXmlClose (std::string name, bool routing=false) |
Write XML close function. More... | |
void | WriteXmlIpv4Addresses (uint32_t nodeId, std::vector< std::string > ipv4Addresses) |
Write XML Ipv4 addresses function. More... | |
void | WriteXmlIpv6Addresses (uint32_t nodeId, std::vector< std::string > ipv6Addresses) |
Write XML Ipv6 addresses function. More... | |
void | WriteXmlLink (uint32_t fromId, uint32_t toLp, uint32_t toId) |
Write XML link counter function. More... | |
void | WriteXmlNode (uint32_t id, uint32_t sysId, double locX, double locY) |
Write XML node function. More... | |
void | WriteXmlNonP2pLinkProperties (uint32_t id, std::string ipAddress, std::string channelType) |
Write XML non P2P link properties function. More... | |
void | WriteXmlP (std::string pktType, uint32_t fId, double fbTx, double lbTx, uint32_t tId, double fbRx, double lbRx, std::string metaInfo="") |
Write XMLP function. More... | |
void | WriteXmlP (uint64_t animUid, std::string pktType, uint32_t fId, double fbTx, double lbTx) |
Write XMLP function. More... | |
void | WriteXmlPRef (uint64_t animUid, uint32_t fId, double fbTx, std::string metaInfo="") |
Write XMLP Ref function. More... | |
void | WriteXmlRouting (uint32_t id, std::string routingInfo) |
Write XML routing function. More... | |
void | WriteXmlRp (uint32_t nodeId, std::string destination, Ipv4RoutePathElements rpElements) |
Write XMLRP function. More... | |
void | WriteXmlUpdateBackground (std::string fileName, double x, double y, double scaleX, double scaleY, double opacity) |
Write XML update background function. More... | |
void | WriteXmlUpdateLink (uint32_t fromId, uint32_t toId, std::string linkDescription) |
Write XML update link counter function. More... | |
void | WriteXmlUpdateNodeColor (uint32_t nodeId, uint8_t r, uint8_t g, uint8_t b) |
Write XML update node color function. More... | |
void | WriteXmlUpdateNodeCounter (uint32_t counterId, uint32_t nodeId, double value) |
Write XML update node counter function. More... | |
void | WriteXmlUpdateNodeDescription (uint32_t nodeId) |
Write XML update node description function. More... | |
void | WriteXmlUpdateNodeImage (uint32_t nodeId, uint32_t resourceId) |
Write XML update node image function. More... | |
void | WriteXmlUpdateNodePosition (uint32_t nodeId, double x, double y) |
Write XML update node position function. More... | |
void | WriteXmlUpdateNodeSize (uint32_t nodeId, double width, double height) |
Write XML update node size function. More... | |
Static Private Attributes | |
static Rectangle * | userBoundary |
user boundary More... | |
Interface to network animator.
Provides functions that facilitate communications with an external or internal network animator.
Definition at line 87 of file animation-interface.h.
|
private |
AnimUidPacketInfoMap typedef.
Definition at line 562 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 111 of file animation-interface.h.
|
private |
EnergyFractionMap typedef.
Definition at line 563 of file animation-interface.h.
|
private |
Ipv4RoutePathElements typedef.
Definition at line 565 of file animation-interface.h.
|
private |
LinkPropertiesMap typedef.
Definition at line 558 of file animation-interface.h.
|
private |
NodeColorsMap typedef.
Definition at line 560 of file animation-interface.h.
|
private |
NodeCounterMap64 typedef.
Definition at line 572 of file animation-interface.h.
|
private |
NodeDescriptionsMap typedef.
Definition at line 559 of file animation-interface.h.
|
private |
NodeIdIpv4Map typedef.
Definition at line 566 of file animation-interface.h.
|
private |
NodeIdIpv4Pair typedef.
Definition at line 568 of file animation-interface.h.
|
private |
NodeIdIpv6Map typedef.
Definition at line 567 of file animation-interface.h.
|
private |
NodeIdIpv6Pair typedef.
Definition at line 569 of file animation-interface.h.
Counter Types.
Enumerator | |
---|---|
UINT32_COUNTER | |
DOUBLE_COUNTER |
Definition at line 100 of file animation-interface.h.
|
private |
ProtocolType enumeration.
Enumerator | |
---|---|
UAN | |
LTE | |
WIFI | |
WIMAX | |
CSMA | |
LRWPAN |
Definition at line 540 of file animation-interface.h.
ns3::AnimationInterface::AnimationInterface | ( | const std::string | filename | ) |
Constructor.
filename | The Filename for the trace file used by the Animator |
Definition at line 76 of file animation-interface.cc.
References ns3::initialized, and StartAnimation().
ns3::AnimationInterface::~AnimationInterface | ( | ) |
Destructor for the animator interface.
Definition at line 120 of file animation-interface.cc.
References StopAnimation().
Add byte tag function.
animUid | the UID |
p | the packet |
Definition at line 665 of file animation-interface.cc.
References ns3::Packet::AddByteTag(), and ns3::AnimByteTag::Set().
Referenced by CsmaPhyTxBeginTrace(), GenericWirelessTxTrace(), LrWpanPhyTxBeginTrace(), LteSpectrumPhyTxStart(), and WifiPhyTxBeginTrace().
uint32_t ns3::AnimationInterface::AddNodeCounter | ( | std::string | counterName, |
CounterType | counterType | ||
) |
Setup a node counter.
counterName | A string to identify the counter |
counterType | The type of the counter, such as uint32, double etc |
Definition at line 267 of file animation-interface.cc.
References m_nodeCounters, and WriteXmlAddNodeCounter().
Referenced by EnableIpv4L3ProtocolCounters(), EnableQueueCounters(), EnableWifiMacCounters(), EnableWifiPhyCounters(), and WriteNodeEnergies().
|
private |
Add pending packet function.
protocolType | the protocol type |
animUid | the UID |
pktInfo | the packet info |
Definition at line 1300 of file animation-interface.cc.
References NS_ASSERT, and ProtocolTypeToPendingPackets().
Referenced by CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), GenericWirelessTxTrace(), LrWpanPhyTxBeginTrace(), LteSpectrumPhyTxStart(), WifiPhyRxBeginTrace(), and WifiPhyTxBeginTrace().
uint32_t ns3::AnimationInterface::AddResource | ( | std::string | resourcePath | ) |
Add a resource such as the path to an image file.
resourcePath | Absolute Path to an image/resource |
Definition at line 276 of file animation-interface.cc.
References m_resources, and WriteXmlAddResource().
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 241 of file animation-interface.cc.
References m_ipv4RouteTrackElements.
|
private |
Add to IPv4 address node ID table function.
ipv4Address | the IPv4 address |
nodeId | the node ID |
Definition at line 1493 of file animation-interface.cc.
References m_ipv4ToNodeIdMap, and m_nodeIdIpv4Map.
Referenced by AddToIpv4AddressNodeIdTable(), and WriteLinkProperties().
|
private |
Add to IPv4 address node ID table function.
ipv4Addresses | the list of IPv4 addresses |
nodeId | the node ID |
Definition at line 1500 of file animation-interface.cc.
References AddToIpv4AddressNodeIdTable().
|
private |
Add to IPv6 address node ID table function.
ipv6Address | the IPv6 address |
nodeId | the node ID |
Definition at line 1510 of file animation-interface.cc.
References m_ipv6ToNodeIdMap, and m_nodeIdIpv6Map.
Referenced by AddToIpv6AddressNodeIdTable(), and WriteLinkProperties().
|
private |
Add to IPv6 address node ID table function.
ipv6Addresses | the list of IPv6 addresses |
nodeId | the node ID |
Definition at line 1517 of file animation-interface.cc.
References AddToIpv6AddressNodeIdTable().
|
private |
Check maximum packets per trace file function.
Definition at line 2113 of file animation-interface.cc.
References m_currentPktCount, m_maxPktsPerFile, NS_LOG_UNCOND, and StopAnimation().
Referenced by DevTxTrace(), OutputCsmaPacket(), OutputWirelessPacketRxInfo(), and OutputWirelessPacketTxInfo().
|
private |
Connect callbacks function.
Definition at line 1616 of file animation-interface.cc.
References ns3::Config::ConnectFailSafe(), ConnectLte(), ns3::Config::ConnectWithoutContextFailSafe(), CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), DequeueTrace(), DevTxTrace(), EnqueueTrace(), Ipv4DropTrace(), Ipv4RxTrace(), Ipv4TxTrace(), LrWpanMacRxDropTrace(), LrWpanMacRxTrace(), LrWpanMacTxDropTrace(), LrWpanMacTxTrace(), LrWpanPhyRxBeginTrace(), LrWpanPhyTxBeginTrace(), LteRxTrace(), LteTxTrace(), ns3::MakeCallback(), MobilityCourseChangeTrace(), QueueDropTrace(), RemainingEnergyTrace(), UanPhyGenRxTrace(), UanPhyGenTxTrace(), WifiMacRxDropTrace(), WifiMacRxTrace(), WifiMacTxDropTrace(), WifiMacTxTrace(), WifiPhyRxBeginTrace(), WifiPhyRxDropTrace(), WifiPhyTxBeginTrace(), WifiPhyTxDropTrace(), WimaxRxTrace(), and WimaxTxTrace().
Referenced by StartAnimation().
|
private |
Connect LTE function.
Definition at line 1586 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 |
Connect LTE ENB function.
n | the node |
nd | the device |
devIndex | the device index |
Definition at line 1528 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::LteEnbNetDevice::GetPhy(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), and ns3::MakeCallback().
Referenced by ConnectLte().
|
private |
Connect LTE ue function.
n | the node |
nd | the device |
devIndex | the device index |
Definition at line 1557 of file animation-interface.cc.
References ns3::Node::GetId(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), and ns3::MakeCallback().
Referenced by ConnectLte().
|
private |
Counter type to string function.
counterType | the counter type |
Definition at line 1413 of file animation-interface.cc.
References DOUBLE_COUNTER, and UINT32_COUNTER.
Referenced by WriteXmlAddNodeCounter().
CSMA MAC receive trace function.
context | the context |
p | the packet |
Definition at line 1232 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, CSMA, GetAnimUidFromPacket(), GetNetDeviceFromContext(), IsPacketPending(), m_pendingCsmaPackets, NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, and OutputCsmaPacket().
Referenced by ConnectCallbacks().
|
private |
CSMA Phy receive end trace function.
context | the context |
p | the packet |
Definition at line 1210 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, CSMA, GetAnimUidFromPacket(), GetNetDeviceFromContext(), IsPacketPending(), m_pendingCsmaPackets, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, OutputCsmaPacket(), ns3::AnimationInterface::AnimPacketInfo::ProcessRxBegin(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
CSMA Phy transmit begin trace function.
context | the context |
p | the packet |
Definition at line 1171 of file animation-interface.cc.
References AddByteTag(), AddPendingPacket(), CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, CSMA, gAnimUid, GetNetDeviceFromContext(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
CSMA Phy transmit end trace function.
context | the context |
p | the packet |
Definition at line 1187 of file animation-interface.cc.
References AddPendingPacket(), CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, CSMA, GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::Time::GetSeconds(), IsPacketPending(), ns3::AnimationInterface::AnimPacketInfo::m_lbTx, m_pendingCsmaPackets, ns3::Simulator::Now(), NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, and UpdatePosition().
Referenced by ConnectCallbacks().
Dequeue trace function.
context | the context |
p | the packet |
Definition at line 807 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeQueueDequeue.
Referenced by ConnectCallbacks().
|
private |
Device transmit trace function.
context | the context |
p | the packet |
tx | the transmit device |
rx | the receive device |
txTime | the transmit time |
rxTime | the receive time |
Definition at line 821 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, CheckMaxPktsPerTraceFile(), GetPacketMetadata(), ns3::Time::GetSeconds(), m_enablePacketMetadata, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, and WriteXmlP().
Referenced by ConnectCallbacks().
void ns3::AnimationInterface::EnableIpv4L3ProtocolCounters | ( | Time | startTime, |
Time | stopTime, | ||
Time | pollInterval = Seconds(1) |
||
) |
Enable tracking of Ipv4 L3 Protocol Counters such as Tx, Rx, Drop.
startTime | Start Time for capturing values |
stopTime | Stop Time for capturing values |
pollInterval | The periodic interval at which the counters are written to the trace file Default: 1s |
Definition at line 195 of file animation-interface.cc.
References AddNodeCounter(), ns3::NodeList::Begin(), DOUBLE_COUNTER, ns3::NodeList::End(), ns3::Node::GetId(), m_ipv4L3ProtocolCountersPollInterval, m_ipv4L3ProtocolCountersStopTime, m_ipv4L3ProtocolDropCounterId, m_ipv4L3ProtocolRxCounterId, m_ipv4L3ProtocolTxCounterId, m_nodeIpv4Drop, m_nodeIpv4Rx, m_nodeIpv4Tx, ns3::Simulator::Schedule(), stopTime, TrackIpv4L3ProtocolCounters(), and UpdateNodeCounter().
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 230 of file animation-interface.cc.
References EnableIpv4RouteTracking(), m_routingNc, and stopTime.
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 216 of file animation-interface.cc.
References m_routingPollInterval, m_routingStopTime, ns3::Simulator::Schedule(), SetOutputFile(), stopTime, TrackIpv4Route(), and WriteXmlAnim().
Referenced by EnableIpv4RouteTracking().
void ns3::AnimationInterface::EnablePacketMetadata | ( | bool | enable = true | ) |
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 285 of file animation-interface.cc.
References ns3::Packet::EnablePrinting(), and m_enablePacketMetadata.
void ns3::AnimationInterface::EnableQueueCounters | ( | Time | startTime, |
Time | stopTime, | ||
Time | pollInterval = Seconds(1) |
||
) |
Enable tracking of Queue Counters such as Enqueue, Dequeue, Queue Drops.
startTime | Start Time for capturing values |
stopTime | Stop Time for capturing values |
pollInterval | The periodic interval at which the counters are written to the trace file Default: 1s |
Definition at line 174 of file animation-interface.cc.
References AddNodeCounter(), ns3::NodeList::Begin(), DOUBLE_COUNTER, ns3::NodeList::End(), ns3::Node::GetId(), m_nodeQueueDequeue, m_nodeQueueDrop, m_nodeQueueEnqueue, m_queueCountersPollInterval, m_queueCountersStopTime, m_queueDequeueCounterId, m_queueDropCounterId, m_queueEnqueueCounterId, ns3::Simulator::Schedule(), stopTime, TrackQueueCounters(), and UpdateNodeCounter().
void ns3::AnimationInterface::EnableWifiMacCounters | ( | Time | startTime, |
Time | stopTime, | ||
Time | pollInterval = Seconds(1) |
||
) |
Enable tracking of Wifi Mac Counters such as Tx, TxDrop, Rx, RxDrop.
startTime | Start Time for capturing values |
stopTime | Stop Time for capturing values |
pollInterval | The periodic interval at which the counters are written to the trace file Default: 1s |
Definition at line 150 of file animation-interface.cc.
References AddNodeCounter(), ns3::NodeList::Begin(), DOUBLE_COUNTER, ns3::NodeList::End(), ns3::Node::GetId(), m_nodeWifiMacRx, m_nodeWifiMacRxDrop, m_nodeWifiMacTx, m_nodeWifiMacTxDrop, m_wifiMacCountersPollInterval, m_wifiMacCountersStopTime, m_wifiMacRxCounterId, m_wifiMacRxDropCounterId, m_wifiMacTxCounterId, m_wifiMacTxDropCounterId, ns3::Simulator::Schedule(), stopTime, TrackWifiMacCounters(), and UpdateNodeCounter().
void ns3::AnimationInterface::EnableWifiPhyCounters | ( | Time | startTime, |
Time | stopTime, | ||
Time | pollInterval = Seconds(1) |
||
) |
Enable tracking of Wifi Phy Counters such as TxDrop, RxDrop.
startTime | Start Time for capturing values |
stopTime | Stop Time for capturing values |
pollInterval | The periodic interval at which the counters are written to the trace file Default: 1s |
Definition at line 132 of file animation-interface.cc.
References AddNodeCounter(), ns3::NodeList::Begin(), DOUBLE_COUNTER, ns3::NodeList::End(), ns3::Node::GetId(), m_nodeWifiPhyRxDrop, m_nodeWifiPhyTxDrop, m_wifiPhyCountersPollInterval, m_wifiPhyCountersStopTime, m_wifiPhyRxDropCounterId, m_wifiPhyTxDropCounterId, ns3::Simulator::Schedule(), stopTime, TrackWifiPhyCounters(), and UpdateNodeCounter().
Enqueue trace function.
context | the context |
p | the packet |
Definition at line 800 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeQueueEnqueue.
Referenced by ConnectCallbacks().
|
private |
Generic wireless receive trace function.
context | the context |
p | the packet |
protocolType | the protocol type |
Definition at line 882 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, GetAnimUidFromPacket(), GetNetDeviceFromContext(), IsPacketPending(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacketRxInfo(), ProtocolTypeToPendingPackets(), ProtocolTypeToString(), and UpdatePosition().
Referenced by LteRxTrace(), UanPhyGenRxTrace(), and WimaxRxTrace().
|
private |
Generic wireless transmit trace function.
context | the context |
p | the packet |
protocolType | the protocol type |
Definition at line 849 of file animation-interface.cc.
References AddByteTag(), AddPendingPacket(), CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, gAnimUid, ns3::WifiMac::GetAddress(), ns3::Node::GetId(), ns3::WifiNetDevice::GetMac(), GetNetDeviceFromContext(), ns3::WifiNetDevice::GetNode(), m_macToNodeIdMap, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, OutputWirelessPacketTxInfo(), ProtocolTypeToPendingPackets(), ProtocolTypeToString(), and UpdatePosition().
Referenced by LteTxTrace(), UanPhyGenTxTrace(), and WimaxTxTrace().
Get anim UID from packet function.
p | the packet |
Definition at line 639 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(), GenericWirelessRxTrace(), LrWpanPhyRxBeginTrace(), LteSpectrumPhyRxStart(), and WifiPhyRxBeginTrace().
|
private |
Get elements from context.
context | the context string |
Definition at line 596 of file animation-interface.cc.
Referenced by GetNetDeviceFromContext(), and GetNodeFromContext().
Get IPv4 address.
nd | the device |
Definition at line 1778 of file animation-interface.cc.
References ns3::Ipv4InterfaceAddress::GetLocal(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), nsclick-simple-lan::ipv4, and NS_LOG_WARN.
Referenced by WriteLinkProperties().
Get IPv4 addresses.
nd | the device |
Definition at line 1835 of file animation-interface.cc.
References ns3::Ipv4InterfaceAddress::GetLocal(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), nsclick-simple-lan::ipv4, and NS_LOG_WARN.
Referenced by WriteLinkProperties().
Get IPv4 routing table function.
n | the node |
Definition at line 2312 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::Object::GetObject(), nsclick-simple-lan::ipv4, NS_ASSERT, and NS_LOG_WARN.
Referenced by TrackIpv4Route().
Get IPv6 address.
nd | the device |
Definition at line 1799 of file animation-interface.cc.
References ns3::Ipv6InterfaceAddress::GetAddress(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), ns3::Ipv6Address::IsLinkLocal(), and NS_LOG_WARN.
Referenced by WriteLinkProperties().
Get IPv6 addresses.
nd | the device |
Definition at line 1861 of file animation-interface.cc.
References ns3::Ipv6InterfaceAddress::GetAddress(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), and NS_LOG_WARN.
Referenced by WriteLinkProperties().
Get MAC address function.
nd | the device |
Definition at line 1769 of file animation-interface.cc.
Referenced by WriteLinkProperties().
Get moved nodes function.
Definition at line 500 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Object::GetObject(), GetPosition(), third::mobility, NodeHasMoved(), NS_ASSERT, and UpdatePosition().
Referenced by MobilityAutoCheck().
|
private |
Get netanim version function.
Definition at line 2126 of file animation-interface.cc.
References NETANIM_VERSION.
Referenced by WriteXmlAnim().
Get net device from context.
context | the context string |
Definition at line 626 of file animation-interface.cc.
References ns3::Node::GetDevice(), GetElementsFromContext(), and GetNodeFromContext().
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), GenericWirelessRxTrace(), GenericWirelessTxTrace(), LrWpanPhyRxBeginTrace(), LrWpanPhyTxBeginTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), WifiPhyRxBeginTrace(), and WifiPhyTxBeginTrace().
Get node's energy fraction (This used only for testing)
node |
Definition at line 441 of file animation-interface.cc.
References m_nodeEnergyFraction, and NS_ASSERT.
Referenced by AnimationRemainingEnergyTestCase::CheckLogic().
|
private |
Get node from context.
context | the context string |
Definition at line 613 of file animation-interface.cc.
References GetElementsFromContext(), ns3::NodeList::GetNode(), and NS_ASSERT.
Referenced by DequeueTrace(), EnqueueTrace(), GetNetDeviceFromContext(), Ipv4DropTrace(), Ipv4RxTrace(), Ipv4TxTrace(), LrWpanMacRxDropTrace(), LrWpanMacRxTrace(), LrWpanMacTxDropTrace(), LrWpanMacTxTrace(), QueueDropTrace(), RemainingEnergyTrace(), WifiMacRxDropTrace(), WifiMacRxTrace(), WifiMacTxDropTrace(), WifiMacTxTrace(), WifiPhyRxDropTrace(), and WifiPhyTxDropTrace().
Get packet metadata function.
p | the packet |
Definition at line 1433 of file animation-interface.cc.
References ns3::Packet::Print().
Referenced by DevTxTrace(), OutputCsmaPacket(), and OutputWirelessPacketTxInfo().
Get position function.
n | the node |
Definition at line 1759 of file animation-interface.cc.
References ns3::Node::GetId(), m_nodeLocation, and NS_FATAL_ERROR.
Referenced by GetMovedNodes(), MobilityAutoCheck(), MobilityCourseChangeTrace(), and NodeHasMoved().
uint64_t ns3::AnimationInterface::GetTracePktCount | ( | ) | const |
Get trace file packet count (This used only for testing)
Definition at line 1441 of file animation-interface.cc.
References m_currentPktCount.
Referenced by AnimationInterfaceTestCase::CheckLogic().
|
private |
IPv4 drop trace function.
context | the context |
ipv4Header | the IPv4 header |
p | the packet |
dropReason | the reason for the drop |
ipv4 | the IP |
interfaceIndex | the interface index |
Definition at line 788 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeIpv4Drop.
Referenced by ConnectCallbacks().
|
private |
IPv4 receive trace function.
context | the context |
p | the packet |
ipv4 | the IP |
interfaceIndex | the interface index |
Definition at line 778 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeIpv4Rx.
Referenced by ConnectCallbacks().
|
private |
IPv4 transmit trace function.
context | the context |
p | the packet |
ipv4 | the IP |
interfaceIndex | the interface index |
Definition at line 768 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeIpv4Tx.
Referenced by ConnectCallbacks().
|
static |
Check if AnimationInterface is initialized.
Definition at line 295 of file animation-interface.cc.
References ns3::initialized.
|
private |
Is in time window function.
Definition at line 2074 of file animation-interface.cc.
References m_startTime, m_stopTime, and ns3::Simulator::Now().
|
private |
Is packet pending function.
animUid | the UID |
protocolType | the protocol type |
Definition at line 1310 of file animation-interface.cc.
References NS_ASSERT, and ProtocolTypeToPendingPackets().
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxEndTrace(), GenericWirelessRxTrace(), LrWpanPhyRxBeginTrace(), LteSpectrumPhyRxStart(), and WifiPhyRxBeginTrace().
bool ns3::AnimationInterface::IsStarted | ( | ) | const |
Is AnimationInterface started.
Definition at line 301 of file animation-interface.cc.
References m_started.
|
private |
LR-WPAN MAC receive drop trace function.
context | the context |
p | the packet |
Definition at line 761 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeLrWpanMacRxDrop.
Referenced by ConnectCallbacks().
|
private |
LR-WPAN MAC receive trace function.
context | the context |
p | the packet |
Definition at line 754 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeLrWpanMacRx.
Referenced by ConnectCallbacks().
|
private |
LR-WPAN MAC transmit drop trace function.
context | the context |
p | the packet |
Definition at line 747 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeLrWpanMacTxDrop.
Referenced by ConnectCallbacks().
|
private |
LR-WPAN MAC transmit trace function.
context | the context |
p | the packet |
Definition at line 740 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeLrWpanMacTx.
Referenced by ConnectCallbacks().
|
private |
LR-WPAN Phy receive begin trace function.
context | the context |
p | the packet |
Definition at line 1055 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, ns3::Packet::FindFirstMatchingByteTag(), GetAnimUidFromPacket(), GetNetDeviceFromContext(), IsPacketPending(), LRWPAN, m_pendingLrWpanPackets, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacketRxInfo(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
LR-WPAN Phy receive begin trace function.
context | the context |
p | the packet |
Definition at line 1004 of file animation-interface.cc.
References AddByteTag(), AddPendingPacket(), CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, gAnimUid, ns3::Node::GetId(), ns3::LrWpanNetDevice::GetMac(), GetNetDeviceFromContext(), ns3::LrWpanMacHeader::GetSrcAddrMode(), LRWPAN, m_macToNodeIdMap, m_pendingLrWpanPackets, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacketTxInfo(), ns3::Packet::PeekHeader(), and UpdatePosition().
Referenced by ConnectCallbacks().
|
private |
LTE receive trace function.
context | the context |
p | the packet |
m | the MAC address |
Definition at line 1104 of file animation-interface.cc.
References GenericWirelessRxTrace(), LTE, and NS_LOG_FUNCTION.
Referenced by ConnectCallbacks().
|
private |
LTE Spectrum Phy receive start function.
context | the context |
pb | the packet burst |
Definition at line 1139 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, gAnimUid, GetAnimUidFromPacket(), GetNetDeviceFromContext(), IsPacketPending(), LTE, m_pendingLtePackets, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacketRxInfo(), ns3::AnimationInterface::AnimPacketInfo::ProcessRxBegin(), and UpdatePosition().
Referenced by ConnectLteEnb(), and ConnectLteUe().
|
private |
LTE Spectrum Phy transmit start function.
context | the context |
pb | the packet burst |
Definition at line 1111 of file animation-interface.cc.
References AddByteTag(), AddPendingPacket(), CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, gAnimUid, GetNetDeviceFromContext(), LTE, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacketTxInfo(), and UpdatePosition().
Referenced by ConnectLteEnb(), and ConnectLteUe().
|
private |
LTE transmit trace function.
context | the context |
p | the packet |
m | the MAC address |
Definition at line 1097 of file animation-interface.cc.
References GenericWirelessTxTrace(), LTE, and NS_LOG_FUNCTION.
Referenced by ConnectCallbacks().
|
private |
Mobility auto check function.
Definition at line 477 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW, CSMA, ns3::Node::GetId(), GetMovedNodes(), GetPosition(), ns3::Simulator::IsFinished(), LRWPAN, LTE, m_mobilityPollInterval, NS_ASSERT, PurgePendingPackets(), ns3::Simulator::Schedule(), WIFI, WIMAX, and WriteXmlUpdateNodePosition().
Referenced by StartAnimation().
|
private |
Mobility course change trace function.
mob | the mobility model |
Definition at line 449 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW, ns3::Node::GetId(), GetPosition(), third::mobility, NS_ASSERT, UpdatePosition(), and WriteXmlUpdateNodePosition().
Referenced by ConnectCallbacks().
Node has moved function.
n | the node |
newLocation | the new location vector |
Definition at line 468 of file animation-interface.cc.
References GetPosition().
Referenced by GetMovedNodes().
|
private |
Output CSMA packet function.
p | the packet |
pktInfo | the packet info |
Definition at line 1282 of file animation-interface.cc.
References CheckMaxPktsPerTraceFile(), ns3::Node::GetId(), ns3::NetDevice::GetNode(), GetPacketMetadata(), m_enablePacketMetadata, ns3::AnimationInterface::AnimPacketInfo::m_fbRx, ns3::AnimationInterface::AnimPacketInfo::m_fbTx, ns3::AnimationInterface::AnimPacketInfo::m_lbRx, ns3::AnimationInterface::AnimPacketInfo::m_lbTx, ns3::AnimationInterface::AnimPacketInfo::m_rxnd, ns3::AnimationInterface::AnimPacketInfo::m_txnd, NS_ASSERT, and WriteXmlP().
Referenced by CsmaMacRxTrace(), and CsmaPhyRxEndTrace().
|
private |
Output wireless packet receive info.
p | the packet |
pktInfo | the packet info |
animUid | the UID |
Definition at line 1272 of file animation-interface.cc.
References CheckMaxPktsPerTraceFile(), ns3::Node::GetId(), ns3::NetDevice::GetNode(), ns3::AnimationInterface::AnimPacketInfo::m_fbRx, ns3::AnimationInterface::AnimPacketInfo::m_lbRx, ns3::AnimationInterface::AnimPacketInfo::m_rxnd, and WriteXmlP().
Referenced by GenericWirelessRxTrace(), LrWpanPhyRxBeginTrace(), LteSpectrumPhyRxStart(), and WifiPhyRxBeginTrace().
|
private |
Output wireless packet transmit info.
p | the packet |
pktInfo | the packet info |
animUid | the UID |
Definition at line 1251 of file animation-interface.cc.
References CheckMaxPktsPerTraceFile(), ns3::Node::GetId(), ns3::NetDevice::GetNode(), GetPacketMetadata(), m_enablePacketMetadata, ns3::AnimationInterface::AnimPacketInfo::m_fbTx, ns3::AnimationInterface::AnimPacketInfo::m_txnd, ns3::AnimationInterface::AnimPacketInfo::m_txNodeId, and WriteXmlPRef().
Referenced by GenericWirelessTxTrace(), LrWpanPhyTxBeginTrace(), LteSpectrumPhyTxStart(), and WifiPhyTxBeginTrace().
|
private |
Protocol type to pending packets function.
protocolType | the protocol type |
Definition at line 1343 of file animation-interface.cc.
References CSMA, LRWPAN, LTE, m_pendingCsmaPackets, m_pendingLrWpanPackets, m_pendingLtePackets, m_pendingUanPackets, m_pendingWifiPackets, m_pendingWimaxPackets, UAN, WIFI, and WIMAX.
Referenced by AddPendingPacket(), GenericWirelessRxTrace(), GenericWirelessTxTrace(), IsPacketPending(), PurgePendingPackets(), and WifiPhyTxBeginTrace().
|
private |
Protocol type to string function.
protocolType | the protocol type |
Definition at line 1377 of file animation-interface.cc.
References CSMA, LRWPAN, LTE, UAN, WIFI, and WIMAX.
Referenced by GenericWirelessRxTrace(), and GenericWirelessTxTrace().
|
private |
Purge pending packets function.
protocolType | the protocol type |
Definition at line 1318 of file animation-interface.cc.
References two-ray-to-three-gpp-ch-calibration::delta, ns3::Time::GetSeconds(), ns3::AnimationInterface::AnimPacketInfo::m_fbTx, ns3::Simulator::Now(), NS_ASSERT, ProtocolTypeToPendingPackets(), and PURGE_INTERVAL.
Referenced by MobilityAutoCheck().
Queue trace function.
context | the context |
p | the packet |
Definition at line 814 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeQueueDrop.
Referenced by ConnectCallbacks().
|
private |
Recursive IPv4 route path search function.
from | the source node |
to | the destination node |
rpElements | the IPv4 routing path elements |
Definition at line 2328 of file animation-interface.cc.
References ns3::Socket::ERROR_NOROUTETOHOST, ns3::Node::GetId(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), nsclick-simple-lan::ipv4, m_ipv4ToNodeIdMap, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_INFO, NS_LOG_WARN, and ns3::Ipv4Header::SetDestination().
Referenced by TrackIpv4RoutePaths().
|
private |
Remaining energy trace function.
context | the context |
previousEnergy | The previous energy |
currentEnergy | The current energy |
Definition at line 673 of file animation-interface.cc.
References CHECK_STARTED_INTIMEWINDOW, GetNodeFromContext(), m_nodeEnergyFraction, m_remainingEnergyCounterId, NS_ASSERT, NS_LOG_INFO, and UpdateNodeCounter().
Referenced by ConnectCallbacks().
void ns3::AnimationInterface::ResetAnimWriteCallback | ( | ) |
Reset the write callback function.
Definition at line 313 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 307 of file animation-interface.cc.
References m_writeCallback.
void ns3::AnimationInterface::SetBackgroundImage | ( | std::string | fileName, |
double | x, | ||
double | y, | ||
double | scaleX, | ||
double | scaleY, | ||
double | opacity | ||
) |
Helper function to set the background image.
fileName | File name of the background image |
x | X coordinate of the image |
y | Y coordinate of the image |
scaleX | X scale of the image |
scaleY | Y scale of the image |
opacity | Opacity of the background: A value between 0.0 and 1.0. 0.0 is transparent, 1.0 is opaque |
Definition at line 362 of file animation-interface.cc.
References NS_FATAL_ERROR, WriteXmlUpdateBackground(), and two-ray-to-three-gpp-ch-calibration::x.
|
static |
Helper function to set Constant Position for a given node.
n | Ptr to the node |
x | X coordinate of the node |
y | Y coordinate of the node |
z | Z coordinate of the node |
Definition at line 325 of file animation-interface.cc.
References ns3::Object::AggregateObject(), ns3::Node::GetId(), ns3::Object::GetObject(), NS_ASSERT, NS_LOG_INFO, and two-ray-to-three-gpp-ch-calibration::x.
void ns3::AnimationInterface::SetMaxPktsPerTraceFile | ( | uint64_t | maxPktsPerFile | ) |
Set Max packets per trace file.
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 'maxPktsPerFile' number of packets |
Definition at line 261 of file animation-interface.cc.
References m_maxPktsPerFile.
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 319 of file animation-interface.cc.
References m_mobilityPollInterval.
|
private |
Set output file function.
fn | the file name |
routing |
Definition at line 2080 of file animation-interface.cc.
References f(), m_f, m_outputFileName, m_routingF, m_routingFileName, NS_FATAL_ERROR, and NS_LOG_INFO.
Referenced by EnableIpv4RouteTracking(), and StartAnimation().
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 249 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 255 of file animation-interface.cc.
References m_stopTime.
void ns3::AnimationInterface::SkipPacketTracing | ( | ) |
Do not trace packets.
This helps reduce the trace file size if AnimationInterface is solely used for tracking mobility, routing paths and counters
Definition at line 126 of file animation-interface.cc.
References m_trackPackets.
|
private |
Start animation function.
restart |
Definition at line 1472 of file animation-interface.cc.
References ConnectCallbacks(), m_currentPktCount, m_mobilityPollInterval, m_outputFileName, m_started, MobilityAutoCheck(), ns3::Simulator::Schedule(), SetOutputFile(), WriteIpv4Addresses(), WriteIpv6Addresses(), WriteLinkProperties(), WriteNodeColors(), WriteNodeEnergies(), WriteNodes(), WriteNodeSizes(), and WriteXmlAnim().
Referenced by AnimationInterface().
|
private |
Stop animation function.
onlyAnimation |
Definition at line 1447 of file animation-interface.cc.
References m_f, m_routingF, m_started, NS_LOG_INFO, ResetAnimWriteCallback(), and WriteXmlClose().
Referenced by ~AnimationInterface(), and CheckMaxPktsPerTraceFile().
|
private |
Track IPv4 L3 protocol counters function.
Definition at line 2190 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Node::GetId(), m_ipv4L3ProtocolCountersPollInterval, m_ipv4L3ProtocolCountersStopTime, m_ipv4L3ProtocolDropCounterId, m_ipv4L3ProtocolRxCounterId, m_ipv4L3ProtocolTxCounterId, m_nodeIpv4Drop, m_nodeIpv4Rx, m_nodeIpv4Tx, ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), and UpdateNodeCounter().
Referenced by EnableIpv4L3ProtocolCounters().
|
private |
Track IPv4 router function.
Definition at line 2284 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(), m_routingNc, m_routingPollInterval, m_routingStopTime, ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), TrackIpv4RoutePaths(), and WriteXmlRouting().
Referenced by EnableIpv4RouteTracking().
|
private |
Track IPv4 route paths function.
Definition at line 2212 of file animation-interface.cc.
References ns3::AnimationInterface::Ipv4RouteTrackElement::destination, ns3::AnimationInterface::Ipv4RouteTrackElement::fromNodeId, ns3::NodeList::GetNode(), ns3::Object::GetObject(), nsclick-simple-lan::ipv4, m_ipv4RouteTrackElements, m_ipv4ToNodeIdMap, NS_FATAL_ERROR, NS_LOG_INFO, NS_LOG_WARN, RecursiveIpv4RoutePathSearch(), ns3::Ipv4Header::SetDestination(), and WriteRoutePath().
Referenced by TrackIpv4Route().
|
private |
Track queue counters function.
Definition at line 2132 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Node::GetId(), m_nodeQueueDequeue, m_nodeQueueDrop, m_nodeQueueEnqueue, m_queueCountersPollInterval, m_queueCountersStopTime, m_queueDequeueCounterId, m_queueDropCounterId, m_queueEnqueueCounterId, ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), and UpdateNodeCounter().
Referenced by EnableQueueCounters().
|
private |
Track wifi MAC counters function.
Definition at line 2150 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Node::GetId(), m_nodeWifiMacRx, m_nodeWifiMacRxDrop, m_nodeWifiMacTx, m_nodeWifiMacTxDrop, m_wifiMacCountersPollInterval, m_wifiMacCountersStopTime, m_wifiMacRxCounterId, m_wifiMacRxDropCounterId, m_wifiMacTxCounterId, m_wifiMacTxDropCounterId, ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), and UpdateNodeCounter().
Referenced by EnableWifiMacCounters().
|
private |
Track wifi phy counters function.
Definition at line 2171 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Node::GetId(), m_nodeWifiPhyRxDrop, m_nodeWifiPhyTxDrop, m_wifiPhyCountersPollInterval, m_wifiPhyCountersStopTime, m_wifiPhyRxDropCounterId, m_wifiPhyTxDropCounterId, ns3::Simulator::Now(), NS_LOG_INFO, ns3::Simulator::Schedule(), and UpdateNodeCounter().
Referenced by EnableWifiPhyCounters().
|
private |
UAN Phy gen receive trace function.
context | the context |
p | the packet |
Definition at line 911 of file animation-interface.cc.
References GenericWirelessRxTrace(), NS_LOG_FUNCTION, and UAN.
Referenced by ConnectCallbacks().
|
private |
UAN Phy gen transmit trace function.
context | the context |
p | the packet |
Definition at line 904 of file animation-interface.cc.
References GenericWirelessTxTrace(), NS_LOG_FUNCTION, and UAN.
Referenced by ConnectCallbacks().
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 415 of file animation-interface.cc.
References ns3::Node::GetId(), NS_ASSERT, and WriteXmlUpdateLink().
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 407 of file animation-interface.cc.
References WriteXmlUpdateLink().
Referenced by modify().
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 391 of file animation-interface.cc.
References ns3::Node::GetId().
Referenced by modify(), UpdateAnimation(), and WriteNodeColors().
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 397 of file animation-interface.cc.
References ns3::NodeList::GetNode(), m_nodeColors, NS_ASSERT, NS_LOG_INFO, and WriteXmlUpdateNodeColor().
void ns3::AnimationInterface::UpdateNodeCounter | ( | uint32_t | nodeCounterId, |
uint32_t | nodeId, | ||
double | counter | ||
) |
Helper function to update a node's counter referenced by the nodeCounterId.
nodeCounterId | The counter Id obtained from AddNodeCounter |
nodeId | Node Id of the node |
counter | Current value of the counter |
Definition at line 351 of file animation-interface.cc.
References m_nodeCounters, NS_FATAL_ERROR, and WriteXmlUpdateNodeCounter().
Referenced by EnableIpv4L3ProtocolCounters(), EnableQueueCounters(), EnableWifiMacCounters(), EnableWifiPhyCounters(), modify(), RemainingEnergyTrace(), TrackIpv4L3ProtocolCounters(), TrackQueueCounters(), TrackWifiMacCounters(), TrackWifiPhyCounters(), and WriteNodeEnergies().
Helper function to update the description for a given node.
n | Ptr to the node |
descr | A string to briefly describe the node |
Definition at line 425 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 431 of file animation-interface.cc.
References ns3::NodeList::GetNode(), m_nodeDescriptions, NS_ASSERT, and WriteXmlUpdateNodeDescription().
void ns3::AnimationInterface::UpdateNodeImage | ( | uint32_t | nodeId, |
uint32_t | resourceId | ||
) |
Helper function to update the image of a node.
nodeId | Id of the node |
resourceId | Id of the image resource that was previously added |
Definition at line 340 of file animation-interface.cc.
References m_resources, NS_FATAL_ERROR, NS_LOG_INFO, and WriteXmlUpdateNodeImage().
Referenced by modify().
Helper function to update the size of a node.
n | Ptr to the node |
width | Width of the node |
height | Height of the node |
Definition at line 377 of file animation-interface.cc.
References ns3::Node::GetId().
Referenced by modify(), UpdateAnimation(), and WriteNodeSizes().
void ns3::AnimationInterface::UpdateNodeSize | ( | uint32_t | nodeId, |
double | width, | ||
double | height | ||
) |
Helper function to update the size of a node.
nodeId | Id of the node |
width | Width of the node |
height | Height of the node |
Definition at line 383 of file animation-interface.cc.
References ns3::AnimationInterface::NodeSize::height, m_nodeSizes, ns3::AnimationInterface::NodeSize::width, and WriteXmlUpdateNodeSize().
Update position function.
ndev | the device |
Definition at line 1751 of file animation-interface.cc.
References NS_ASSERT, and UpdatePosition().
Update position function.
n | the node |
Definition at line 1719 of file animation-interface.cc.
References ns3::Node::GetId(), ns3::Object::GetObject(), ns3::MobilityModel::GetPosition(), ns3::UniformRandomVariable::GetValue(), m_nodeLocation, NS_LOG_UNCOND, ns3::ObjectBase::SetAttribute(), and two-ray-to-three-gpp-ch-calibration::x.
Referenced by CsmaPhyRxEndTrace(), CsmaPhyTxBeginTrace(), CsmaPhyTxEndTrace(), GenericWirelessRxTrace(), GenericWirelessTxTrace(), GetMovedNodes(), LrWpanPhyRxBeginTrace(), LrWpanPhyTxBeginTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), MobilityCourseChangeTrace(), UpdatePosition(), WifiPhyRxBeginTrace(), WifiPhyTxBeginTrace(), WriteLinkProperties(), and WriteNodes().
Update position function.
n | the node |
v | the vector |
Definition at line 1744 of file animation-interface.cc.
References ns3::Node::GetId(), and m_nodeLocation.
|
private |
wifi MAC receive drop trace function
context | the context |
p | the packet |
Definition at line 733 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeWifiMacRxDrop.
Referenced by ConnectCallbacks().
wifi MAC receive trace function
context | the context |
p | the packet |
Definition at line 726 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeWifiMacRx.
Referenced by ConnectCallbacks().
|
private |
wifi MAC transmit drop trace function
context | the context |
p | the packet |
Definition at line 719 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeWifiMacTxDrop.
Referenced by ConnectCallbacks().
wifi MAC transmit trace function
context | the context |
p | the packet |
Definition at line 712 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeWifiMacTx.
Referenced by ConnectCallbacks().
|
private |
wifi Phy receive begin trace function
context | the context |
p | the packet |
rxPowersW | the receive power per channel band in Watts |
Definition at line 965 of file animation-interface.cc.
References AddPendingPacket(), CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, ns3::WifiMacHeader::GetAddr2(), GetAnimUidFromPacket(), GetNetDeviceFromContext(), ns3::NodeList::GetNode(), IsPacketPending(), m_macToNodeIdMap, m_pendingWifiPackets, ns3::Simulator::Now(), NS_ASSERT, NS_ASSERT_MSG, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_WARN, OutputWirelessPacketRxInfo(), ns3::Packet::PeekHeader(), UpdatePosition(), and WIFI.
Referenced by ConnectCallbacks().
|
private |
wifi Phy receive drop trace function
context | the context |
p | the packet |
reason | the reason |
Definition at line 703 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeWifiPhyRxDrop.
Referenced by ConnectCallbacks().
|
private |
wifi Phy transmit PSDU begin trace function
context | the context |
psduMap | the PSDU map |
txVector | the TXVECTOR |
txPowerW | the tx power in Watts |
Definition at line 918 of file animation-interface.cc.
References AddByteTag(), AddPendingPacket(), CHECK_STARTED_INTIMEWINDOW_TRACKPACKETS, gAnimUid, ns3::WifiMac::GetAddress(), ns3::Node::GetId(), ns3::WifiNetDevice::GetMac(), GetNetDeviceFromContext(), ns3::WifiNetDevice::GetNode(), m_macToNodeIdMap, ns3::Simulator::Now(), NS_ABORT_MSG, NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, OutputWirelessPacketTxInfo(), ns3::PeekPointer(), ProtocolTypeToPendingPackets(), UpdatePosition(), and WIFI.
Referenced by ConnectCallbacks().
|
private |
wifi Phy transmit drop trace function
context | the context |
p | the packet |
Definition at line 696 of file animation-interface.cc.
References GetNodeFromContext(), and m_nodeWifiPhyTxDrop.
Referenced by ConnectCallbacks().
|
private |
WIMax receive trace function.
context | the context |
p | the packet |
m | the MAC address |
Definition at line 1090 of file animation-interface.cc.
References GenericWirelessRxTrace(), NS_LOG_FUNCTION, and WIMAX.
Referenced by ConnectCallbacks().
|
private |
WIMax transmit trace function.
context | the context |
p | the packet |
m | the MAC address |
Definition at line 1083 of file animation-interface.cc.
References GenericWirelessTxTrace(), NS_LOG_FUNCTION, and WIMAX.
Referenced by ConnectCallbacks().
|
private |
Write IPv4 Addresses function.
Definition at line 1887 of file animation-interface.cc.
References m_nodeIdIpv4Map, and WriteXmlIpv4Addresses().
Referenced by StartAnimation().
|
private |
Write IPv6 Addresses function.
Definition at line 1902 of file animation-interface.cc.
References m_nodeIdIpv6Map, and WriteXmlIpv6Addresses().
Referenced by StartAnimation().
|
private |
Write link properties function.
Definition at line 1918 of file animation-interface.cc.
References AddToIpv4AddressNodeIdTable(), AddToIpv6AddressNodeIdTable(), ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::AnimationInterface::P2pLinkNodeIdPair::fromNode, ns3::Channel::GetDevice(), ns3::Node::GetDevice(), ns3::Node::GetId(), ns3::Object::GetInstanceTypeId(), GetIpv4Address(), GetIpv4Addresses(), GetIpv6Address(), GetIpv6Addresses(), GetMacAddress(), ns3::TypeId::GetName(), ns3::Node::GetNDevices(), ns3::Channel::GetNDevices(), m_linkProperties, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_INFO, ns3::AnimationInterface::P2pLinkNodeIdPair::toNode, UpdatePosition(), WriteNonP2pLinkProperties(), and WriteXmlLink().
Referenced by StartAnimation().
|
private |
WriteN function.
data | the data t write |
count | the number of bytes to write |
f | the file to write to |
Definition at line 545 of file animation-interface.cc.
Referenced by WriteN(), WriteXmlAddNodeCounter(), WriteXmlAddResource(), WriteXmlAnim(), WriteXmlClose(), WriteXmlIpv4Addresses(), WriteXmlIpv6Addresses(), WriteXmlLink(), WriteXmlNode(), WriteXmlNonP2pLinkProperties(), WriteXmlP(), WriteXmlPRef(), WriteXmlRouting(), WriteXmlRp(), WriteXmlUpdateBackground(), WriteXmlUpdateLink(), WriteXmlUpdateNodeColor(), WriteXmlUpdateNodeCounter(), WriteXmlUpdateNodeDescription(), WriteXmlUpdateNodeImage(), WriteXmlUpdateNodePosition(), and WriteXmlUpdateNodeSize().
|
private |
WriteN function.
st | the string to output |
f | the file to write to |
Definition at line 531 of file animation-interface.cc.
References f(), m_writeCallback, and WriteN().
|
private |
Write node colors function.
Definition at line 2031 of file animation-interface.cc.
References ns3::AnimationInterface::Rgb::b, ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::AnimationInterface::Rgb::g, ns3::Node::GetId(), m_nodeColors, ns3::AnimationInterface::Rgb::r, and UpdateNodeColor().
Referenced by StartAnimation().
|
private |
Write node energies function.
Definition at line 2059 of file animation-interface.cc.
References AddNodeCounter(), ns3::NodeList::Begin(), DOUBLE_COUNTER, ns3::NodeList::End(), ns3::Node::GetId(), ns3::NodeList::GetNode(), ns3::Object::GetObject(), m_remainingEnergyCounterId, and UpdateNodeCounter().
Referenced by StartAnimation().
|
private |
Write nodes function.
Definition at line 2019 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Node::GetId(), ns3::Node::GetSystemId(), NS_LOG_INFO, UpdatePosition(), and WriteXmlNode().
Referenced by StartAnimation().
|
private |
Write node sizes function.
Definition at line 2046 of file animation-interface.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Node::GetId(), ns3::AnimationInterface::NodeSize::height, m_nodeSizes, NS_LOG_INFO, UpdateNodeSize(), and ns3::AnimationInterface::NodeSize::width.
Referenced by StartAnimation().
|
private |
Write node update function.
nodeId | the node ID |
|
private |
Write non P2P link properties function.
id | the ID |
ipv4Address | the IP address |
channelType | the channel type |
Definition at line 588 of file animation-interface.cc.
References WriteXmlNonP2pLinkProperties().
Referenced by WriteLinkProperties().
|
private |
Write route path function.
nodeId | the node ID |
destination | the destination |
rpElements | the IPv4 routing path elements |
Definition at line 570 of file animation-interface.cc.
References NS_LOG_INFO, and WriteXmlRp().
Referenced by TrackIpv4RoutePaths().
|
private |
Write XML add node counter function.
counterId | the counter ID |
counterName | the counter name |
counterType | the counter type |
Definition at line 2597 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), CounterTypeToString(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by AddNodeCounter().
|
private |
Write XML add resource function.
resourceId | the resource ID |
resourcePath | the resource path |
Definition at line 2609 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by AddResource().
|
private |
Write XML anim function.
routing | the routing |
Definition at line 2401 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), f(), GetNetAnimVersion(), m_f, m_routingF, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by EnableIpv4RouteTracking(), and StartAnimation().
|
private |
Write XML close function.
name | the name |
routing | true if routing |
Definition at line 2419 of file animation-interface.cc.
References m_f, m_routingF, and WriteN().
Referenced by StopAnimation().
|
private |
Write XML Ipv4 addresses function.
nodeId | the node ID |
ipv4Addresses | the list of Ipv4 addresses |
Definition at line 2484 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), ns3::AnimationInterface::AnimXmlElement::AppendChild(), m_f, ns3::AnimationInterface::AnimXmlElement::SetText(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by WriteIpv4Addresses().
|
private |
Write XML Ipv6 addresses function.
nodeId | the node ID |
ipv6Addresses | the list of Ipv6 addresses |
Definition at line 2498 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), ns3::AnimationInterface::AnimXmlElement::AppendChild(), m_f, ns3::AnimationInterface::AnimXmlElement::SetText(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by WriteIpv6Addresses().
|
private |
Write XML link counter function.
fromId | the from device |
toLp | the to device |
toId | the to ID |
Definition at line 2455 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), ns3::AnimationInterface::LinkProperties::fromNodeDescription, ns3::AnimationInterface::LinkProperties::linkDescription, m_f, m_linkProperties, ns3::AnimationInterface::LinkProperties::toNodeDescription, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by WriteLinkProperties().
|
private |
Write XML node function.
id | the ID |
sysId | the system ID |
locX | the x location |
locY | the y location |
Definition at line 2433 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by WriteNodes().
|
private |
Write XML non P2P link properties function.
id | the ID |
ipAddress | the IP address |
channelType | the channel type |
Definition at line 2711 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by WriteNonP2pLinkProperties().
|
private |
Write XMLP function.
pktType | the packet type |
fId | the FID |
fbTx | the FB transmit |
lbTx | the LB transmit |
tId | the TID |
fbRx | the FB receive |
lbRx | the LB receive |
metaInfo | the meta info |
Definition at line 2573 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by DevTxTrace(), OutputCsmaPacket(), and OutputWirelessPacketRxInfo().
|
private |
Write XMLP function.
animUid | the UID |
pktType | the packet type |
fId | the FID |
fbTx | the FB transmit |
lbTx | the LB transmit |
Definition at line 2558 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
|
private |
Write XMLP Ref function.
animUid | the UID |
fId | the FID |
fbTx | the FB transmit |
metaInfo | the meta info |
Definition at line 2544 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by OutputWirelessPacketTxInfo().
|
private |
Write XML routing function.
id | the ID |
routingInfo | the routing info |
Definition at line 2512 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_routingF, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by TrackIpv4Route().
|
private |
Write XMLRP function.
nodeId | the node ID |
destination | the destination |
rpElements | the route path elements |
Definition at line 2522 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), ns3::AnimationInterface::AnimXmlElement::AppendChild(), m_routingF, ns3::AnimationInterface::Ipv4RoutePathElement::nextHop, ns3::AnimationInterface::Ipv4RoutePathElement::nodeId, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by WriteRoutePath().
|
private |
Write XML update background function.
fileName | the file name |
x | the X value |
y | the Y value |
scaleX | the X scale |
scaleY | the Y scale |
opacity | the opacity |
Definition at line 2693 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::AnimationInterface::AnimXmlElement::ToString(), WriteN(), and two-ray-to-three-gpp-ch-calibration::x.
Referenced by SetBackgroundImage().
|
private |
Write XML update link counter function.
fromId | the from device |
toId | the to device |
linkDescription | the link description |
Definition at line 2444 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by UpdateLinkDescription().
|
private |
Write XML update node color function.
nodeId | the node ID |
r | the red color |
g | the green color |
b | the blue color |
Definition at line 2653 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by UpdateNodeColor().
|
private |
Write XML update node counter function.
counterId | the counter ID |
nodeId | the node ID |
value | the node counter value |
Definition at line 2680 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by UpdateNodeCounter().
|
private |
Write XML update node description function.
nodeId | the node ID |
Definition at line 2666 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, m_nodeDescriptions, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by UpdateNodeDescription().
|
private |
Write XML update node image function.
nodeId | the node ID |
resourceId | the resource ID |
Definition at line 2618 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by UpdateNodeImage().
|
private |
Write XML update node position function.
nodeId | the node ID |
x | the X position |
y | the Y position |
Definition at line 2641 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), WriteN(), and two-ray-to-three-gpp-ch-calibration::x.
Referenced by MobilityAutoCheck(), and MobilityCourseChangeTrace().
|
private |
Write XML update node size function.
nodeId | the node ID |
width | the width |
height | the height |
Definition at line 2629 of file animation-interface.cc.
References ns3::AnimationInterface::AnimXmlElement::AddAttribute(), m_f, ns3::Simulator::Now(), ns3::AnimationInterface::AnimXmlElement::ToString(), and WriteN().
Referenced by UpdateNodeSize().
|
private |
Packet unique identifier used by AnimationInterface.
Definition at line 623 of file animation-interface.h.
Referenced by CsmaPhyTxBeginTrace(), GenericWirelessTxTrace(), LrWpanPhyTxBeginTrace(), LteSpectrumPhyRxStart(), LteSpectrumPhyTxStart(), and WifiPhyTxBeginTrace().
|
private |
current packet count
Definition at line 683 of file animation-interface.h.
Referenced by CheckMaxPktsPerTraceFile(), GetTracePktCount(), and StartAnimation().
|
private |
enable packet metadata
Definition at line 626 of file animation-interface.h.
Referenced by DevTxTrace(), EnablePacketMetadata(), OutputCsmaPacket(), and OutputWirelessPacketTxInfo().
|
private |
File handle for output (0 if none)
Definition at line 619 of file animation-interface.h.
Referenced by SetOutputFile(), StopAnimation(), WriteXmlAddNodeCounter(), WriteXmlAddResource(), WriteXmlAnim(), WriteXmlClose(), WriteXmlIpv4Addresses(), WriteXmlIpv6Addresses(), WriteXmlLink(), WriteXmlNode(), WriteXmlNonP2pLinkProperties(), WriteXmlP(), WriteXmlPRef(), WriteXmlUpdateBackground(), WriteXmlUpdateLink(), WriteXmlUpdateNodeColor(), WriteXmlUpdateNodeCounter(), WriteXmlUpdateNodeDescription(), WriteXmlUpdateNodeImage(), WriteXmlUpdateNodePosition(), and WriteXmlUpdateNodeSize().
|
private |
IPv4 L3 protocol counters poll interval.
Definition at line 636 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), and TrackIpv4L3ProtocolCounters().
|
private |
IPv4 L3 protocol counters stop time.
Definition at line 635 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), and TrackIpv4L3ProtocolCounters().
|
private |
IPv4 protocol drop counter ID.
Definition at line 651 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), and TrackIpv4L3ProtocolCounters().
|
private |
IPv4 L3 protocol receive counter ID.
Definition at line 650 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), and TrackIpv4L3ProtocolCounters().
|
private |
IPv4 L3 protocol transmit counter ID.
Definition at line 649 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), and TrackIpv4L3ProtocolCounters().
|
private |
IPv route track elements.
Definition at line 684 of file animation-interface.h.
Referenced by AddSourceDestination(), and TrackIpv4RoutePaths().
|
private |
IPv4 to node ID map.
Definition at line 674 of file animation-interface.h.
Referenced by AddToIpv4AddressNodeIdTable(), RecursiveIpv4RoutePathSearch(), and TrackIpv4RoutePaths().
|
private |
IPv6 to node ID map.
Definition at line 675 of file animation-interface.h.
Referenced by AddToIpv6AddressNodeIdTable().
|
private |
link properties
Definition at line 681 of file animation-interface.h.
Referenced by WriteLinkProperties(), and WriteXmlLink().
|
private |
MAC to node ID map.
Definition at line 673 of file animation-interface.h.
Referenced by GenericWirelessTxTrace(), LrWpanPhyTxBeginTrace(), WifiPhyRxBeginTrace(), and WifiPhyTxBeginTrace().
|
private |
maximum packets per file
Definition at line 629 of file animation-interface.h.
Referenced by CheckMaxPktsPerTraceFile(), and SetMaxPktsPerTraceFile().
|
private |
mobility poll interval
Definition at line 621 of file animation-interface.h.
Referenced by MobilityAutoCheck(), SetMobilityPollInterval(), and StartAnimation().
|
private |
node colors
Definition at line 679 of file animation-interface.h.
Referenced by UpdateNodeColor(), and WriteNodeColors().
|
private |
node counters
Definition at line 687 of file animation-interface.h.
Referenced by AddNodeCounter(), and UpdateNodeCounter().
|
private |
node description
Definition at line 680 of file animation-interface.h.
Referenced by UpdateNodeDescription(), and WriteXmlUpdateNodeDescription().
|
private |
node energy fraction
Definition at line 682 of file animation-interface.h.
Referenced by GetNodeEnergyFraction(), and RemainingEnergyTrace().
|
private |
node ID to IPv4 map
Definition at line 676 of file animation-interface.h.
Referenced by AddToIpv4AddressNodeIdTable(), and WriteIpv4Addresses().
|
private |
node ID to IPv6 map
Definition at line 677 of file animation-interface.h.
Referenced by AddToIpv6AddressNodeIdTable(), and WriteIpv6Addresses().
|
private |
node IPv4 drop
Definition at line 690 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), Ipv4DropTrace(), and TrackIpv4L3ProtocolCounters().
|
private |
node IPv4 receive
Definition at line 692 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), Ipv4RxTrace(), and TrackIpv4L3ProtocolCounters().
|
private |
node IPv4 transmit
Definition at line 691 of file animation-interface.h.
Referenced by EnableIpv4L3ProtocolCounters(), Ipv4TxTrace(), and TrackIpv4L3ProtocolCounters().
|
private |
node location
Definition at line 672 of file animation-interface.h.
Referenced by GetPosition(), and UpdatePosition().
|
private |
node LR-WPAN MAC receive
Definition at line 704 of file animation-interface.h.
Referenced by LrWpanMacRxTrace().
|
private |
node LR-WPAN MAC receive drop
Definition at line 705 of file animation-interface.h.
Referenced by LrWpanMacRxDropTrace().
|
private |
node LR-WPAN MAC transmit
Definition at line 702 of file animation-interface.h.
Referenced by LrWpanMacTxTrace().
|
private |
node LR-WPAN MAC transmit drop
Definition at line 703 of file animation-interface.h.
Referenced by LrWpanMacTxDropTrace().
|
private |
node queue dequeue
Definition at line 694 of file animation-interface.h.
Referenced by DequeueTrace(), EnableQueueCounters(), and TrackQueueCounters().
|
private |
node queue drop
Definition at line 695 of file animation-interface.h.
Referenced by EnableQueueCounters(), QueueDropTrace(), and TrackQueueCounters().
|
private |
node queue enqueue
Definition at line 693 of file animation-interface.h.
Referenced by EnableQueueCounters(), EnqueueTrace(), and TrackQueueCounters().
|
private |
node sizes
Definition at line 685 of file animation-interface.h.
Referenced by UpdateNodeSize(), and WriteNodeSizes().
|
private |
node wifi MAC receive
Definition at line 698 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), TrackWifiMacCounters(), and WifiMacRxTrace().
|
private |
node wifi MAC receive drop
Definition at line 699 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), TrackWifiMacCounters(), and WifiMacRxDropTrace().
|
private |
node wifi MAC transmit
Definition at line 696 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), TrackWifiMacCounters(), and WifiMacTxTrace().
|
private |
node wifi MAC transmit drop
Definition at line 697 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), TrackWifiMacCounters(), and WifiMacTxDropTrace().
|
private |
node wifi Phy receive drop
Definition at line 701 of file animation-interface.h.
Referenced by EnableWifiPhyCounters(), TrackWifiPhyCounters(), and WifiPhyRxDropTrace().
|
private |
node wifi Phy transmit drop
Definition at line 700 of file animation-interface.h.
Referenced by EnableWifiPhyCounters(), TrackWifiPhyCounters(), and WifiPhyTxDropTrace().
|
private |
original file name
Definition at line 630 of file animation-interface.h.
|
private |
output file name
Definition at line 622 of file animation-interface.h.
Referenced by SetOutputFile(), and StartAnimation().
|
private |
pending CSMA packets
Definition at line 669 of file animation-interface.h.
Referenced by CsmaMacRxTrace(), CsmaPhyRxEndTrace(), CsmaPhyTxEndTrace(), and ProtocolTypeToPendingPackets().
|
private |
pending LR-WPAN packets
Definition at line 667 of file animation-interface.h.
Referenced by LrWpanPhyRxBeginTrace(), LrWpanPhyTxBeginTrace(), and ProtocolTypeToPendingPackets().
|
private |
pending LTE packets
Definition at line 668 of file animation-interface.h.
Referenced by LteSpectrumPhyRxStart(), and ProtocolTypeToPendingPackets().
|
private |
pending UAN packets
Definition at line 670 of file animation-interface.h.
Referenced by ProtocolTypeToPendingPackets().
|
private |
pending wifi packets
Definition at line 665 of file animation-interface.h.
Referenced by ProtocolTypeToPendingPackets(), and WifiPhyRxBeginTrace().
|
private |
pending wimax packets
Definition at line 666 of file animation-interface.h.
Referenced by ProtocolTypeToPendingPackets().
|
private |
queue counters poll interval
Definition at line 638 of file animation-interface.h.
Referenced by EnableQueueCounters(), and TrackQueueCounters().
|
private |
queue counters stop time
Definition at line 637 of file animation-interface.h.
Referenced by EnableQueueCounters(), and TrackQueueCounters().
|
private |
queue dequeue counter ID
Definition at line 654 of file animation-interface.h.
Referenced by EnableQueueCounters(), and TrackQueueCounters().
|
private |
queue drop counter ID
Definition at line 655 of file animation-interface.h.
Referenced by EnableQueueCounters(), and TrackQueueCounters().
|
private |
queue enqueue counter ID
Definition at line 653 of file animation-interface.h.
Referenced by EnableQueueCounters(), and TrackQueueCounters().
|
private |
remaining energy counter ID
Definition at line 647 of file animation-interface.h.
Referenced by RemainingEnergyTrace(), and WriteNodeEnergies().
|
private |
resources
Definition at line 686 of file animation-interface.h.
Referenced by AddResource(), and UpdateNodeImage().
|
private |
File handle for routing table output (0 if None);.
Definition at line 620 of file animation-interface.h.
Referenced by SetOutputFile(), StopAnimation(), WriteXmlAnim(), WriteXmlClose(), WriteXmlRouting(), and WriteXmlRp().
|
private |
routing file name
Definition at line 632 of file animation-interface.h.
Referenced by SetOutputFile().
|
private |
routing node container
Definition at line 634 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking(), and TrackIpv4Route().
|
private |
routing poll interval
Definition at line 633 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking(), and TrackIpv4Route().
|
private |
routing stop time
Definition at line 631 of file animation-interface.h.
Referenced by EnableIpv4RouteTracking(), and TrackIpv4Route().
|
private |
started
Definition at line 625 of file animation-interface.h.
Referenced by IsStarted(), StartAnimation(), and StopAnimation().
|
private |
start time
Definition at line 627 of file animation-interface.h.
Referenced by IsInTimeWindow(), and SetStartTime().
|
private |
stop time
Definition at line 628 of file animation-interface.h.
Referenced by IsInTimeWindow(), and SetStopTime().
|
private |
track packets
Definition at line 644 of file animation-interface.h.
Referenced by SkipPacketTracing().
|
private |
wifi MAC counters poll interval
Definition at line 640 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), and TrackWifiMacCounters().
|
private |
wifi MAC counters stop time
Definition at line 639 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), and TrackWifiMacCounters().
|
private |
wifi MAC receive counter ID
Definition at line 659 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), and TrackWifiMacCounters().
|
private |
wifi MAC receive drop counter ID
Definition at line 660 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), and TrackWifiMacCounters().
|
private |
wifi MAC transmit counter ID
Definition at line 657 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), and TrackWifiMacCounters().
|
private |
wifi MAC transmit drop counter ID
Definition at line 658 of file animation-interface.h.
Referenced by EnableWifiMacCounters(), and TrackWifiMacCounters().
|
private |
wifi Phy counters poll interval
Definition at line 642 of file animation-interface.h.
Referenced by EnableWifiPhyCounters(), and TrackWifiPhyCounters().
|
private |
wifi Phy counters stop time
Definition at line 641 of file animation-interface.h.
Referenced by EnableWifiPhyCounters(), and TrackWifiPhyCounters().
|
private |
wifi Phy receive drop counter ID
Definition at line 663 of file animation-interface.h.
Referenced by EnableWifiPhyCounters(), and TrackWifiPhyCounters().
|
private |
wifi Phy transmit drop counter ID
Definition at line 662 of file animation-interface.h.
Referenced by EnableWifiPhyCounters(), and TrackWifiPhyCounters().
|
private |
write callback
Definition at line 624 of file animation-interface.h.
Referenced by ResetAnimWriteCallback(), SetAnimWriteCallback(), and WriteN().
|
staticprivate |
user boundary
Definition at line 643 of file animation-interface.h.