bindings/python/ns3_module_helper.py
changeset 4407 ef566eeff84f
parent 4382 e63da65e8fb9
child 4422 f5ef533e56e4
equal deleted inserted replaced
4406:39f119de91ef 4407:ef566eeff84f
    45     module.add_class('UdpEchoServerHelper', allow_subclassing=False)
    45     module.add_class('UdpEchoServerHelper', allow_subclassing=False)
    46     ## v4ping-helper.h: ns3::V4PingHelper [class]
    46     ## v4ping-helper.h: ns3::V4PingHelper [class]
    47     module.add_class('V4PingHelper', allow_subclassing=False)
    47     module.add_class('V4PingHelper', allow_subclassing=False)
    48     ## wifi-helper.h: ns3::WifiHelper [class]
    48     ## wifi-helper.h: ns3::WifiHelper [class]
    49     module.add_class('WifiHelper', allow_subclassing=False)
    49     module.add_class('WifiHelper', allow_subclassing=False)
       
    50     ## wifi-helper.h: ns3::WifiMacHelper [class]
       
    51     module.add_class('WifiMacHelper', allow_subclassing=False)
    50     ## wifi-helper.h: ns3::WifiPhyHelper [class]
    52     ## wifi-helper.h: ns3::WifiPhyHelper [class]
    51     module.add_class('WifiPhyHelper', allow_subclassing=False)
    53     module.add_class('WifiPhyHelper', allow_subclassing=False)
    52     ## yans-wifi-helper.h: ns3::YansWifiChannelHelper [class]
    54     ## yans-wifi-helper.h: ns3::YansWifiChannelHelper [class]
    53     module.add_class('YansWifiChannelHelper', allow_subclassing=False)
    55     module.add_class('YansWifiChannelHelper', allow_subclassing=False)
    54     ## yans-wifi-helper.h: ns3::YansWifiPhyHelper [class]
    56     ## yans-wifi-helper.h: ns3::YansWifiPhyHelper [class]
    55     module.add_class('YansWifiPhyHelper', allow_subclassing=False, parent=root_module['ns3::WifiPhyHelper'])
    57     module.add_class('YansWifiPhyHelper', allow_subclassing=False, parent=root_module['ns3::WifiPhyHelper'])
       
    58     ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper [class]
       
    59     module.add_class('NqosWifiMacHelper', allow_subclassing=False, parent=root_module['ns3::WifiMacHelper'])
    56     
    60     
    57     ## Register a nested module for the namespace Config
    61     ## Register a nested module for the namespace Config
    58     
    62     
    59     nested_module = module.add_cpp_namespace('Config')
    63     nested_module = module.add_cpp_namespace('Config')
    60     register_types_ns3_Config(nested_module)
    64     register_types_ns3_Config(nested_module)
   115     register_Ns3TapBridgeHelper_methods(root_module, root_module['ns3::TapBridgeHelper'])
   119     register_Ns3TapBridgeHelper_methods(root_module, root_module['ns3::TapBridgeHelper'])
   116     register_Ns3UdpEchoClientHelper_methods(root_module, root_module['ns3::UdpEchoClientHelper'])
   120     register_Ns3UdpEchoClientHelper_methods(root_module, root_module['ns3::UdpEchoClientHelper'])
   117     register_Ns3UdpEchoServerHelper_methods(root_module, root_module['ns3::UdpEchoServerHelper'])
   121     register_Ns3UdpEchoServerHelper_methods(root_module, root_module['ns3::UdpEchoServerHelper'])
   118     register_Ns3V4PingHelper_methods(root_module, root_module['ns3::V4PingHelper'])
   122     register_Ns3V4PingHelper_methods(root_module, root_module['ns3::V4PingHelper'])
   119     register_Ns3WifiHelper_methods(root_module, root_module['ns3::WifiHelper'])
   123     register_Ns3WifiHelper_methods(root_module, root_module['ns3::WifiHelper'])
       
   124     register_Ns3WifiMacHelper_methods(root_module, root_module['ns3::WifiMacHelper'])
   120     register_Ns3WifiPhyHelper_methods(root_module, root_module['ns3::WifiPhyHelper'])
   125     register_Ns3WifiPhyHelper_methods(root_module, root_module['ns3::WifiPhyHelper'])
   121     register_Ns3YansWifiChannelHelper_methods(root_module, root_module['ns3::YansWifiChannelHelper'])
   126     register_Ns3YansWifiChannelHelper_methods(root_module, root_module['ns3::YansWifiChannelHelper'])
   122     register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper'])
   127     register_Ns3YansWifiPhyHelper_methods(root_module, root_module['ns3::YansWifiPhyHelper'])
       
   128     register_Ns3NqosWifiMacHelper_methods(root_module, root_module['ns3::NqosWifiMacHelper'])
   123     return
   129     return
   124 
   130 
   125 def register_Ns3ApplicationContainer_methods(root_module, cls):
   131 def register_Ns3ApplicationContainer_methods(root_module, cls):
   126     ## application-container.h: ns3::ApplicationContainer::ApplicationContainer(ns3::ApplicationContainer const & arg0) [copy constructor]
   132     ## application-container.h: ns3::ApplicationContainer::ApplicationContainer(ns3::ApplicationContainer const & arg0) [copy constructor]
   127     cls.add_constructor([param('ns3::ApplicationContainer const &', 'arg0')])
   133     cls.add_constructor([param('ns3::ApplicationContainer const &', 'arg0')])
  1066                    is_static=True)
  1072                    is_static=True)
  1067     ## wifi-helper.h: void ns3::WifiHelper::SetRemoteStationManager(std::string type, 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]
  1073     ## wifi-helper.h: void ns3::WifiHelper::SetRemoteStationManager(std::string type, 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]
  1068     cls.add_method('SetRemoteStationManager', 
  1074     cls.add_method('SetRemoteStationManager', 
  1069                    'void', 
  1075                    'void', 
  1070                    [param('std::string', 'type'), 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()')])
  1076                    [param('std::string', 'type'), 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()')])
  1071     ## wifi-helper.h: void ns3::WifiHelper::SetMac(std::string type, 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]
  1077     ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, ns3::WifiMacHelper const & mac, ns3::NodeContainer c) const [member function]
  1072     cls.add_method('SetMac', 
  1078     cls.add_method('Install', 
  1073                    'void', 
  1079                    'ns3::NetDeviceContainer', 
  1074                    [param('std::string', 'type'), 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()')])
  1080                    [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::WifiMacHelper const &', 'mac'), param('ns3::NodeContainer', 'c')], 
  1075     ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, ns3::NodeContainer c) const [member function]
  1081                    is_const=True)
  1076     cls.add_method('Install', 
  1082     ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, ns3::WifiMacHelper const & mac, ns3::Ptr<ns3::Node> node) const [member function]
  1077                    'ns3::NetDeviceContainer', 
  1083     cls.add_method('Install', 
  1078                    [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::NodeContainer', 'c')], 
  1084                    'ns3::NetDeviceContainer', 
  1079                    is_const=True)
  1085                    [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::WifiMacHelper const &', 'mac'), param('ns3::Ptr< ns3::Node >', 'node')], 
  1080     ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, ns3::Ptr<ns3::Node> node) const [member function]
  1086                    is_const=True)
  1081     cls.add_method('Install', 
  1087     ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, ns3::WifiMacHelper const & mac, std::string nodeName) const [member function]
  1082                    'ns3::NetDeviceContainer', 
  1088     cls.add_method('Install', 
  1083                    [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::Ptr< ns3::Node >', 'node')], 
  1089                    'ns3::NetDeviceContainer', 
  1084                    is_const=True)
  1090                    [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::WifiMacHelper const &', 'mac'), param('std::string', 'nodeName')], 
  1085     ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, std::string nodeName) const [member function]
  1091                    is_const=True)
  1086     cls.add_method('Install', 
  1092     return
  1087                    'ns3::NetDeviceContainer', 
  1093 
  1088                    [param('ns3::WifiPhyHelper const &', 'phy'), param('std::string', 'nodeName')], 
  1094 def register_Ns3WifiMacHelper_methods(root_module, cls):
  1089                    is_const=True)
  1095     ## wifi-helper.h: ns3::WifiMacHelper::WifiMacHelper(ns3::WifiMacHelper const & arg0) [copy constructor]
       
  1096     cls.add_constructor([param('ns3::WifiMacHelper const &', 'arg0')])
       
  1097     ## wifi-helper.h: ns3::WifiMacHelper::WifiMacHelper() [constructor]
       
  1098     cls.add_constructor([])
       
  1099     ## wifi-helper.h: ns3::Ptr<ns3::WifiMac> ns3::WifiMacHelper::Create() const [member function]
       
  1100     cls.add_method('Create', 
       
  1101                    'ns3::Ptr< ns3::WifiMac >', 
       
  1102                    [], 
       
  1103                    is_pure_virtual=True, is_const=True, is_virtual=True)
  1090     return
  1104     return
  1091 
  1105 
  1092 def register_Ns3WifiPhyHelper_methods(root_module, cls):
  1106 def register_Ns3WifiPhyHelper_methods(root_module, cls):
  1093     ## wifi-helper.h: ns3::WifiPhyHelper::WifiPhyHelper(ns3::WifiPhyHelper const & arg0) [copy constructor]
  1107     ## wifi-helper.h: ns3::WifiPhyHelper::WifiPhyHelper(ns3::WifiPhyHelper const & arg0) [copy constructor]
  1094     cls.add_constructor([param('ns3::WifiPhyHelper const &', 'arg0')])
  1108     cls.add_constructor([param('ns3::WifiPhyHelper const &', 'arg0')])
  1204                    is_static=True)
  1218                    is_static=True)
  1205     ## yans-wifi-helper.h: ns3::Ptr<ns3::WifiPhy> ns3::YansWifiPhyHelper::Create(ns3::Ptr<ns3::Node> node, ns3::Ptr<ns3::WifiNetDevice> device) const [member function]
  1219     ## yans-wifi-helper.h: ns3::Ptr<ns3::WifiPhy> ns3::YansWifiPhyHelper::Create(ns3::Ptr<ns3::Node> node, ns3::Ptr<ns3::WifiNetDevice> device) const [member function]
  1206     cls.add_method('Create', 
  1220     cls.add_method('Create', 
  1207                    'ns3::Ptr< ns3::WifiPhy >', 
  1221                    'ns3::Ptr< ns3::WifiPhy >', 
  1208                    [param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::Ptr< ns3::WifiNetDevice >', 'device')], 
  1222                    [param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::Ptr< ns3::WifiNetDevice >', 'device')], 
       
  1223                    is_const=True, visibility='private', is_virtual=True)
       
  1224     return
       
  1225 
       
  1226 def register_Ns3NqosWifiMacHelper_methods(root_module, cls):
       
  1227     ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper::NqosWifiMacHelper(ns3::NqosWifiMacHelper const & arg0) [copy constructor]
       
  1228     cls.add_constructor([param('ns3::NqosWifiMacHelper const &', 'arg0')])
       
  1229     ## nqos-wifi-mac-helper.h: ns3::NqosWifiMacHelper::NqosWifiMacHelper() [constructor]
       
  1230     cls.add_constructor([])
       
  1231     ## nqos-wifi-mac-helper.h: static ns3::NqosWifiMacHelper ns3::NqosWifiMacHelper::Default() [member function]
       
  1232     cls.add_method('Default', 
       
  1233                    'ns3::NqosWifiMacHelper', 
       
  1234                    [], 
       
  1235                    is_static=True)
       
  1236     ## nqos-wifi-mac-helper.h: void ns3::NqosWifiMacHelper::SetType(std::string type, 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]
       
  1237     cls.add_method('SetType', 
       
  1238                    'void', 
       
  1239                    [param('std::string', 'type'), 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()')])
       
  1240     ## nqos-wifi-mac-helper.h: void ns3::NqosWifiMacHelper::SetDcaParameters(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()) [member function]
       
  1241     cls.add_method('SetDcaParameters', 
       
  1242                    'void', 
       
  1243                    [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()')])
       
  1244     ## nqos-wifi-mac-helper.h: ns3::Ptr<ns3::WifiMac> ns3::NqosWifiMacHelper::Create() const [member function]
       
  1245     cls.add_method('Create', 
       
  1246                    'ns3::Ptr< ns3::WifiMac >', 
       
  1247                    [], 
  1209                    is_const=True, visibility='private', is_virtual=True)
  1248                    is_const=True, visibility='private', is_virtual=True)
  1210     return
  1249     return
  1211 
  1250 
  1212 def register_functions(root_module):
  1251 def register_functions(root_module):
  1213     module = root_module
  1252     module = root_module