21 #ifndef ANIMATION_INTERFACE__H
22 #define ANIMATION_INTERFACE__H
28 #include "ns3/net-device.h"
29 #include "ns3/node-container.h"
30 #include "ns3/nstime.h"
32 #include "ns3/node-list.h"
33 #include "ns3/random-variable-stream.h"
34 #include "ns3/simulator.h"
35 #include "ns3/config.h"
36 #include "ns3/animation-interface-helper.h"
37 #include "ns3/mac48-address.h"
38 #include "ns3/lte-ue-net-device.h"
39 #include "ns3/lte-enb-net-device.h"
40 #include "ns3/uan-phy-gen.h"
44 #define MAX_PKTS_PER_TRACE_FILE 100000
69 std::ostringstream oss1;
71 std::ostringstream oss2;
73 return oss1.str () < oss2.str ();
120 bool usingXML =
true);
260 void ShowNode (uint32_t nodeId,
bool show =
true);
307 void UpdateNodeColor (uint32_t nodeId, uint8_t r, uint8_t g, uint8_t b);
330 std::string linkDescription,
331 std::string fromNodeDescription =
"",
332 std::string toNodeDescription =
"");
344 std::string linkDescription,
345 std::string fromNodeDescription =
"",
346 std::string toNodeDescription =
"");
357 std::string linkDescription);
367 std::string linkDescription);
416 int WriteN (
const char*, uint32_t, FILE * f);
537 int WriteN (
const std::string&, FILE * f);
603 static std::map <P2pLinkNodeIdPair, LinkProperties, LinkPairCompare>
linkProperties;
629 std::string
GetXMLOpenClose_link (uint32_t fromLp, uint32_t fromId, uint32_t toLp, uint32_t toId);
631 std::string
GetXMLOpen_packet (uint32_t fromLp, uint32_t fromId,
double fbTx,
double lbTx, std::string auxInfo =
"");
632 std::string
GetXMLOpenClose_p (std::string pktType, uint32_t fId,
double fbTx,
double lbTx, uint32_t tId,
double fbRx,
double lbRx,
633 std::string metaInfo =
"", std::string auxInfo =
"");
634 std::string
GetXMLOpenClose_rx (uint32_t toLp, uint32_t toId,
double fbRx,
double lbRx);
635 std::string
GetXMLOpen_wpacket (uint32_t fromLp, uint32_t fromId,
double fbTx,
double lbTx,
double range);
636 std::string
GetXMLClose (std::string name) {
return "</" + name +
">\n"; }
715 virtual void Print (std::ostream &os)
const;
722 void Set (uint64_t AnimUid);
729 uint64_t
Get (
void)
const;