00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef OLSR_HELPER_H
00021 #define OLSR_HELPER_H
00022
00023 #include "ns3/object-factory.h"
00024 #include "ns3/node-container.h"
00025 #include "ns3/node.h"
00026
00027 namespace ns3 {
00028
00029
00030
00031
00032 class OlsrHelper
00033 {
00034 public:
00035 OlsrHelper ();
00036
00037
00038
00039
00040 void SetAgent (std::string tid,
00041 std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
00042 std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
00043 std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
00044 std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
00045 std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
00046 std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
00047 std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
00048 std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ());
00049
00050
00051
00052
00053 void Install (NodeContainer container);
00054
00055
00056
00057 void Install (Ptr<Node> node);
00058
00059
00060
00061 void InstallAll (void);
00062 private:
00063 ObjectFactory m_agentFactory;
00064 };
00065
00066 }
00067
00068 #endif