equal
deleted
inserted
replaced
412 void Install (NodeContainer & c, |
412 void Install (NodeContainer & c, |
413 NetDeviceContainer & d, |
413 NetDeviceContainer & d, |
414 Ipv4InterfaceContainer & i, |
414 Ipv4InterfaceContainer & i, |
415 double totalTime, |
415 double totalTime, |
416 int protocol, |
416 int protocol, |
417 int nSinks, |
417 uint32_t nSinks, |
418 int routingTables); |
418 int routingTables); |
419 |
419 |
420 /** |
420 /** |
421 * \brief Trace the receipt of an on-off-application generated packet |
421 * \brief Trace the receipt of an on-off-application generated packet |
422 * \param context this object |
422 * \param context this object |
480 void ReceiveRoutingPacket (Ptr<Socket> socket); |
480 void ReceiveRoutingPacket (Ptr<Socket> socket); |
481 |
481 |
482 double m_TotalSimTime; // seconds |
482 double m_TotalSimTime; // seconds |
483 uint32_t m_protocol; // routing protocol; 0=NONE, 1=OLSR, 2=AODV, 3=DSDV, 4=DSR |
483 uint32_t m_protocol; // routing protocol; 0=NONE, 1=OLSR, 2=AODV, 3=DSDV, 4=DSR |
484 uint32_t m_port; |
484 uint32_t m_port; |
485 int m_nSinks; // number of sink nodes (< all nodes) |
485 uint32_t m_nSinks; // number of sink nodes (< all nodes) |
486 int m_routingTables; // dump routing table (at t=5 sec). 0=No, 1=Yes |
486 int m_routingTables; // dump routing table (at t=5 sec). 0=No, 1=Yes |
487 RoutingStats routingStats; |
487 RoutingStats routingStats; |
488 std::string m_protocolName; |
488 std::string m_protocolName; |
489 int m_log; |
489 int m_log; |
490 }; |
490 }; |
518 RoutingHelper::Install (NodeContainer & c, |
518 RoutingHelper::Install (NodeContainer & c, |
519 NetDeviceContainer & d, |
519 NetDeviceContainer & d, |
520 Ipv4InterfaceContainer & i, |
520 Ipv4InterfaceContainer & i, |
521 double totalTime, |
521 double totalTime, |
522 int protocol, |
522 int protocol, |
523 int nSinks, |
523 uint32_t nSinks, |
524 int routingTables) |
524 int routingTables) |
525 { |
525 { |
526 m_TotalSimTime = totalTime; |
526 m_TotalSimTime = totalTime; |
527 m_protocol = protocol; |
527 m_protocol = protocol; |
528 m_nSinks = nSinks; |
528 m_nSinks = nSinks; |
640 onoff1.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.0]")); |
640 onoff1.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.0]")); |
641 |
641 |
642 Ptr<UniformRandomVariable> var = CreateObject<UniformRandomVariable> (); |
642 Ptr<UniformRandomVariable> var = CreateObject<UniformRandomVariable> (); |
643 int64_t stream = 2; |
643 int64_t stream = 2; |
644 var->SetStream (stream); |
644 var->SetStream (stream); |
645 for (int i = 0; i <= m_nSinks - 1; i++) |
645 for (uint32_t i = 0; i < m_nSinks; i++) |
646 { |
646 { |
647 // protocol == 0 means no routing data, WAVE BSM only |
647 // protocol == 0 means no routing data, WAVE BSM only |
648 // so do not set up sink |
648 // so do not set up sink |
649 if (m_protocol != 0) |
649 if (m_protocol != 0) |
650 { |
650 { |
1245 CourseChange (std::ostream *os, std::string foo, Ptr<const MobilityModel> mobility); |
1245 CourseChange (std::ostream *os, std::string foo, Ptr<const MobilityModel> mobility); |
1246 |
1246 |
1247 uint32_t m_port; |
1247 uint32_t m_port; |
1248 std::string m_CSVfileName; |
1248 std::string m_CSVfileName; |
1249 std::string m_CSVfileName2; |
1249 std::string m_CSVfileName2; |
1250 int m_nSinks; |
1250 uint32_t m_nSinks; |
1251 std::string m_protocolName; |
1251 std::string m_protocolName; |
1252 double m_txp; |
1252 double m_txp; |
1253 bool m_traceMobility; |
1253 bool m_traceMobility; |
1254 uint32_t m_protocol; |
1254 uint32_t m_protocol; |
1255 |
1255 |