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 ();
108 bool usingXML =
true);
262 void ShowNode (uint32_t nodeId,
bool show =
true);
309 void UpdateNodeColor (uint32_t nodeId, uint8_t r, uint8_t g, uint8_t b);
332 std::string linkDescription,
333 std::string fromNodeDescription =
"",
334 std::string toNodeDescription =
"");
346 std::string linkDescription,
347 std::string fromNodeDescription =
"",
348 std::string toNodeDescription =
"");
359 std::string linkDescription);
369 std::string linkDescription);
418 int WriteN (
const char*, uint32_t);
489 int WriteN (
const std::string&);
550 static std::map <P2pLinkNodeIdPair, LinkProperties, LinkPairCompare>
linkProperties;
573 std::string
GetXMLOpenClose_link (uint32_t fromLp, uint32_t fromId, uint32_t toLp, uint32_t toId);
575 std::string
GetXMLOpen_packet (uint32_t fromLp, uint32_t fromId,
double fbTx,
double lbTx, std::string auxInfo =
"");
576 std::string
GetXMLOpenClose_rx (uint32_t toLp, uint32_t toId,
double fbRx,
double lbRx);
577 std::string
GetXMLOpen_wpacket (uint32_t fromLp, uint32_t fromId,
double fbTx,
double lbTx,
double range);
578 std::string
GetXMLClose (std::string name) {
return "</" + name +
">\n"; }
652 virtual void Print (std::ostream &os)
const;
659 void Set (uint64_t AnimUid);
666 uint64_t
Get (
void)
const;