bindings/python/ns3_module_node.py
changeset 3457 2ff6f05b9467
parent 3416 926ccb845111
child 3460 99698bc858e8
equal deleted inserted replaced
3456:7f2d5300ad02 3457:2ff6f05b9467
    38     ## packet-socket-address.h: ns3::PacketSocketAddress [class]
    38     ## packet-socket-address.h: ns3::PacketSocketAddress [class]
    39     root_module['ns3::PacketSocketAddress'].implicitly_converts_to(root_module['ns3::Address'])
    39     root_module['ns3::PacketSocketAddress'].implicitly_converts_to(root_module['ns3::Address'])
    40     ## ipv4-address.h: ns3::Ipv4Mask [class]
    40     ## ipv4-address.h: ns3::Ipv4Mask [class]
    41     module.add_class('Ipv4Mask')
    41     module.add_class('Ipv4Mask')
    42     ## ipv4-address.h: ns3::Ipv4AddressValue [class]
    42     ## ipv4-address.h: ns3::Ipv4AddressValue [class]
    43     module.add_class('Ipv4AddressValue', allow_subclassing=True, parent=root_module['ns3::AttributeValue'])
    43     module.add_class('Ipv4AddressValue', parent=root_module['ns3::AttributeValue'])
    44     ## ipv4.h: ns3::Ipv4RoutingProtocol [class]
    44     ## ipv4.h: ns3::Ipv4RoutingProtocol [class]
    45     module.add_class('Ipv4RoutingProtocol', allow_subclassing=True, parent=root_module['ns3::Object'])
    45     module.add_class('Ipv4RoutingProtocol', parent=root_module['ns3::Object'])
    46     ## mac48-address.h: ns3::Mac48AddressValue [class]
    46     ## mac48-address.h: ns3::Mac48AddressValue [class]
    47     module.add_class('Mac48AddressValue', allow_subclassing=True, parent=root_module['ns3::AttributeValue'])
    47     module.add_class('Mac48AddressValue', parent=root_module['ns3::AttributeValue'])
    48     ## ipv4-address.h: ns3::Ipv4MaskValue [class]
    48     ## ipv4-address.h: ns3::Ipv4MaskValue [class]
    49     module.add_class('Ipv4MaskValue', allow_subclassing=True, parent=root_module['ns3::AttributeValue'])
    49     module.add_class('Ipv4MaskValue', parent=root_module['ns3::AttributeValue'])
    50     ## socket.h: ns3::SocketAddressTag [class]
    50     ## socket.h: ns3::SocketAddressTag [class]
    51     module.add_class('SocketAddressTag', allow_subclassing=True, parent=root_module['ns3::Tag'])
    51     module.add_class('SocketAddressTag', parent=root_module['ns3::Tag'])
    52     ## inet-socket-address.h: ns3::InetSocketAddress [class]
    52     ## inet-socket-address.h: ns3::InetSocketAddress [class]
    53     module.add_class('InetSocketAddress')
    53     module.add_class('InetSocketAddress')
    54     ## inet-socket-address.h: ns3::InetSocketAddress [class]
    54     ## inet-socket-address.h: ns3::InetSocketAddress [class]
    55     root_module['ns3::InetSocketAddress'].implicitly_converts_to(root_module['ns3::Address'])
    55     root_module['ns3::InetSocketAddress'].implicitly_converts_to(root_module['ns3::Address'])
    56     ## ipv4-address.h: ns3::Ipv4Address [class]
    56     ## ipv4-address.h: ns3::Ipv4Address [class]
    57     module.add_class('Ipv4Address')
    57     module.add_class('Ipv4Address')
    58     ## ipv4-address.h: ns3::Ipv4Address [class]
    58     ## ipv4-address.h: ns3::Ipv4Address [class]
    59     root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address'])
    59     root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address'])
    60     ## application.h: ns3::Application [class]
    60     ## application.h: ns3::Application [class]
    61     module.add_class('Application', allow_subclassing=True, parent=root_module['ns3::Object'])
    61     module.add_class('Application', parent=root_module['ns3::Object'])
    62     ## queue.h: ns3::Queue [class]
    62     ## queue.h: ns3::Queue [class]
    63     module.add_class('Queue', allow_subclassing=True, parent=root_module['ns3::Object'])
    63     module.add_class('Queue', parent=root_module['ns3::Object'])
    64     ## socket.h: ns3::Socket [class]
    64     ## socket.h: ns3::Socket [class]
    65     module.add_class('Socket', allow_subclassing=True, parent=root_module['ns3::Object'])
    65     module.add_class('Socket', parent=root_module['ns3::Object'])
    66     ## socket.h: ns3::Socket::SocketErrno [enumeration]
    66     ## socket.h: ns3::Socket::SocketErrno [enumeration]
    67     module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'])
    67     module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'])
    68     ## ipv4-header.h: ns3::Ipv4Header [class]
    68     ## ipv4-header.h: ns3::Ipv4Header [class]
    69     module.add_class('Ipv4Header', allow_subclassing=True, parent=root_module['ns3::Header'])
    69     module.add_class('Ipv4Header', parent=root_module['ns3::Header'])
    70     ## udp-socket.h: ns3::UdpSocket [class]
    70     ## udp-socket.h: ns3::UdpSocket [class]
    71     module.add_class('UdpSocket', allow_subclassing=True, parent=root_module['ns3::Socket'])
    71     module.add_class('UdpSocket', parent=root_module['ns3::Socket'])
    72     ## net-device.h: ns3::NetDevice [class]
    72     ## net-device.h: ns3::NetDevice [class]
    73     module.add_class('NetDevice', allow_subclassing=True, parent=root_module['ns3::Object'])
    73     module.add_class('NetDevice', parent=root_module['ns3::Object'])
       
    74     ## net-device.h: ns3::NetDevice::PacketType [enumeration]
       
    75     module.add_enum('PacketType', ['PACKET_HOST', 'PACKET_BROADCAST', 'PACKET_MULTICAST', 'PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'])
       
    76     ## address.h: ns3::AddressValue [class]
       
    77     module.add_class('AddressValue', parent=root_module['ns3::AttributeValue'])
       
    78     ## node.h: ns3::Node [class]
       
    79     module.add_class('Node', parent=root_module['ns3::Object'])
       
    80     ## tcp-socket.h: ns3::TcpSocket [class]
       
    81     module.add_class('TcpSocket', parent=root_module['ns3::Socket'])
    74     ## channel.h: ns3::Channel [class]
    82     ## channel.h: ns3::Channel [class]
    75     module.add_class('Channel', allow_subclassing=True, parent=root_module['ns3::Object'])
    83     module.add_class('Channel', parent=root_module['ns3::Object'])
    76     ## simple-channel.h: ns3::SimpleChannel [class]
       
    77     module.add_class('SimpleChannel', allow_subclassing=True, parent=root_module['ns3::Channel'])
       
    78     ## address.h: ns3::AddressValue [class]
       
    79     module.add_class('AddressValue', allow_subclassing=True, parent=root_module['ns3::AttributeValue'])
       
    80     ## node.h: ns3::Node [class]
       
    81     module.add_class('Node', allow_subclassing=True, parent=root_module['ns3::Object'])
       
    82     ## tcp-socket.h: ns3::TcpSocket [class]
       
    83     module.add_class('TcpSocket', allow_subclassing=True, parent=root_module['ns3::Socket'])
       
    84     ## ethernet-header.h: ns3::EthernetHeader [class]
    84     ## ethernet-header.h: ns3::EthernetHeader [class]
    85     module.add_class('EthernetHeader', allow_subclassing=True, parent=root_module['ns3::Header'])
    85     module.add_class('EthernetHeader', parent=root_module['ns3::Header'])
    86     ## socket.h: ns3::SocketIpTtlTag [class]
    86     ## socket.h: ns3::SocketIpTtlTag [class]
    87     module.add_class('SocketIpTtlTag', allow_subclassing=True, parent=root_module['ns3::Tag'])
    87     module.add_class('SocketIpTtlTag', parent=root_module['ns3::Tag'])
    88     ## ipv4.h: ns3::Ipv4 [class]
    88     ## ipv4.h: ns3::Ipv4 [class]
    89     module.add_class('Ipv4', allow_subclassing=True, parent=root_module['ns3::Object'])
    89     module.add_class('Ipv4', parent=root_module['ns3::Object'])
    90     ## socket-factory.h: ns3::SocketFactory [class]
    90     ## socket-factory.h: ns3::SocketFactory [class]
    91     module.add_class('SocketFactory', allow_subclassing=True, parent=root_module['ns3::Object'])
    91     module.add_class('SocketFactory', parent=root_module['ns3::Object'])
    92     ## drop-tail-queue.h: ns3::DropTailQueue [class]
    92     ## drop-tail-queue.h: ns3::DropTailQueue [class]
    93     module.add_class('DropTailQueue', allow_subclassing=True, parent=root_module['ns3::Queue'])
    93     module.add_class('DropTailQueue', parent=root_module['ns3::Queue'])
    94     ## ethernet-trailer.h: ns3::EthernetTrailer [class]
    94     ## ethernet-trailer.h: ns3::EthernetTrailer [class]
    95     module.add_class('EthernetTrailer', allow_subclassing=True, parent=root_module['ns3::Trailer'])
    95     module.add_class('EthernetTrailer', parent=root_module['ns3::Trailer'])
    96     ## llc-snap-header.h: ns3::LlcSnapHeader [class]
    96     ## llc-snap-header.h: ns3::LlcSnapHeader [class]
    97     module.add_class('LlcSnapHeader', allow_subclassing=True, parent=root_module['ns3::Header'])
    97     module.add_class('LlcSnapHeader', parent=root_module['ns3::Header'])
    98     ## udp-socket-factory.h: ns3::UdpSocketFactory [class]
    98     ## udp-socket-factory.h: ns3::UdpSocketFactory [class]
    99     module.add_class('UdpSocketFactory', parent=root_module['ns3::SocketFactory'])
    99     module.add_class('UdpSocketFactory', parent=root_module['ns3::SocketFactory'])
   100     ## simple-net-device.h: ns3::SimpleNetDevice [class]
   100     ## simple-net-device.h: ns3::SimpleNetDevice [class]
   101     module.add_class('SimpleNetDevice', allow_subclassing=True, parent=root_module['ns3::NetDevice'])
   101     module.add_class('SimpleNetDevice', parent=root_module['ns3::NetDevice'])
       
   102     ## simple-channel.h: ns3::SimpleChannel [class]
       
   103     module.add_class('SimpleChannel', parent=root_module['ns3::Channel'])
   102     ## tcp-socket-factory.h: ns3::TcpSocketFactory [class]
   104     ## tcp-socket-factory.h: ns3::TcpSocketFactory [class]
   103     module.add_class('TcpSocketFactory', parent=root_module['ns3::SocketFactory'])
   105     module.add_class('TcpSocketFactory', parent=root_module['ns3::SocketFactory'])
   104     ## packet-socket-factory.h: ns3::PacketSocketFactory [class]
   106     ## packet-socket-factory.h: ns3::PacketSocketFactory [class]
   105     module.add_class('PacketSocketFactory', allow_subclassing=True, parent=root_module['ns3::SocketFactory'])
   107     module.add_class('PacketSocketFactory', parent=root_module['ns3::SocketFactory'])
   106     
   108     
   107     ## Register a nested module for the namespace internal
   109     ## Register a nested module for the namespace internal
   108     
   110     
   109     nested_module = module.add_cpp_namespace('internal')
   111     nested_module = module.add_cpp_namespace('internal')
   110     register_types_ns3_internal(nested_module)
   112     register_types_ns3_internal(nested_module)
   169     register_Ns3Queue_methods(root_module, root_module['ns3::Queue'])
   171     register_Ns3Queue_methods(root_module, root_module['ns3::Queue'])
   170     register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
   172     register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
   171     register_Ns3Ipv4Header_methods(root_module, root_module['ns3::Ipv4Header'])
   173     register_Ns3Ipv4Header_methods(root_module, root_module['ns3::Ipv4Header'])
   172     register_Ns3UdpSocket_methods(root_module, root_module['ns3::UdpSocket'])
   174     register_Ns3UdpSocket_methods(root_module, root_module['ns3::UdpSocket'])
   173     register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice'])
   175     register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice'])
   174     register_Ns3Channel_methods(root_module, root_module['ns3::Channel'])
       
   175     register_Ns3SimpleChannel_methods(root_module, root_module['ns3::SimpleChannel'])
       
   176     register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
   176     register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
   177     register_Ns3Node_methods(root_module, root_module['ns3::Node'])
   177     register_Ns3Node_methods(root_module, root_module['ns3::Node'])
   178     register_Ns3TcpSocket_methods(root_module, root_module['ns3::TcpSocket'])
   178     register_Ns3TcpSocket_methods(root_module, root_module['ns3::TcpSocket'])
       
   179     register_Ns3Channel_methods(root_module, root_module['ns3::Channel'])
   179     register_Ns3EthernetHeader_methods(root_module, root_module['ns3::EthernetHeader'])
   180     register_Ns3EthernetHeader_methods(root_module, root_module['ns3::EthernetHeader'])
   180     register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
   181     register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
   181     register_Ns3Ipv4_methods(root_module, root_module['ns3::Ipv4'])
   182     register_Ns3Ipv4_methods(root_module, root_module['ns3::Ipv4'])
   182     register_Ns3SocketFactory_methods(root_module, root_module['ns3::SocketFactory'])
   183     register_Ns3SocketFactory_methods(root_module, root_module['ns3::SocketFactory'])
   183     register_Ns3DropTailQueue_methods(root_module, root_module['ns3::DropTailQueue'])
   184     register_Ns3DropTailQueue_methods(root_module, root_module['ns3::DropTailQueue'])
   184     register_Ns3EthernetTrailer_methods(root_module, root_module['ns3::EthernetTrailer'])
   185     register_Ns3EthernetTrailer_methods(root_module, root_module['ns3::EthernetTrailer'])
   185     register_Ns3LlcSnapHeader_methods(root_module, root_module['ns3::LlcSnapHeader'])
   186     register_Ns3LlcSnapHeader_methods(root_module, root_module['ns3::LlcSnapHeader'])
   186     register_Ns3UdpSocketFactory_methods(root_module, root_module['ns3::UdpSocketFactory'])
   187     register_Ns3UdpSocketFactory_methods(root_module, root_module['ns3::UdpSocketFactory'])
   187     register_Ns3SimpleNetDevice_methods(root_module, root_module['ns3::SimpleNetDevice'])
   188     register_Ns3SimpleNetDevice_methods(root_module, root_module['ns3::SimpleNetDevice'])
       
   189     register_Ns3SimpleChannel_methods(root_module, root_module['ns3::SimpleChannel'])
   188     register_Ns3TcpSocketFactory_methods(root_module, root_module['ns3::TcpSocketFactory'])
   190     register_Ns3TcpSocketFactory_methods(root_module, root_module['ns3::TcpSocketFactory'])
   189     register_Ns3PacketSocketFactory_methods(root_module, root_module['ns3::PacketSocketFactory'])
   191     register_Ns3PacketSocketFactory_methods(root_module, root_module['ns3::PacketSocketFactory'])
   190     return
   192     return
   191 
   193 
   192 def register_Ns3NodeList_methods(root_module, cls):
   194 def register_Ns3NodeList_methods(root_module, cls):
   849     cls.add_method('MakeMulticastAddress', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_pure_virtual=True, is_const=True, is_virtual=True)
   851     cls.add_method('MakeMulticastAddress', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_pure_virtual=True, is_const=True, is_virtual=True)
   850     ## net-device.h: bool ns3::NetDevice::IsPointToPoint() const [member function]
   852     ## net-device.h: bool ns3::NetDevice::IsPointToPoint() const [member function]
   851     cls.add_method('IsPointToPoint', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True)
   853     cls.add_method('IsPointToPoint', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True)
   852     ## net-device.h: bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   854     ## net-device.h: bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   853     cls.add_method('Send', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], is_pure_virtual=True, is_virtual=True)
   855     cls.add_method('Send', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address&', 'dest', is_const=True), param('uint16_t', 'protocolNumber')], is_pure_virtual=True, is_virtual=True)
       
   856     ## net-device.h: bool ns3::NetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
       
   857     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_pure_virtual=True, is_virtual=True)
   854     ## net-device.h: ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function]
   858     ## net-device.h: ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function]
   855     cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_pure_virtual=True, is_const=True, is_virtual=True)
   859     cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_pure_virtual=True, is_const=True, is_virtual=True)
   856     ## net-device.h: void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   860     ## net-device.h: void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   857     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_pure_virtual=True, is_virtual=True)
   861     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_pure_virtual=True, is_virtual=True)
   858     ## net-device.h: bool ns3::NetDevice::NeedsArp() const [member function]
   862     ## net-device.h: bool ns3::NetDevice::NeedsArp() const [member function]
   859     cls.add_method('NeedsArp', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True)
   863     cls.add_method('NeedsArp', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True)
   860     ## net-device.h: void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   864     ## net-device.h: void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
   861     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_pure_virtual=True, is_virtual=True)
   865     cls.add_method('SetReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'cb')], is_pure_virtual=True, is_virtual=True)
   862     cls.add_constructor([])
   866     cls.add_constructor([])
   863     return
       
   864 
       
   865 def register_Ns3Channel_methods(root_module, cls):
       
   866     ## channel.h: static ns3::TypeId ns3::Channel::GetTypeId() [member function]
       
   867     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
   868     ## channel.h: ns3::Channel::Channel() [constructor]
       
   869     cls.add_constructor([], visibility='public')
       
   870     ## channel.h: ns3::Channel::Channel(std::string name) [constructor]
       
   871     cls.add_constructor([param('std::string', 'name')], visibility='public')
       
   872     ## channel.h: void ns3::Channel::SetName(std::string arg0) [member function]
       
   873     cls.add_method('SetName', 'void', [param('std::string', 'arg0')])
       
   874     ## channel.h: std::string ns3::Channel::GetName() [member function]
       
   875     cls.add_method('GetName', 'std::string', [])
       
   876     ## channel.h: uint32_t ns3::Channel::GetNDevices() const [member function]
       
   877     cls.add_method('GetNDevices', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True)
       
   878     ## channel.h: ns3::Ptr<ns3::NetDevice> ns3::Channel::GetDevice(uint32_t i) const [member function]
       
   879     cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_pure_virtual=True, is_const=True, is_virtual=True)
       
   880     return
       
   881 
       
   882 def register_Ns3SimpleChannel_methods(root_module, cls):
       
   883     ## simple-channel.h: static ns3::TypeId ns3::SimpleChannel::GetTypeId() [member function]
       
   884     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
   885     ## simple-channel.h: ns3::SimpleChannel::SimpleChannel() [constructor]
       
   886     cls.add_constructor([], visibility='public')
       
   887     ## simple-channel.h: void ns3::SimpleChannel::Send(ns3::Ptr<ns3::Packet> p, uint16_t protocol, ns3::Mac48Address to, ns3::Mac48Address from, ns3::Ptr<ns3::SimpleNetDevice> sender) [member function]
       
   888     cls.add_method('Send', 'void', [param('ns3::Ptr< ns3::Packet >', 'p'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'to'), param('ns3::Mac48Address', 'from'), param('ns3::Ptr< ns3::SimpleNetDevice >', 'sender')])
       
   889     ## simple-channel.h: void ns3::SimpleChannel::Add(ns3::Ptr<ns3::SimpleNetDevice> device) [member function]
       
   890     cls.add_method('Add', 'void', [param('ns3::Ptr< ns3::SimpleNetDevice >', 'device')])
       
   891     ## simple-channel.h: uint32_t ns3::SimpleChannel::GetNDevices() const [member function]
       
   892     cls.add_method('GetNDevices', 'uint32_t', [], is_const=True, is_virtual=True)
       
   893     ## simple-channel.h: ns3::Ptr<ns3::NetDevice> ns3::SimpleChannel::GetDevice(uint32_t i) const [member function]
       
   894     cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_const=True, is_virtual=True)
       
   895     return
   867     return
   896 
   868 
   897 def register_Ns3AddressValue_methods(root_module, cls):
   869 def register_Ns3AddressValue_methods(root_module, cls):
   898     ## address.h: ns3::AddressValue::AddressValue() [constructor]
   870     ## address.h: ns3::AddressValue::AddressValue() [constructor]
   899     cls.add_constructor([], visibility='public')
   871     cls.add_constructor([], visibility='public')
   934     cls.add_method('GetApplication', 'ns3::Ptr< ns3::Application >', [param('uint32_t', 'index')], is_const=True)
   906     cls.add_method('GetApplication', 'ns3::Ptr< ns3::Application >', [param('uint32_t', 'index')], is_const=True)
   935     ## node.h: ns3::Ptr<ns3::Application> ns3::Node::GetFirstApplication(ns3::TypeId tid) [member function]
   907     ## node.h: ns3::Ptr<ns3::Application> ns3::Node::GetFirstApplication(ns3::TypeId tid) [member function]
   936     cls.add_method('GetFirstApplication', 'ns3::Ptr< ns3::Application >', [param('ns3::TypeId', 'tid')])
   908     cls.add_method('GetFirstApplication', 'ns3::Ptr< ns3::Application >', [param('ns3::TypeId', 'tid')])
   937     ## node.h: uint32_t ns3::Node::GetNApplications() const [member function]
   909     ## node.h: uint32_t ns3::Node::GetNApplications() const [member function]
   938     cls.add_method('GetNApplications', 'uint32_t', [], is_const=True)
   910     cls.add_method('GetNApplications', 'uint32_t', [], is_const=True)
   939     ## node.h: void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device) [member function]
   911     ## node.h: void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device) [member function]
   940     cls.add_method('RegisterProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device')])
   912     cls.add_method('RegisterProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device')])
   941     ## node.h: void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> handler) [member function]
   913     ## node.h: void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> handler) [member function]
   942     cls.add_method('UnregisterProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'handler')])
   914     cls.add_method('UnregisterProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'handler')])
       
   915     ## node.h: void ns3::Node::RegisterPromiscuousProtocolHandler(ns3::Callback<void,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<ns3::Packet>,short unsigned int,const ns3::Address&,const ns3::Address&,bool> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device) [member function]
       
   916     cls.add_method('RegisterPromiscuousProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, short unsigned int, const ns3::Address&, const ns3::Address&, bool >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device')])
       
   917     ## node.h: void ns3::Node::UnregisterPromiscuousProtocolHandler(ns3::Callback<void,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<ns3::Packet>,short unsigned int,const ns3::Address&,const ns3::Address&,bool> handler) [member function]
       
   918     cls.add_method('UnregisterPromiscuousProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, short unsigned int, const ns3::Address&, const ns3::Address&, bool >', 'handler')])
   943     ## node.h: void ns3::Node::DoDispose() [member function]
   919     ## node.h: void ns3::Node::DoDispose() [member function]
   944     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
   920     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
   945     ## node.h: void ns3::Node::NotifyDeviceAdded(ns3::Ptr<ns3::NetDevice> device) [member function]
   921     ## node.h: void ns3::Node::NotifyDeviceAdded(ns3::Ptr<ns3::NetDevice> device) [member function]
   946     cls.add_method('NotifyDeviceAdded', 'void', [param('ns3::Ptr< ns3::NetDevice >', 'device')], visibility='private', is_virtual=True)
   922     cls.add_method('NotifyDeviceAdded', 'void', [param('ns3::Ptr< ns3::NetDevice >', 'device')], visibility='private', is_virtual=True)
   947     return
   923     return
   989     cls.add_method('GetDelAckTimeout', 'ns3::Time', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
   965     cls.add_method('GetDelAckTimeout', 'ns3::Time', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
   990     ## tcp-socket.h: void ns3::TcpSocket::SetDelAckMaxCount(uint32_t count) [member function]
   966     ## tcp-socket.h: void ns3::TcpSocket::SetDelAckMaxCount(uint32_t count) [member function]
   991     cls.add_method('SetDelAckMaxCount', 'void', [param('uint32_t', 'count')], is_pure_virtual=True, visibility='private', is_virtual=True)
   967     cls.add_method('SetDelAckMaxCount', 'void', [param('uint32_t', 'count')], is_pure_virtual=True, visibility='private', is_virtual=True)
   992     ## tcp-socket.h: uint32_t ns3::TcpSocket::GetDelAckMaxCount() const [member function]
   968     ## tcp-socket.h: uint32_t ns3::TcpSocket::GetDelAckMaxCount() const [member function]
   993     cls.add_method('GetDelAckMaxCount', 'uint32_t', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
   969     cls.add_method('GetDelAckMaxCount', 'uint32_t', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
       
   970     return
       
   971 
       
   972 def register_Ns3Channel_methods(root_module, cls):
       
   973     ## channel.h: static ns3::TypeId ns3::Channel::GetTypeId() [member function]
       
   974     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
   975     ## channel.h: ns3::Channel::Channel() [constructor]
       
   976     cls.add_constructor([], visibility='public')
       
   977     ## channel.h: ns3::Channel::Channel(std::string name) [constructor]
       
   978     cls.add_constructor([param('std::string', 'name')], visibility='public')
       
   979     ## channel.h: void ns3::Channel::SetName(std::string arg0) [member function]
       
   980     cls.add_method('SetName', 'void', [param('std::string', 'arg0')])
       
   981     ## channel.h: std::string ns3::Channel::GetName() [member function]
       
   982     cls.add_method('GetName', 'std::string', [])
       
   983     ## channel.h: uint32_t ns3::Channel::GetNDevices() const [member function]
       
   984     cls.add_method('GetNDevices', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True)
       
   985     ## channel.h: ns3::Ptr<ns3::NetDevice> ns3::Channel::GetDevice(uint32_t i) const [member function]
       
   986     cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_pure_virtual=True, is_const=True, is_virtual=True)
   994     return
   987     return
   995 
   988 
   996 def register_Ns3EthernetHeader_methods(root_module, cls):
   989 def register_Ns3EthernetHeader_methods(root_module, cls):
   997     ## ethernet-header.h: ns3::EthernetHeader::EthernetHeader(bool hasPreamble) [constructor]
   990     ## ethernet-header.h: ns3::EthernetHeader::EthernetHeader(bool hasPreamble) [constructor]
   998     cls.add_constructor([param('bool', 'hasPreamble')], visibility='public')
   991     cls.add_constructor([param('bool', 'hasPreamble')], visibility='public')
  1253     cls.add_method('MakeMulticastAddress', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_const=True, is_virtual=True)
  1246     cls.add_method('MakeMulticastAddress', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_const=True, is_virtual=True)
  1254     ## simple-net-device.h: bool ns3::SimpleNetDevice::IsPointToPoint() const [member function]
  1247     ## simple-net-device.h: bool ns3::SimpleNetDevice::IsPointToPoint() const [member function]
  1255     cls.add_method('IsPointToPoint', 'bool', [], is_const=True, is_virtual=True)
  1248     cls.add_method('IsPointToPoint', 'bool', [], is_const=True, is_virtual=True)
  1256     ## simple-net-device.h: bool ns3::SimpleNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
  1249     ## simple-net-device.h: bool ns3::SimpleNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
  1257     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)
  1250     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)
       
  1251     ## simple-net-device.h: bool ns3::SimpleNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
       
  1252     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)
  1258     ## simple-net-device.h: ns3::Ptr<ns3::Node> ns3::SimpleNetDevice::GetNode() const [member function]
  1253     ## simple-net-device.h: ns3::Ptr<ns3::Node> ns3::SimpleNetDevice::GetNode() const [member function]
  1259     cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_const=True, is_virtual=True)
  1254     cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_const=True, is_virtual=True)
  1260     ## simple-net-device.h: void ns3::SimpleNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
  1255     ## simple-net-device.h: void ns3::SimpleNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
  1261     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_virtual=True)
  1256     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_virtual=True)
  1262     ## simple-net-device.h: bool ns3::SimpleNetDevice::NeedsArp() const [member function]
  1257     ## simple-net-device.h: bool ns3::SimpleNetDevice::NeedsArp() const [member function]
  1263     cls.add_method('NeedsArp', 'bool', [], is_const=True, is_virtual=True)
  1258     cls.add_method('NeedsArp', 'bool', [], is_const=True, is_virtual=True)
  1264     ## simple-net-device.h: void ns3::SimpleNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
  1259     ## simple-net-device.h: void ns3::SimpleNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
  1265     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)
  1260     cls.add_method('SetReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'cb')], is_virtual=True)
  1266     ## simple-net-device.h: void ns3::SimpleNetDevice::DoDispose() [member function]
  1261     ## simple-net-device.h: void ns3::SimpleNetDevice::DoDispose() [member function]
  1267     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
  1262     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
       
  1263     return
       
  1264 
       
  1265 def register_Ns3SimpleChannel_methods(root_module, cls):
       
  1266     ## simple-channel.h: static ns3::TypeId ns3::SimpleChannel::GetTypeId() [member function]
       
  1267     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
  1268     ## simple-channel.h: ns3::SimpleChannel::SimpleChannel() [constructor]
       
  1269     cls.add_constructor([], visibility='public')
       
  1270     ## simple-channel.h: void ns3::SimpleChannel::Send(ns3::Ptr<ns3::Packet> p, uint16_t protocol, ns3::Mac48Address to, ns3::Mac48Address from, ns3::Ptr<ns3::SimpleNetDevice> sender) [member function]
       
  1271     cls.add_method('Send', 'void', [param('ns3::Ptr< ns3::Packet >', 'p'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'to'), param('ns3::Mac48Address', 'from'), param('ns3::Ptr< ns3::SimpleNetDevice >', 'sender')])
       
  1272     ## simple-channel.h: void ns3::SimpleChannel::Add(ns3::Ptr<ns3::SimpleNetDevice> device) [member function]
       
  1273     cls.add_method('Add', 'void', [param('ns3::Ptr< ns3::SimpleNetDevice >', 'device')])
       
  1274     ## simple-channel.h: uint32_t ns3::SimpleChannel::GetNDevices() const [member function]
       
  1275     cls.add_method('GetNDevices', 'uint32_t', [], is_const=True, is_virtual=True)
       
  1276     ## simple-channel.h: ns3::Ptr<ns3::NetDevice> ns3::SimpleChannel::GetDevice(uint32_t i) const [member function]
       
  1277     cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_const=True, is_virtual=True)
  1268     return
  1278     return
  1269 
  1279 
  1270 def register_Ns3TcpSocketFactory_methods(root_module, cls):
  1280 def register_Ns3TcpSocketFactory_methods(root_module, cls):
  1271     ## tcp-socket-factory.h: static ns3::TypeId ns3::TcpSocketFactory::GetTypeId() [member function]
  1281     ## tcp-socket-factory.h: static ns3::TypeId ns3::TcpSocketFactory::GetTypeId() [member function]
  1272     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
  1282     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)