src/devices/csma/csma-helper.cc
changeset 2433 3a98e1db7f80
parent 2418 4ff45fa08781
equal deleted inserted replaced
2432:b946f13bc8cb 2433:3a98e1db7f80
     9   m_deviceChannel.SetTypeId ("CsmaChannel");
     9   m_deviceChannel.SetTypeId ("CsmaChannel");
    10 }
    10 }
    11 
    11 
    12 void 
    12 void 
    13 CsmaHelper::SetQueue (std::string type,
    13 CsmaHelper::SetQueue (std::string type,
    14 		      std::string n1, PValue v1,
    14 		      std::string n1, Attribute v1,
    15 		      std::string n2, PValue v2,
    15 		      std::string n2, Attribute v2,
    16 		      std::string n3, PValue v3,
    16 		      std::string n3, Attribute v3,
    17 		      std::string n4, PValue v4)
    17 		      std::string n4, Attribute v4)
    18 {
    18 {
    19   m_queueFactory.SetTypeId (type);
    19   m_queueFactory.SetTypeId (type);
    20   m_queueFactory.Set (n1, v1);
    20   m_queueFactory.Set (n1, v1);
    21   m_queueFactory.Set (n2, v2);
    21   m_queueFactory.Set (n2, v2);
    22   m_queueFactory.Set (n3, v3);
    22   m_queueFactory.Set (n3, v3);
    26   /**
    26   /**
    27    * Set these parameters on each PointToPointNetDevice created
    27    * Set these parameters on each PointToPointNetDevice created
    28    * by this helper.
    28    * by this helper.
    29    */
    29    */
    30 void 
    30 void 
    31 CsmaHelper::SetDeviceParameter (std::string n1, PValue v1)
    31 CsmaHelper::SetDeviceParameter (std::string n1, Attribute v1)
    32 {
    32 {
    33   m_deviceFactory.Set (n1, v1);
    33   m_deviceFactory.Set (n1, v1);
    34 }
    34 }
    35 
    35 
    36 void 
    36 void 
    37 CsmaHelper::SetChannelParameter (std::string n1, PValue v1)
    37 CsmaHelper::SetChannelParameter (std::string n1, Attribute v1)
    38 {
    38 {
    39   m_csmaFactory.Set (n1, v1);
    39   m_csmaFactory.Set (n1, v1);
    40 }
    40 }
    41 
    41 
    42 NetDeviceContainer 
    42 NetDeviceContainer