bindings/python/ns3_module_point_to_point.py
changeset 3468 0bb5275704fc
parent 3460 99698bc858e8
child 3480 a920df6b9f02
equal deleted inserted replaced
3467:351f5847dda5 3468:0bb5275704fc
     1 from pybindgen import Module, FileCodeSink, write_preamble, param, retval
     1 from pybindgen import Module, FileCodeSink, param, retval, cppclass
     2 
     2 
     3 def register_types(module):
     3 def register_types(module):
     4     root_module = module.get_root()
     4     root_module = module.get_root()
     5     
     5     
     6     ## point-to-point-channel.h: ns3::PointToPointChannel [class]
     6     ## point-to-point-channel.h: ns3::PointToPointChannel [class]
    53     register_Ns3PointToPointNetDevice_methods(root_module, root_module['ns3::PointToPointNetDevice'])
    53     register_Ns3PointToPointNetDevice_methods(root_module, root_module['ns3::PointToPointNetDevice'])
    54     return
    54     return
    55 
    55 
    56 def register_Ns3PointToPointChannel_methods(root_module, cls):
    56 def register_Ns3PointToPointChannel_methods(root_module, cls):
    57     ## point-to-point-channel.h: static ns3::TypeId ns3::PointToPointChannel::GetTypeId() [member function]
    57     ## point-to-point-channel.h: static ns3::TypeId ns3::PointToPointChannel::GetTypeId() [member function]
    58     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
    58     cls.add_method('GetTypeId', 
       
    59                    'ns3::TypeId', 
       
    60                    [], 
       
    61                    is_static=True)
    59     ## point-to-point-channel.h: ns3::PointToPointChannel::PointToPointChannel() [constructor]
    62     ## point-to-point-channel.h: ns3::PointToPointChannel::PointToPointChannel() [constructor]
    60     cls.add_constructor([], visibility='public')
    63     cls.add_constructor([])
    61     ## point-to-point-channel.h: void ns3::PointToPointChannel::Attach(ns3::Ptr<ns3::PointToPointNetDevice> device) [member function]
    64     ## point-to-point-channel.h: void ns3::PointToPointChannel::Attach(ns3::Ptr<ns3::PointToPointNetDevice> device) [member function]
    62     cls.add_method('Attach', 'void', [param('ns3::Ptr< ns3::PointToPointNetDevice >', 'device')])
    65     cls.add_method('Attach', 
       
    66                    'void', 
       
    67                    [param('ns3::Ptr< ns3::PointToPointNetDevice >', 'device')])
    63     ## point-to-point-channel.h: bool ns3::PointToPointChannel::TransmitStart(ns3::Ptr<ns3::Packet> p, ns3::Ptr<ns3::PointToPointNetDevice> src, ns3::Time txTime) [member function]
    68     ## point-to-point-channel.h: bool ns3::PointToPointChannel::TransmitStart(ns3::Ptr<ns3::Packet> p, ns3::Ptr<ns3::PointToPointNetDevice> src, ns3::Time txTime) [member function]
    64     cls.add_method('TransmitStart', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ptr< ns3::PointToPointNetDevice >', 'src'), param('ns3::Time', 'txTime')])
    69     cls.add_method('TransmitStart', 
       
    70                    'bool', 
       
    71                    [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ptr< ns3::PointToPointNetDevice >', 'src'), param('ns3::Time', 'txTime')])
    65     ## point-to-point-channel.h: uint32_t ns3::PointToPointChannel::GetNDevices() const [member function]
    72     ## point-to-point-channel.h: uint32_t ns3::PointToPointChannel::GetNDevices() const [member function]
    66     cls.add_method('GetNDevices', 'uint32_t', [], is_const=True, is_virtual=True)
    73     cls.add_method('GetNDevices', 
       
    74                    'uint32_t', 
       
    75                    [], 
       
    76                    is_const=True, is_virtual=True)
    67     ## point-to-point-channel.h: ns3::Ptr<ns3::PointToPointNetDevice> ns3::PointToPointChannel::GetPointToPointDevice(uint32_t i) const [member function]
    77     ## point-to-point-channel.h: ns3::Ptr<ns3::PointToPointNetDevice> ns3::PointToPointChannel::GetPointToPointDevice(uint32_t i) const [member function]
    68     cls.add_method('GetPointToPointDevice', 'ns3::Ptr< ns3::PointToPointNetDevice >', [param('uint32_t', 'i')], is_const=True)
    78     cls.add_method('GetPointToPointDevice', 
       
    79                    'ns3::Ptr< ns3::PointToPointNetDevice >', 
       
    80                    [param('uint32_t', 'i')], 
       
    81                    is_const=True)
    69     ## point-to-point-channel.h: ns3::Ptr<ns3::NetDevice> ns3::PointToPointChannel::GetDevice(uint32_t i) const [member function]
    82     ## point-to-point-channel.h: ns3::Ptr<ns3::NetDevice> ns3::PointToPointChannel::GetDevice(uint32_t i) const [member function]
    70     cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_const=True, is_virtual=True)
    83     cls.add_method('GetDevice', 
       
    84                    'ns3::Ptr< ns3::NetDevice >', 
       
    85                    [param('uint32_t', 'i')], 
       
    86                    is_const=True, is_virtual=True)
    71     return
    87     return
    72 
    88 
    73 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
    89 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
    74     ## point-to-point-net-device.h: static ns3::TypeId ns3::PointToPointNetDevice::GetTypeId() [member function]
    90     ## point-to-point-net-device.h: static ns3::TypeId ns3::PointToPointNetDevice::GetTypeId() [member function]
    75     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
    91     cls.add_method('GetTypeId', 
       
    92                    'ns3::TypeId', 
       
    93                    [], 
       
    94                    is_static=True)
    76     ## point-to-point-net-device.h: ns3::PointToPointNetDevice::PointToPointNetDevice() [constructor]
    95     ## point-to-point-net-device.h: ns3::PointToPointNetDevice::PointToPointNetDevice() [constructor]
    77     cls.add_constructor([], visibility='public')
    96     cls.add_constructor([])
    78     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetDataRate(ns3::DataRate bps) [member function]
    97     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetDataRate(ns3::DataRate bps) [member function]
    79     cls.add_method('SetDataRate', 'void', [param('ns3::DataRate', 'bps')])
    98     cls.add_method('SetDataRate', 
       
    99                    'void', 
       
   100                    [param('ns3::DataRate', 'bps')])
    80     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetInterframeGap(ns3::Time t) [member function]
   101     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetInterframeGap(ns3::Time t) [member function]
    81     cls.add_method('SetInterframeGap', 'void', [param('ns3::Time', 't')])
   102     cls.add_method('SetInterframeGap', 
       
   103                    'void', 
       
   104                    [param('ns3::Time', 't')])
    82     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Attach(ns3::Ptr<ns3::PointToPointChannel> ch) [member function]
   105     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Attach(ns3::Ptr<ns3::PointToPointChannel> ch) [member function]
    83     cls.add_method('Attach', 'bool', [param('ns3::Ptr< ns3::PointToPointChannel >', 'ch')])
   106     cls.add_method('Attach', 
       
   107                    'bool', 
       
   108                    [param('ns3::Ptr< ns3::PointToPointChannel >', 'ch')])
    84     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetQueue(ns3::Ptr<ns3::Queue> queue) [member function]
   109     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetQueue(ns3::Ptr<ns3::Queue> queue) [member function]
    85     cls.add_method('SetQueue', 'void', [param('ns3::Ptr< ns3::Queue >', 'queue')])
   110     cls.add_method('SetQueue', 
       
   111                    'void', 
       
   112                    [param('ns3::Ptr< ns3::Queue >', 'queue')])
    86     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveErrorModel(ns3::Ptr<ns3::ErrorModel> em) [member function]
   113     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveErrorModel(ns3::Ptr<ns3::ErrorModel> em) [member function]
    87     cls.add_method('SetReceiveErrorModel', 'void', [param('ns3::Ptr< ns3::ErrorModel >', 'em')])
   114     cls.add_method('SetReceiveErrorModel', 
       
   115                    'void', 
       
   116                    [param('ns3::Ptr< ns3::ErrorModel >', 'em')])
    88     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::Receive(ns3::Ptr<ns3::Packet> p) [member function]
   117     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::Receive(ns3::Ptr<ns3::Packet> p) [member function]
    89     cls.add_method('Receive', 'void', [param('ns3::Ptr< ns3::Packet >', 'p')])
   118     cls.add_method('Receive', 
       
   119                    'void', 
       
   120                    [param('ns3::Ptr< ns3::Packet >', 'p')])
    90     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetAddress(ns3::Mac48Address addr) [member function]
   121     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetAddress(ns3::Mac48Address addr) [member function]
    91     cls.add_method('SetAddress', 'void', [param('ns3::Mac48Address', 'addr')])
   122     cls.add_method('SetAddress', 
       
   123                    'void', 
       
   124                    [param('ns3::Mac48Address', 'addr')])
    92     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetName(std::string const name) [member function]
   125     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetName(std::string const name) [member function]
    93     cls.add_method('SetName', 'void', [param('std::string', 'name', is_const=True)], is_virtual=True)
   126     cls.add_method('SetName', 
       
   127                    'void', 
       
   128                    [param('std::string', 'name', is_const=True)], 
       
   129                    is_virtual=True)
    94     ## point-to-point-net-device.h: std::string ns3::PointToPointNetDevice::GetName() const [member function]
   130     ## point-to-point-net-device.h: std::string ns3::PointToPointNetDevice::GetName() const [member function]
    95     cls.add_method('GetName', 'std::string', [], is_const=True, is_virtual=True)
   131     cls.add_method('GetName', 
       
   132                    'std::string', 
       
   133                    [], 
       
   134                    is_const=True, is_virtual=True)
    96     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetIfIndex(uint32_t const index) [member function]
   135     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetIfIndex(uint32_t const index) [member function]
    97     cls.add_method('SetIfIndex', 'void', [param('uint32_t', 'index', is_const=True)], is_virtual=True)
   136     cls.add_method('SetIfIndex', 
       
   137                    'void', 
       
   138                    [param('uint32_t', 'index', is_const=True)], 
       
   139                    is_virtual=True)
    98     ## point-to-point-net-device.h: uint32_t ns3::PointToPointNetDevice::GetIfIndex() const [member function]
   140     ## point-to-point-net-device.h: uint32_t ns3::PointToPointNetDevice::GetIfIndex() const [member function]
    99     cls.add_method('GetIfIndex', 'uint32_t', [], is_const=True, is_virtual=True)
   141     cls.add_method('GetIfIndex', 
       
   142                    'uint32_t', 
       
   143                    [], 
       
   144                    is_const=True, is_virtual=True)
   100     ## point-to-point-net-device.h: ns3::Ptr<ns3::Channel> ns3::PointToPointNetDevice::GetChannel() const [member function]
   145     ## point-to-point-net-device.h: ns3::Ptr<ns3::Channel> ns3::PointToPointNetDevice::GetChannel() const [member function]
   101     cls.add_method('GetChannel', 'ns3::Ptr< ns3::Channel >', [], is_const=True, is_virtual=True)
   146     cls.add_method('GetChannel', 
       
   147                    'ns3::Ptr< ns3::Channel >', 
       
   148                    [], 
       
   149                    is_const=True, is_virtual=True)
   102     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetAddress() const [member function]
   150     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetAddress() const [member function]
   103     cls.add_method('GetAddress', 'ns3::Address', [], is_const=True, is_virtual=True)
   151     cls.add_method('GetAddress', 
       
   152                    'ns3::Address', 
       
   153                    [], 
       
   154                    is_const=True, is_virtual=True)
   104     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SetMtu(uint16_t const mtu) [member function]
   155     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SetMtu(uint16_t const mtu) [member function]
   105     cls.add_method('SetMtu', 'bool', [param('uint16_t', 'mtu', is_const=True)], is_virtual=True)
   156     cls.add_method('SetMtu', 
       
   157                    'bool', 
       
   158                    [param('uint16_t', 'mtu', is_const=True)], 
       
   159                    is_virtual=True)
   106     ## point-to-point-net-device.h: uint16_t ns3::PointToPointNetDevice::GetMtu() const [member function]
   160     ## point-to-point-net-device.h: uint16_t ns3::PointToPointNetDevice::GetMtu() const [member function]
   107     cls.add_method('GetMtu', 'uint16_t', [], is_const=True, is_virtual=True)
   161     cls.add_method('GetMtu', 
       
   162                    'uint16_t', 
       
   163                    [], 
       
   164                    is_const=True, is_virtual=True)
   108     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsLinkUp() const [member function]
   165     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsLinkUp() const [member function]
   109     cls.add_method('IsLinkUp', 'bool', [], is_const=True, is_virtual=True)
   166     cls.add_method('IsLinkUp', 
       
   167                    'bool', 
       
   168                    [], 
       
   169                    is_const=True, is_virtual=True)
   110     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
   170     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
   111     cls.add_method('SetLinkChangeCallback', 'void', [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], is_virtual=True)
   171     cls.add_method('SetLinkChangeCallback', 
       
   172                    'void', 
       
   173                    [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], 
       
   174                    is_virtual=True)
   112     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsBroadcast() const [member function]
   175     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsBroadcast() const [member function]
   113     cls.add_method('IsBroadcast', 'bool', [], is_const=True, is_virtual=True)
   176     cls.add_method('IsBroadcast', 
       
   177                    'bool', 
       
   178                    [], 
       
   179                    is_const=True, is_virtual=True)
   114     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetBroadcast() const [member function]
   180     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetBroadcast() const [member function]
   115     cls.add_method('GetBroadcast', 'ns3::Address', [], is_const=True, is_virtual=True)
   181     cls.add_method('GetBroadcast', 
       
   182                    'ns3::Address', 
       
   183                    [], 
       
   184                    is_const=True, is_virtual=True)
   116     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsMulticast() const [member function]
   185     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsMulticast() const [member function]
   117     cls.add_method('IsMulticast', 'bool', [], is_const=True, is_virtual=True)
   186     cls.add_method('IsMulticast', 
       
   187                    'bool', 
       
   188                    [], 
       
   189                    is_const=True, is_virtual=True)
   118     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetMulticast() const [member function]
   190     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetMulticast() const [member function]
   119     cls.add_method('GetMulticast', 'ns3::Address', [], is_const=True, is_virtual=True)
   191     cls.add_method('GetMulticast', 
       
   192                    'ns3::Address', 
       
   193                    [], 
       
   194                    is_const=True, is_virtual=True)
   120     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::MakeMulticastAddress(ns3::Ipv4Address multicastGroup) const [member function]
   195     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::MakeMulticastAddress(ns3::Ipv4Address multicastGroup) const [member function]
   121     cls.add_method('MakeMulticastAddress', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_const=True, is_virtual=True)
   196     cls.add_method('MakeMulticastAddress', 
       
   197                    'ns3::Address', 
       
   198                    [param('ns3::Ipv4Address', 'multicastGroup')], 
       
   199                    is_const=True, is_virtual=True)
   122     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsPointToPoint() const [member function]
   200     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsPointToPoint() const [member function]
   123     cls.add_method('IsPointToPoint', 'bool', [], is_const=True, is_virtual=True)
   201     cls.add_method('IsPointToPoint', 
       
   202                    'bool', 
       
   203                    [], 
       
   204                    is_const=True, is_virtual=True)
   124     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   205     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   125     cls.add_method('Send', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], is_virtual=True)
   206     cls.add_method('Send', 
       
   207                    'bool', 
       
   208                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], 
       
   209                    is_virtual=True)
   126     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   210     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   127     cls.add_method('SendFrom', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'source', is_const=True), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], is_virtual=True)
   211     cls.add_method('SendFrom', 
       
   212                    'bool', 
       
   213                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'source', is_const=True), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], 
       
   214                    is_virtual=True)
   128     ## point-to-point-net-device.h: ns3::Ptr<ns3::Node> ns3::PointToPointNetDevice::GetNode() const [member function]
   215     ## point-to-point-net-device.h: ns3::Ptr<ns3::Node> ns3::PointToPointNetDevice::GetNode() const [member function]
   129     cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_const=True, is_virtual=True)
   216     cls.add_method('GetNode', 
       
   217                    'ns3::Ptr< ns3::Node >', 
       
   218                    [], 
       
   219                    is_const=True, is_virtual=True)
   130     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   220     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   131     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_virtual=True)
   221     cls.add_method('SetNode', 
       
   222                    'void', 
       
   223                    [param('ns3::Ptr< ns3::Node >', 'node')], 
       
   224                    is_virtual=True)
   132     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::NeedsArp() const [member function]
   225     ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::NeedsArp() const [member function]
   133     cls.add_method('NeedsArp', 'bool', [], is_const=True, is_virtual=True)
   226     cls.add_method('NeedsArp', 
       
   227                    'bool', 
       
   228                    [], 
       
   229                    is_const=True, is_virtual=True)
   134     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   230     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   135     cls.add_method('SetReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'cb')], is_virtual=True)
   231     cls.add_method('SetReceiveCallback', 
       
   232                    'void', 
       
   233                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'cb')], 
       
   234                    is_virtual=True)
   136     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   235     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
   137     cls.add_method('DoDispose', 'void', [], visibility='private', is_virtual=True)
   236     cls.add_method('DoDispose', 
       
   237                    'void', 
       
   238                    [], 
       
   239                    visibility='private', is_virtual=True)
   138     return
   240     return
   139 
   241 
   140 def register_functions(root_module):
   242 def register_functions(root_module):
   141     module = root_module
   243     module = root_module
   142     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   244     register_functions_ns3_internal(module.get_submodule('internal'), root_module)