bindings/python/ns3_module_helper.py
changeset 3539 427638d49248
parent 3511 eb17407147c3
child 3544 3685ab98e4b2
equal deleted inserted replaced
3538:99f49426595a 3539:427638d49248
    33     module.add_class('ApplicationContainer')
    33     module.add_class('ApplicationContainer')
    34     ## wifi-helper.h: ns3::WifiHelper [class]
    34     ## wifi-helper.h: ns3::WifiHelper [class]
    35     module.add_class('WifiHelper', allow_subclassing=False)
    35     module.add_class('WifiHelper', allow_subclassing=False)
    36     ## ipv4-address-helper.h: ns3::Ipv4AddressHelper [class]
    36     ## ipv4-address-helper.h: ns3::Ipv4AddressHelper [class]
    37     module.add_class('Ipv4AddressHelper', allow_subclassing=False)
    37     module.add_class('Ipv4AddressHelper', allow_subclassing=False)
       
    38     ## bridge-helper.h: ns3::BridgeHelper [class]
       
    39     module.add_class('BridgeHelper', allow_subclassing=False)
    38     ## packet-sink-helper.h: ns3::PacketSinkHelper [class]
    40     ## packet-sink-helper.h: ns3::PacketSinkHelper [class]
    39     module.add_class('PacketSinkHelper', allow_subclassing=False)
    41     module.add_class('PacketSinkHelper', allow_subclassing=False)
    40     ## ns2-mobility-helper.h: ns3::Ns2MobilityHelper [class]
    42     ## ns2-mobility-helper.h: ns3::Ns2MobilityHelper [class]
    41     module.add_class('Ns2MobilityHelper', allow_subclassing=False)
    43     module.add_class('Ns2MobilityHelper', allow_subclassing=False)
    42     
    44     
    95     register_Ns3StaticMulticastRouteHelper_methods(root_module, root_module['ns3::StaticMulticastRouteHelper'])
    97     register_Ns3StaticMulticastRouteHelper_methods(root_module, root_module['ns3::StaticMulticastRouteHelper'])
    96     register_Ns3Ipv4InterfaceContainer_methods(root_module, root_module['ns3::Ipv4InterfaceContainer'])
    98     register_Ns3Ipv4InterfaceContainer_methods(root_module, root_module['ns3::Ipv4InterfaceContainer'])
    97     register_Ns3ApplicationContainer_methods(root_module, root_module['ns3::ApplicationContainer'])
    99     register_Ns3ApplicationContainer_methods(root_module, root_module['ns3::ApplicationContainer'])
    98     register_Ns3WifiHelper_methods(root_module, root_module['ns3::WifiHelper'])
   100     register_Ns3WifiHelper_methods(root_module, root_module['ns3::WifiHelper'])
    99     register_Ns3Ipv4AddressHelper_methods(root_module, root_module['ns3::Ipv4AddressHelper'])
   101     register_Ns3Ipv4AddressHelper_methods(root_module, root_module['ns3::Ipv4AddressHelper'])
       
   102     register_Ns3BridgeHelper_methods(root_module, root_module['ns3::BridgeHelper'])
   100     register_Ns3PacketSinkHelper_methods(root_module, root_module['ns3::PacketSinkHelper'])
   103     register_Ns3PacketSinkHelper_methods(root_module, root_module['ns3::PacketSinkHelper'])
   101     register_Ns3Ns2MobilityHelper_methods(root_module, root_module['ns3::Ns2MobilityHelper'])
   104     register_Ns3Ns2MobilityHelper_methods(root_module, root_module['ns3::Ns2MobilityHelper'])
   102     return
   105     return
   103 
   106 
   104 def register_Ns3MobilityHelper_methods(root_module, cls):
   107 def register_Ns3MobilityHelper_methods(root_module, cls):
   633     cls.add_method('Assign', 
   636     cls.add_method('Assign', 
   634                    'ns3::Ipv4InterfaceContainer', 
   637                    'ns3::Ipv4InterfaceContainer', 
   635                    [param('ns3::NetDeviceContainer&', 'c', is_const=True)])
   638                    [param('ns3::NetDeviceContainer&', 'c', is_const=True)])
   636     return
   639     return
   637 
   640 
       
   641 def register_Ns3BridgeHelper_methods(root_module, cls):
       
   642     ## bridge-helper.h: ns3::BridgeHelper::BridgeHelper() [constructor]
       
   643     cls.add_constructor([])
       
   644     ## bridge-helper.h: void ns3::BridgeHelper::SetDeviceAttribute(std::string n1, ns3::AttributeValue const & v1) [member function]
       
   645     cls.add_method('SetDeviceAttribute', 
       
   646                    'void', 
       
   647                    [param('std::string', 'n1'), param('ns3::AttributeValue&', 'v1', is_const=True)])
       
   648     ## bridge-helper.h: ns3::NetDeviceContainer ns3::BridgeHelper::Install(ns3::Ptr<ns3::Node> node, ns3::NetDeviceContainer c) [member function]
       
   649     cls.add_method('Install', 
       
   650                    'ns3::NetDeviceContainer', 
       
   651                    [param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::NetDeviceContainer', 'c')])
       
   652     return
       
   653 
   638 def register_Ns3PacketSinkHelper_methods(root_module, cls):
   654 def register_Ns3PacketSinkHelper_methods(root_module, cls):
   639     ## packet-sink-helper.h: ns3::PacketSinkHelper::PacketSinkHelper(std::string protocol, ns3::Address address) [constructor]
   655     ## packet-sink-helper.h: ns3::PacketSinkHelper::PacketSinkHelper(std::string protocol, ns3::Address address) [constructor]
   640     cls.add_constructor([param('std::string', 'protocol'), param('ns3::Address', 'address')])
   656     cls.add_constructor([param('std::string', 'protocol'), param('ns3::Address', 'address')])
   641     ## packet-sink-helper.h: void ns3::PacketSinkHelper::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
   657     ## packet-sink-helper.h: void ns3::PacketSinkHelper::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
   642     cls.add_method('SetAttribute', 
   658     cls.add_method('SetAttribute',