bindings/python/ns3_module_helper.py
changeset 4654 2eaebe77d66b
parent 4605 fd44ff061631
     1.1 --- a/bindings/python/ns3_module_helper.py	Fri Jun 26 10:35:46 2009 +0200
     1.2 +++ b/bindings/python/ns3_module_helper.py	Sat Jul 04 08:15:48 2009 +0200
     1.3 @@ -17,8 +17,10 @@
     1.4      module.add_class('Ipv4AddressHelper', allow_subclassing=False)
     1.5      ## ipv4-interface-container.h: ns3::Ipv4InterfaceContainer [class]
     1.6      module.add_class('Ipv4InterfaceContainer')
     1.7 +    ## ipv4-routing-helper.h: ns3::Ipv4RoutingHelper [class]
     1.8 +    module.add_class('Ipv4RoutingHelper', allow_subclassing=False)
     1.9      ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper [class]
    1.10 -    module.add_class('Ipv4StaticRoutingHelper', allow_subclassing=False)
    1.11 +    module.add_class('Ipv4StaticRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper'])
    1.12      ## mobility-helper.h: ns3::MobilityHelper [class]
    1.13      module.add_class('MobilityHelper', allow_subclassing=False)
    1.14      ## net-device-container.h: ns3::NetDeviceContainer [class]
    1.15 @@ -28,7 +30,7 @@
    1.16      ## ns2-mobility-helper.h: ns3::Ns2MobilityHelper [class]
    1.17      module.add_class('Ns2MobilityHelper', allow_subclassing=False)
    1.18      ## olsr-helper.h: ns3::OlsrHelper [class]
    1.19 -    module.add_class('OlsrHelper', allow_subclassing=False)
    1.20 +    module.add_class('OlsrHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper'])
    1.21      ## on-off-helper.h: ns3::OnOffHelper [class]
    1.22      module.add_class('OnOffHelper', allow_subclassing=False)
    1.23      ## packet-sink-helper.h: ns3::PacketSinkHelper [class]
    1.24 @@ -57,6 +59,10 @@
    1.25      module.add_class('YansWifiPhyHelper', allow_subclassing=False, parent=root_module['ns3::WifiPhyHelper'])
    1.26      ## yans-wifi-helper.h: ns3::YansWifiPhyHelper::PcapFormat [enumeration]
    1.27      module.add_enum('PcapFormat', ['PCAP_FORMAT_80211', 'PCAP_FORMAT_80211_PRISM', 'PCAP_FORMAT_80211_RADIOTAP'], outer_class=root_module['ns3::YansWifiPhyHelper'])
    1.28 +    ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper [class]
    1.29 +    module.add_class('Ipv4GlobalRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper'])
    1.30 +    ## ipv4-list-routing-helper.h: ns3::Ipv4ListRoutingHelper [class]
    1.31 +    module.add_class('Ipv4ListRoutingHelper', allow_subclassing=False, parent=root_module['ns3::Ipv4RoutingHelper'])
    1.32      ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper [class]
    1.33      module.add_class('NqosWifiMacHelper', allow_subclassing=False, parent=root_module['ns3::WifiMacHelper'])
    1.34      ## qos-wifi-mac-helper.h: ns3::QosWifiMacHelper [class]
    1.35 @@ -120,6 +126,7 @@
    1.36      register_Ns3InternetStackHelper_methods(root_module, root_module['ns3::InternetStackHelper'])
    1.37      register_Ns3Ipv4AddressHelper_methods(root_module, root_module['ns3::Ipv4AddressHelper'])
    1.38      register_Ns3Ipv4InterfaceContainer_methods(root_module, root_module['ns3::Ipv4InterfaceContainer'])
    1.39 +    register_Ns3Ipv4RoutingHelper_methods(root_module, root_module['ns3::Ipv4RoutingHelper'])
    1.40      register_Ns3Ipv4StaticRoutingHelper_methods(root_module, root_module['ns3::Ipv4StaticRoutingHelper'])
    1.41      register_Ns3MobilityHelper_methods(root_module, root_module['ns3::MobilityHelper'])
    1.42      register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
    1.43 @@ -139,6 +146,8 @@
    1.44      register_Ns3WifiPhyHelper_methods(root_module, root_module['ns3::WifiPhyHelper'])
    1.45      register_Ns3YansWifiChannelHelper_methods(root_module, root_module['ns3::YansWifiChannelHelper'])
    1.46      register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper'])
    1.47 +    register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, root_module['ns3::Ipv4GlobalRoutingHelper'])
    1.48 +    register_Ns3Ipv4ListRoutingHelper_methods(root_module, root_module['ns3::Ipv4ListRoutingHelper'])
    1.49      register_Ns3NqosWifiMacHelper_methods(root_module, root_module['ns3::NqosWifiMacHelper'])
    1.50      register_Ns3QosWifiMacHelper_methods(root_module, root_module['ns3::QosWifiMacHelper'])
    1.51      return
    1.52 @@ -420,6 +429,10 @@
    1.53      cls.add_constructor([param('ns3::InternetStackHelper const &', 'arg0')])
    1.54      ## internet-stack-helper.h: ns3::InternetStackHelper::InternetStackHelper() [constructor]
    1.55      cls.add_constructor([])
    1.56 +    ## internet-stack-helper.h: void ns3::InternetStackHelper::SetRoutingHelper(ns3::Ipv4RoutingHelper const & routing) [member function]
    1.57 +    cls.add_method('SetRoutingHelper', 
    1.58 +                   'void', 
    1.59 +                   [param('ns3::Ipv4RoutingHelper const &', 'routing')])
    1.60      ## internet-stack-helper.h: void ns3::InternetStackHelper::Install(std::string nodeName) const [member function]
    1.61      cls.add_method('Install', 
    1.62                     'void', 
    1.63 @@ -435,6 +448,11 @@
    1.64                     'void', 
    1.65                     [param('ns3::NodeContainer', 'c')], 
    1.66                     is_const=True)
    1.67 +    ## internet-stack-helper.h: void ns3::InternetStackHelper::InstallAll() const [member function]
    1.68 +    cls.add_method('InstallAll', 
    1.69 +                   'void', 
    1.70 +                   [], 
    1.71 +                   is_const=True)
    1.72      ## internet-stack-helper.h: void ns3::InternetStackHelper::SetTcp(std::string tid) [member function]
    1.73      cls.add_method('SetTcp', 
    1.74                     'void', 
    1.75 @@ -516,11 +534,28 @@
    1.76                     [param('std::string', 'ipv4Name'), param('uint32_t', 'interface')])
    1.77      return
    1.78  
    1.79 +def register_Ns3Ipv4RoutingHelper_methods(root_module, cls):
    1.80 +    ## ipv4-routing-helper.h: ns3::Ipv4RoutingHelper::Ipv4RoutingHelper(ns3::Ipv4RoutingHelper const & arg0) [copy constructor]
    1.81 +    cls.add_constructor([param('ns3::Ipv4RoutingHelper const &', 'arg0')])
    1.82 +    ## ipv4-routing-helper.h: ns3::Ipv4RoutingHelper::Ipv4RoutingHelper() [constructor]
    1.83 +    cls.add_constructor([])
    1.84 +    ## ipv4-routing-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4RoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
    1.85 +    cls.add_method('Create', 
    1.86 +                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
    1.87 +                   [param('ns3::Ptr< ns3::Node >', 'node')], 
    1.88 +                   is_pure_virtual=True, is_const=True, is_virtual=True)
    1.89 +    return
    1.90 +
    1.91  def register_Ns3Ipv4StaticRoutingHelper_methods(root_module, cls):
    1.92      ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper(ns3::Ipv4StaticRoutingHelper const & arg0) [copy constructor]
    1.93      cls.add_constructor([param('ns3::Ipv4StaticRoutingHelper const &', 'arg0')])
    1.94      ## ipv4-static-routing-helper.h: ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper() [constructor]
    1.95      cls.add_constructor([])
    1.96 +    ## ipv4-static-routing-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4StaticRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
    1.97 +    cls.add_method('Create', 
    1.98 +                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
    1.99 +                   [param('ns3::Ptr< ns3::Node >', 'node')], 
   1.100 +                   is_const=True, is_virtual=True)
   1.101      ## ipv4-static-routing-helper.h: ns3::Ptr<ns3::Ipv4StaticRouting> ns3::Ipv4StaticRoutingHelper::GetStaticRouting(ns3::Ptr<ns3::Ipv4> ipv4) const [member function]
   1.102      cls.add_method('GetStaticRouting', 
   1.103                     'ns3::Ptr< ns3::Ipv4StaticRouting >', 
   1.104 @@ -752,26 +787,15 @@
   1.105      cls.add_constructor([param('ns3::OlsrHelper const &', 'arg0')])
   1.106      ## olsr-helper.h: ns3::OlsrHelper::OlsrHelper() [constructor]
   1.107      cls.add_constructor([])
   1.108 -    ## olsr-helper.h: void ns3::OlsrHelper::SetAgent(std::string tid, std::string n0="", ns3::AttributeValue const & v0=ns3::EmptyAttributeValue(), std::string n1="", ns3::AttributeValue const & v1=ns3::EmptyAttributeValue(), std::string n2="", ns3::AttributeValue const & v2=ns3::EmptyAttributeValue(), std::string n3="", ns3::AttributeValue const & v3=ns3::EmptyAttributeValue(), std::string n4="", ns3::AttributeValue const & v4=ns3::EmptyAttributeValue(), std::string n5="", ns3::AttributeValue const & v5=ns3::EmptyAttributeValue(), std::string n6="", ns3::AttributeValue const & v6=ns3::EmptyAttributeValue(), std::string n7="", ns3::AttributeValue const & v7=ns3::EmptyAttributeValue()) [member function]
   1.109 -    cls.add_method('SetAgent', 
   1.110 +    ## olsr-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::OlsrHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
   1.111 +    cls.add_method('Create', 
   1.112 +                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
   1.113 +                   [param('ns3::Ptr< ns3::Node >', 'node')], 
   1.114 +                   is_const=True, is_virtual=True)
   1.115 +    ## olsr-helper.h: void ns3::OlsrHelper::Set(std::string name, ns3::AttributeValue const & value) [member function]
   1.116 +    cls.add_method('Set', 
   1.117                     'void', 
   1.118 -                   [param('std::string', 'tid'), param('std::string', 'n0', default_value='""'), param('ns3::AttributeValue const &', 'v0', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n1', default_value='""'), param('ns3::AttributeValue const &', 'v1', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n2', default_value='""'), param('ns3::AttributeValue const &', 'v2', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n3', default_value='""'), param('ns3::AttributeValue const &', 'v3', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n4', default_value='""'), param('ns3::AttributeValue const &', 'v4', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n5', default_value='""'), param('ns3::AttributeValue const &', 'v5', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n6', default_value='""'), param('ns3::AttributeValue const &', 'v6', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n7', default_value='""'), param('ns3::AttributeValue const &', 'v7', default_value='ns3::EmptyAttributeValue()')])
   1.119 -    ## olsr-helper.h: void ns3::OlsrHelper::Install(ns3::NodeContainer container) [member function]
   1.120 -    cls.add_method('Install', 
   1.121 -                   'void', 
   1.122 -                   [param('ns3::NodeContainer', 'container')])
   1.123 -    ## olsr-helper.h: void ns3::OlsrHelper::Install(ns3::Ptr<ns3::Node> node) [member function]
   1.124 -    cls.add_method('Install', 
   1.125 -                   'void', 
   1.126 -                   [param('ns3::Ptr< ns3::Node >', 'node')])
   1.127 -    ## olsr-helper.h: void ns3::OlsrHelper::Install(std::string nodeName) [member function]
   1.128 -    cls.add_method('Install', 
   1.129 -                   'void', 
   1.130 -                   [param('std::string', 'nodeName')])
   1.131 -    ## olsr-helper.h: void ns3::OlsrHelper::InstallAll() [member function]
   1.132 -    cls.add_method('InstallAll', 
   1.133 -                   'void', 
   1.134 -                   [])
   1.135 +                   [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
   1.136      return
   1.137  
   1.138  def register_Ns3OnOffHelper_methods(root_module, cls):
   1.139 @@ -1234,6 +1258,44 @@
   1.140                     is_const=True, visibility='private', is_virtual=True)
   1.141      return
   1.142  
   1.143 +def register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, cls):
   1.144 +    ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper(ns3::Ipv4GlobalRoutingHelper const & arg0) [copy constructor]
   1.145 +    cls.add_constructor([param('ns3::Ipv4GlobalRoutingHelper const &', 'arg0')])
   1.146 +    ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper() [constructor]
   1.147 +    cls.add_constructor([])
   1.148 +    ## ipv4-global-routing-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4GlobalRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
   1.149 +    cls.add_method('Create', 
   1.150 +                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
   1.151 +                   [param('ns3::Ptr< ns3::Node >', 'node')], 
   1.152 +                   is_const=True, is_virtual=True)
   1.153 +    ## ipv4-global-routing-helper.h: static void ns3::Ipv4GlobalRoutingHelper::PopulateRoutingTables() [member function]
   1.154 +    cls.add_method('PopulateRoutingTables', 
   1.155 +                   'void', 
   1.156 +                   [], 
   1.157 +                   is_static=True)
   1.158 +    ## ipv4-global-routing-helper.h: static void ns3::Ipv4GlobalRoutingHelper::RecomputeRoutingTables() [member function]
   1.159 +    cls.add_method('RecomputeRoutingTables', 
   1.160 +                   'void', 
   1.161 +                   [], 
   1.162 +                   is_static=True)
   1.163 +    return
   1.164 +
   1.165 +def register_Ns3Ipv4ListRoutingHelper_methods(root_module, cls):
   1.166 +    ## ipv4-list-routing-helper.h: ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper(ns3::Ipv4ListRoutingHelper const & arg0) [copy constructor]
   1.167 +    cls.add_constructor([param('ns3::Ipv4ListRoutingHelper const &', 'arg0')])
   1.168 +    ## ipv4-list-routing-helper.h: ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper() [constructor]
   1.169 +    cls.add_constructor([])
   1.170 +    ## ipv4-list-routing-helper.h: void ns3::Ipv4ListRoutingHelper::Add(ns3::Ipv4RoutingHelper const & routing, int16_t priority) [member function]
   1.171 +    cls.add_method('Add', 
   1.172 +                   'void', 
   1.173 +                   [param('ns3::Ipv4RoutingHelper const &', 'routing'), param('int16_t', 'priority')])
   1.174 +    ## ipv4-list-routing-helper.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
   1.175 +    cls.add_method('Create', 
   1.176 +                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
   1.177 +                   [param('ns3::Ptr< ns3::Node >', 'node')], 
   1.178 +                   is_const=True, is_virtual=True)
   1.179 +    return
   1.180 +
   1.181  def register_Ns3NqosWifiMacHelper_methods(root_module, cls):
   1.182      ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper::NqosWifiMacHelper(ns3::NqosWifiMacHelper const & arg0) [copy constructor]
   1.183      cls.add_constructor([param('ns3::NqosWifiMacHelper const &', 'arg0')])