utils/print-introspected-doxygen.cc
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 10 Mar 2008 00:27:53 +0100
changeset 2577 5b41cb5c3fcf
parent 2542 a9b88fdc09d6
child 2592 3ebf97150166
permissions -rw-r--r--
kill DefaultValue
     1 #include "ns3/internet-node.h"
     2 #include "ns3/ptr.h"
     3 #include "ns3/node-list.h"
     4 #include "ns3/point-to-point-net-device.h"
     5 #include "ns3/csma-net-device.h"
     6 #include "ns3/queue.h"
     7 #include "ns3/drop-tail-queue.h"
     8 #include "ns3/mobility-model-notifier.h"
     9 #include "ns3/string.h"
    10 
    11 using namespace ns3;
    12 
    13 
    14 
    15 int main (int argc, char *argv[])
    16 {
    17   Ptr<Node> node = CreateObject<InternetNode> ();
    18   node->AggregateObject (CreateObject<MobilityModelNotifier> ());
    19 
    20   Ptr<PointToPointNetDevice> p2p = CreateObjectWith<PointToPointNetDevice> ("Node", node, 
    21 									    "Address", Mac48Address::Allocate ());
    22   node->AddDevice (p2p);
    23   p2p->AddQueue (CreateObject<DropTailQueue> ());
    24   Ptr<CsmaNetDevice> csma = CreateObjectWith<CsmaNetDevice> ("Node", node, 
    25 							     "Address", Mac48Address::Allocate (),
    26 							     "EncapsulationMode", String ("Llc"));
    27   node->AddDevice (csma);
    28   csma->AddQueue (CreateObject<DropTailQueue> ());
    29 
    30 
    31   return 0;
    32 }