bindings/python/ns3_module_helper.py
changeset 3842 545ddf9398ed
parent 3816 edd4928b2046
child 3855 7fdcbeea6c4f
     1.1 --- a/bindings/python/ns3_module_helper.py	Mon Oct 27 12:47:33 2008 +0100
     1.2 +++ b/bindings/python/ns3_module_helper.py	Wed Nov 05 14:49:21 2008 -0800
     1.3 @@ -9,6 +9,8 @@
     1.4      module.add_class('BridgeHelper', allow_subclassing=False)
     1.5      ## csma-helper.h: ns3::CsmaHelper [class]
     1.6      module.add_class('CsmaHelper', allow_subclassing=False)
     1.7 +    ## emu-helper.h: ns3::EmuHelper [class]
     1.8 +    module.add_class('EmuHelper', allow_subclassing=False)
     1.9      ## internet-stack-helper.h: ns3::InternetStackHelper [class]
    1.10      module.add_class('InternetStackHelper', allow_subclassing=False)
    1.11      ## ipv4-address-helper.h: ns3::Ipv4AddressHelper [class]
    1.12 @@ -39,6 +41,8 @@
    1.13      module.add_class('UdpEchoClientHelper', allow_subclassing=False)
    1.14      ## udp-echo-helper.h: ns3::UdpEchoServerHelper [class]
    1.15      module.add_class('UdpEchoServerHelper', allow_subclassing=False)
    1.16 +    ## v4ping-helper.h: ns3::V4PingHelper [class]
    1.17 +    module.add_class('V4PingHelper', allow_subclassing=False)
    1.18      ## wifi-helper.h: ns3::WifiHelper [class]
    1.19      module.add_class('WifiHelper', allow_subclassing=False)
    1.20      
    1.21 @@ -86,6 +90,7 @@
    1.22      register_Ns3ApplicationContainer_methods(root_module, root_module['ns3::ApplicationContainer'])
    1.23      register_Ns3BridgeHelper_methods(root_module, root_module['ns3::BridgeHelper'])
    1.24      register_Ns3CsmaHelper_methods(root_module, root_module['ns3::CsmaHelper'])
    1.25 +    register_Ns3EmuHelper_methods(root_module, root_module['ns3::EmuHelper'])
    1.26      register_Ns3InternetStackHelper_methods(root_module, root_module['ns3::InternetStackHelper'])
    1.27      register_Ns3Ipv4AddressHelper_methods(root_module, root_module['ns3::Ipv4AddressHelper'])
    1.28      register_Ns3Ipv4InterfaceContainer_methods(root_module, root_module['ns3::Ipv4InterfaceContainer'])
    1.29 @@ -101,6 +106,7 @@
    1.30      register_Ns3StaticMulticastRouteHelper_methods(root_module, root_module['ns3::StaticMulticastRouteHelper'])
    1.31      register_Ns3UdpEchoClientHelper_methods(root_module, root_module['ns3::UdpEchoClientHelper'])
    1.32      register_Ns3UdpEchoServerHelper_methods(root_module, root_module['ns3::UdpEchoServerHelper'])
    1.33 +    register_Ns3V4PingHelper_methods(root_module, root_module['ns3::V4PingHelper'])
    1.34      register_Ns3WifiHelper_methods(root_module, root_module['ns3::WifiHelper'])
    1.35      return
    1.36  
    1.37 @@ -243,6 +249,65 @@
    1.38                     [param('ns3::Ptr< ns3::Node >', 'hub'), param('ns3::NodeContainer', 'spokes'), param('ns3::NetDeviceContainer &', 'hubDevices'), param('ns3::NetDeviceContainer &', 'spokeDevices')])
    1.39      return
    1.40  
    1.41 +def register_Ns3EmuHelper_methods(root_module, cls):
    1.42 +    ## emu-helper.h: ns3::EmuHelper::EmuHelper(ns3::EmuHelper const & arg0) [copy constructor]
    1.43 +    cls.add_constructor([param('ns3::EmuHelper const &', 'arg0')])
    1.44 +    ## emu-helper.h: ns3::EmuHelper::EmuHelper() [constructor]
    1.45 +    cls.add_constructor([])
    1.46 +    ## emu-helper.h: void ns3::EmuHelper::SetQueue(std::string type, 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()) [member function]
    1.47 +    cls.add_method('SetQueue', 
    1.48 +                   'void', 
    1.49 +                   [param('std::string', 'type'), 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()')])
    1.50 +    ## emu-helper.h: void ns3::EmuHelper::SetAttribute(std::string n1, ns3::AttributeValue const & v1) [member function]
    1.51 +    cls.add_method('SetAttribute', 
    1.52 +                   'void', 
    1.53 +                   [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')])
    1.54 +    ## emu-helper.h: static void ns3::EmuHelper::EnablePcap(std::string filename, uint32_t nodeid, uint32_t deviceid) [member function]
    1.55 +    cls.add_method('EnablePcap', 
    1.56 +                   'void', 
    1.57 +                   [param('std::string', 'filename'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')], 
    1.58 +                   is_static=True)
    1.59 +    ## emu-helper.h: static void ns3::EmuHelper::EnablePcap(std::string filename, ns3::NetDeviceContainer d) [member function]
    1.60 +    cls.add_method('EnablePcap', 
    1.61 +                   'void', 
    1.62 +                   [param('std::string', 'filename'), param('ns3::NetDeviceContainer', 'd')], 
    1.63 +                   is_static=True)
    1.64 +    ## emu-helper.h: static void ns3::EmuHelper::EnablePcap(std::string filename, ns3::NodeContainer n) [member function]
    1.65 +    cls.add_method('EnablePcap', 
    1.66 +                   'void', 
    1.67 +                   [param('std::string', 'filename'), param('ns3::NodeContainer', 'n')], 
    1.68 +                   is_static=True)
    1.69 +    ## emu-helper.h: static void ns3::EmuHelper::EnablePcapAll(std::string filename) [member function]
    1.70 +    cls.add_method('EnablePcapAll', 
    1.71 +                   'void', 
    1.72 +                   [param('std::string', 'filename')], 
    1.73 +                   is_static=True)
    1.74 +    ## emu-helper.h: static void ns3::EmuHelper::EnableAscii(std::ostream & os, uint32_t nodeid, uint32_t deviceid) [member function]
    1.75 +    cls.add_method('EnableAscii', 
    1.76 +                   'void', 
    1.77 +                   [param('std::ostream &', 'os'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')], 
    1.78 +                   is_static=True)
    1.79 +    ## emu-helper.h: static void ns3::EmuHelper::EnableAscii(std::ostream & os, ns3::NetDeviceContainer d) [member function]
    1.80 +    cls.add_method('EnableAscii', 
    1.81 +                   'void', 
    1.82 +                   [param('std::ostream &', 'os'), param('ns3::NetDeviceContainer', 'd')], 
    1.83 +                   is_static=True)
    1.84 +    ## emu-helper.h: static void ns3::EmuHelper::EnableAscii(std::ostream & os, ns3::NodeContainer n) [member function]
    1.85 +    cls.add_method('EnableAscii', 
    1.86 +                   'void', 
    1.87 +                   [param('std::ostream &', 'os'), param('ns3::NodeContainer', 'n')], 
    1.88 +                   is_static=True)
    1.89 +    ## emu-helper.h: static void ns3::EmuHelper::EnableAsciiAll(std::ostream & os) [member function]
    1.90 +    cls.add_method('EnableAsciiAll', 
    1.91 +                   'void', 
    1.92 +                   [param('std::ostream &', 'os')], 
    1.93 +                   is_static=True)
    1.94 +    ## emu-helper.h: ns3::NetDeviceContainer ns3::EmuHelper::Install(ns3::NodeContainer const & c) [member function]
    1.95 +    cls.add_method('Install', 
    1.96 +                   'ns3::NetDeviceContainer', 
    1.97 +                   [param('ns3::NodeContainer const &', 'c')])
    1.98 +    return
    1.99 +
   1.100  def register_Ns3InternetStackHelper_methods(root_module, cls):
   1.101      ## internet-stack-helper.h: ns3::InternetStackHelper::InternetStackHelper(ns3::InternetStackHelper const & arg0) [copy constructor]
   1.102      cls.add_constructor([param('ns3::InternetStackHelper const &', 'arg0')])
   1.103 @@ -667,6 +732,21 @@
   1.104                     [param('ns3::NodeContainer', 'c')])
   1.105      return
   1.106  
   1.107 +def register_Ns3V4PingHelper_methods(root_module, cls):
   1.108 +    ## v4ping-helper.h: ns3::V4PingHelper::V4PingHelper(ns3::V4PingHelper const & arg0) [copy constructor]
   1.109 +    cls.add_constructor([param('ns3::V4PingHelper const &', 'arg0')])
   1.110 +    ## v4ping-helper.h: ns3::V4PingHelper::V4PingHelper(ns3::Ipv4Address remote) [constructor]
   1.111 +    cls.add_constructor([param('ns3::Ipv4Address', 'remote')])
   1.112 +    ## v4ping-helper.h: void ns3::V4PingHelper::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
   1.113 +    cls.add_method('SetAttribute', 
   1.114 +                   'void', 
   1.115 +                   [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
   1.116 +    ## v4ping-helper.h: ns3::ApplicationContainer ns3::V4PingHelper::Install(ns3::NodeContainer nodes) [member function]
   1.117 +    cls.add_method('Install', 
   1.118 +                   'ns3::ApplicationContainer', 
   1.119 +                   [param('ns3::NodeContainer', 'nodes')])
   1.120 +    return
   1.121 +
   1.122  def register_Ns3WifiHelper_methods(root_module, cls):
   1.123      ## wifi-helper.h: ns3::WifiHelper::WifiHelper(ns3::WifiHelper const & arg0) [copy constructor]
   1.124      cls.add_constructor([param('ns3::WifiHelper const &', 'arg0')])