src/helper/olsr-helper.cc
changeset 2965 4b28e9740e3b
parent 2834 1aab57845b07
child 2997 caf9d364c6fc
equal deleted inserted replaced
2964:4e8cb1577144 2965:4b28e9740e3b
    28   m_agentFactory.SetTypeId ("ns3::olsr::AgentImpl");
    28   m_agentFactory.SetTypeId ("ns3::olsr::AgentImpl");
    29 }
    29 }
    30 
    30 
    31 void 
    31 void 
    32 OlsrHelper::SetAgent (std::string tid,
    32 OlsrHelper::SetAgent (std::string tid,
    33 		      std::string n0, Attribute v0,
    33 		      std::string n0, const AttributeValue &v0,
    34 		      std::string n1, Attribute v1,
    34 		      std::string n1, const AttributeValue &v1,
    35 		      std::string n2, Attribute v2,
    35 		      std::string n2, const AttributeValue &v2,
    36 		      std::string n3, Attribute v3,
    36 		      std::string n3, const AttributeValue &v3,
    37 		      std::string n4, Attribute v4,
    37 		      std::string n4, const AttributeValue &v4,
    38 		      std::string n5, Attribute v5,
    38 		      std::string n5, const AttributeValue &v5,
    39 		      std::string n6, Attribute v6,
    39 		      std::string n6, const AttributeValue &v6,
    40 		      std::string n7, Attribute v7)
    40 		      std::string n7, const AttributeValue &v7)
    41 {
    41 {
    42   m_agentFactory.SetTypeId (tid);
    42   m_agentFactory.SetTypeId (tid);
    43   m_agentFactory.Set (n0, v0);
    43   m_agentFactory.Set (n0, v0);
    44   m_agentFactory.Set (n1, v1);
    44   m_agentFactory.Set (n1, v1);
    45   m_agentFactory.Set (n2, v2);
    45   m_agentFactory.Set (n2, v2);