utils/print-trace-sources.cc
changeset 1375 4f45bec005b8
parent 1371 bebf690257c9
child 1376 ad7e61edfb9d
equal deleted inserted replaced
1374:77468496f7e0 1375:4f45bec005b8
     3 #include "ns3/trace-resolver.h"
     3 #include "ns3/trace-resolver.h"
     4 #include "ns3/node-list.h"
     4 #include "ns3/node-list.h"
     5 #include "ns3/point-to-point-net-device.h"
     5 #include "ns3/point-to-point-net-device.h"
     6 #include "ns3/csma-cd-net-device.h"
     6 #include "ns3/csma-cd-net-device.h"
     7 #include "ns3/queue.h"
     7 #include "ns3/queue.h"
       
     8 #include "ns3/mobility-model-notifier.h"
     8 
     9 
     9 using namespace ns3;
    10 using namespace ns3;
    10 
    11 
    11 int main (int argc, char *argv[])
    12 int main (int argc, char *argv[])
    12 {
    13 {
    13   Ptr<Node> node = Create<InternetNode> ();
    14   Ptr<Node> node = Create<InternetNode> ();
       
    15   node->AddInterface (Create<MobilityModelNotifier> ());
    14 
    16 
    15   Ptr<PointToPointNetDevice> p2p = Create<PointToPointNetDevice> (node);
    17   Ptr<PointToPointNetDevice> p2p = Create<PointToPointNetDevice> (node);
    16   p2p->AddQueue (Queue::CreateDefault ());
    18   p2p->AddQueue (Queue::CreateDefault ());
    17   Ptr<CsmaCdNetDevice> csma = Create<CsmaCdNetDevice> (node);
    19   Ptr<CsmaCdNetDevice> csma = Create<CsmaCdNetDevice> (node);
    18   csma->AddQueue (Queue::CreateDefault ());
    20   csma->AddQueue (Queue::CreateDefault ());