bindings/python/apidefs/gcc-ILP32/ns3_module_csma.py
changeset 6867 020d52c50a45
parent 6718 87c3097fecef
equal deleted inserted replaced
6866:4d89be5b1ae9 6867:020d52c50a45
     7     module.add_enum('WireState', ['IDLE', 'TRANSMITTING', 'PROPAGATING'])
     7     module.add_enum('WireState', ['IDLE', 'TRANSMITTING', 'PROPAGATING'])
     8     ## backoff.h: ns3::Backoff [class]
     8     ## backoff.h: ns3::Backoff [class]
     9     module.add_class('Backoff')
     9     module.add_class('Backoff')
    10     ## csma-channel.h: ns3::CsmaDeviceRec [class]
    10     ## csma-channel.h: ns3::CsmaDeviceRec [class]
    11     module.add_class('CsmaDeviceRec')
    11     module.add_class('CsmaDeviceRec')
       
    12     ## csma-star-helper.h: ns3::CsmaStarHelper [class]
       
    13     module.add_class('CsmaStarHelper')
       
    14     ## csma-helper.h: ns3::CsmaHelper [class]
       
    15     module.add_class('CsmaHelper', parent=[root_module['ns3::PcapHelperForDevice'], root_module['ns3::AsciiTraceHelperForDevice']])
    12     ## csma-channel.h: ns3::CsmaChannel [class]
    16     ## csma-channel.h: ns3::CsmaChannel [class]
    13     module.add_class('CsmaChannel', parent=root_module['ns3::Channel'])
    17     module.add_class('CsmaChannel', parent=root_module['ns3::Channel'])
    14     ## csma-net-device.h: ns3::CsmaNetDevice [class]
    18     ## csma-net-device.h: ns3::CsmaNetDevice [class]
    15     module.add_class('CsmaNetDevice', parent=root_module['ns3::NetDevice'])
    19     module.add_class('CsmaNetDevice', parent=root_module['ns3::NetDevice'])
    16     ## csma-net-device.h: ns3::CsmaNetDevice::EncapsulationMode [enumeration]
    20     ## csma-net-device.h: ns3::CsmaNetDevice::EncapsulationMode [enumeration]
   107     
   111     
   108 
   112 
   109 def register_methods(root_module):
   113 def register_methods(root_module):
   110     register_Ns3Backoff_methods(root_module, root_module['ns3::Backoff'])
   114     register_Ns3Backoff_methods(root_module, root_module['ns3::Backoff'])
   111     register_Ns3CsmaDeviceRec_methods(root_module, root_module['ns3::CsmaDeviceRec'])
   115     register_Ns3CsmaDeviceRec_methods(root_module, root_module['ns3::CsmaDeviceRec'])
       
   116     register_Ns3CsmaStarHelper_methods(root_module, root_module['ns3::CsmaStarHelper'])
       
   117     register_Ns3CsmaHelper_methods(root_module, root_module['ns3::CsmaHelper'])
   112     register_Ns3CsmaChannel_methods(root_module, root_module['ns3::CsmaChannel'])
   118     register_Ns3CsmaChannel_methods(root_module, root_module['ns3::CsmaChannel'])
   113     register_Ns3CsmaNetDevice_methods(root_module, root_module['ns3::CsmaNetDevice'])
   119     register_Ns3CsmaNetDevice_methods(root_module, root_module['ns3::CsmaNetDevice'])
   114     return
   120     return
   115 
   121 
   116 def register_Ns3Backoff_methods(root_module, cls):
   122 def register_Ns3Backoff_methods(root_module, cls):
   161                    [])
   167                    [])
   162     ## csma-channel.h: ns3::CsmaDeviceRec::active [variable]
   168     ## csma-channel.h: ns3::CsmaDeviceRec::active [variable]
   163     cls.add_instance_attribute('active', 'bool', is_const=False)
   169     cls.add_instance_attribute('active', 'bool', is_const=False)
   164     ## csma-channel.h: ns3::CsmaDeviceRec::devicePtr [variable]
   170     ## csma-channel.h: ns3::CsmaDeviceRec::devicePtr [variable]
   165     cls.add_instance_attribute('devicePtr', 'ns3::Ptr< ns3::CsmaNetDevice >', is_const=False)
   171     cls.add_instance_attribute('devicePtr', 'ns3::Ptr< ns3::CsmaNetDevice >', is_const=False)
       
   172     return
       
   173 
       
   174 def register_Ns3CsmaStarHelper_methods(root_module, cls):
       
   175     ## csma-star-helper.h: ns3::CsmaStarHelper::CsmaStarHelper(ns3::CsmaStarHelper const & arg0) [copy constructor]
       
   176     cls.add_constructor([param('ns3::CsmaStarHelper const &', 'arg0')])
       
   177     ## csma-star-helper.h: ns3::CsmaStarHelper::CsmaStarHelper(uint32_t numSpokes, ns3::CsmaHelper csmaHelper) [constructor]
       
   178     cls.add_constructor([param('uint32_t', 'numSpokes'), param('ns3::CsmaHelper', 'csmaHelper')])
       
   179     ## csma-star-helper.h: void ns3::CsmaStarHelper::AssignIpv4Addresses(ns3::Ipv4AddressHelper address) [member function]
       
   180     cls.add_method('AssignIpv4Addresses', 
       
   181                    'void', 
       
   182                    [param('ns3::Ipv4AddressHelper', 'address')])
       
   183     ## csma-star-helper.h: ns3::Ptr<ns3::Node> ns3::CsmaStarHelper::GetHub() const [member function]
       
   184     cls.add_method('GetHub', 
       
   185                    'ns3::Ptr< ns3::Node >', 
       
   186                    [], 
       
   187                    is_const=True)
       
   188     ## csma-star-helper.h: ns3::NetDeviceContainer ns3::CsmaStarHelper::GetHubDevices() const [member function]
       
   189     cls.add_method('GetHubDevices', 
       
   190                    'ns3::NetDeviceContainer', 
       
   191                    [], 
       
   192                    is_const=True)
       
   193     ## csma-star-helper.h: ns3::Ipv4Address ns3::CsmaStarHelper::GetHubIpv4Address(uint32_t i) const [member function]
       
   194     cls.add_method('GetHubIpv4Address', 
       
   195                    'ns3::Ipv4Address', 
       
   196                    [param('uint32_t', 'i')], 
       
   197                    is_const=True)
       
   198     ## csma-star-helper.h: ns3::NetDeviceContainer ns3::CsmaStarHelper::GetSpokeDevices() const [member function]
       
   199     cls.add_method('GetSpokeDevices', 
       
   200                    'ns3::NetDeviceContainer', 
       
   201                    [], 
       
   202                    is_const=True)
       
   203     ## csma-star-helper.h: ns3::Ipv4Address ns3::CsmaStarHelper::GetSpokeIpv4Address(uint32_t i) const [member function]
       
   204     cls.add_method('GetSpokeIpv4Address', 
       
   205                    'ns3::Ipv4Address', 
       
   206                    [param('uint32_t', 'i')], 
       
   207                    is_const=True)
       
   208     ## csma-star-helper.h: ns3::Ptr<ns3::Node> ns3::CsmaStarHelper::GetSpokeNode(uint32_t i) const [member function]
       
   209     cls.add_method('GetSpokeNode', 
       
   210                    'ns3::Ptr< ns3::Node >', 
       
   211                    [param('uint32_t', 'i')], 
       
   212                    is_const=True)
       
   213     ## csma-star-helper.h: void ns3::CsmaStarHelper::InstallStack(ns3::InternetStackHelper stack) [member function]
       
   214     cls.add_method('InstallStack', 
       
   215                    'void', 
       
   216                    [param('ns3::InternetStackHelper', 'stack')])
       
   217     ## csma-star-helper.h: uint32_t ns3::CsmaStarHelper::SpokeCount() const [member function]
       
   218     cls.add_method('SpokeCount', 
       
   219                    'uint32_t', 
       
   220                    [], 
       
   221                    is_const=True)
       
   222     return
       
   223 
       
   224 def register_Ns3CsmaHelper_methods(root_module, cls):
       
   225     ## csma-helper.h: ns3::CsmaHelper::CsmaHelper(ns3::CsmaHelper const & arg0) [copy constructor]
       
   226     cls.add_constructor([param('ns3::CsmaHelper const &', 'arg0')])
       
   227     ## csma-helper.h: ns3::CsmaHelper::CsmaHelper() [constructor]
       
   228     cls.add_constructor([])
       
   229     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::Ptr<ns3::Node> node) const [member function]
       
   230     cls.add_method('Install', 
       
   231                    'ns3::NetDeviceContainer', 
       
   232                    [param('ns3::Ptr< ns3::Node >', 'node')], 
       
   233                    is_const=True)
       
   234     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(std::string name) const [member function]
       
   235     cls.add_method('Install', 
       
   236                    'ns3::NetDeviceContainer', 
       
   237                    [param('std::string', 'name')], 
       
   238                    is_const=True)
       
   239     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::Ptr<ns3::Node> node, ns3::Ptr<ns3::CsmaChannel> channel) const [member function]
       
   240     cls.add_method('Install', 
       
   241                    'ns3::NetDeviceContainer', 
       
   242                    [param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::Ptr< ns3::CsmaChannel >', 'channel')], 
       
   243                    is_const=True)
       
   244     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::Ptr<ns3::Node> node, std::string channelName) const [member function]
       
   245     cls.add_method('Install', 
       
   246                    'ns3::NetDeviceContainer', 
       
   247                    [param('ns3::Ptr< ns3::Node >', 'node'), param('std::string', 'channelName')], 
       
   248                    is_const=True)
       
   249     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(std::string nodeName, ns3::Ptr<ns3::CsmaChannel> channel) const [member function]
       
   250     cls.add_method('Install', 
       
   251                    'ns3::NetDeviceContainer', 
       
   252                    [param('std::string', 'nodeName'), param('ns3::Ptr< ns3::CsmaChannel >', 'channel')], 
       
   253                    is_const=True)
       
   254     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(std::string nodeName, std::string channelName) const [member function]
       
   255     cls.add_method('Install', 
       
   256                    'ns3::NetDeviceContainer', 
       
   257                    [param('std::string', 'nodeName'), param('std::string', 'channelName')], 
       
   258                    is_const=True)
       
   259     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::NodeContainer const & c) const [member function]
       
   260     cls.add_method('Install', 
       
   261                    'ns3::NetDeviceContainer', 
       
   262                    [param('ns3::NodeContainer const &', 'c')], 
       
   263                    is_const=True)
       
   264     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::NodeContainer const & c, ns3::Ptr<ns3::CsmaChannel> channel) const [member function]
       
   265     cls.add_method('Install', 
       
   266                    'ns3::NetDeviceContainer', 
       
   267                    [param('ns3::NodeContainer const &', 'c'), param('ns3::Ptr< ns3::CsmaChannel >', 'channel')], 
       
   268                    is_const=True)
       
   269     ## csma-helper.h: ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::NodeContainer const & c, std::string channelName) const [member function]
       
   270     cls.add_method('Install', 
       
   271                    'ns3::NetDeviceContainer', 
       
   272                    [param('ns3::NodeContainer const &', 'c'), param('std::string', 'channelName')], 
       
   273                    is_const=True)
       
   274     ## csma-helper.h: void ns3::CsmaHelper::SetChannelAttribute(std::string n1, ns3::AttributeValue const & v1) [member function]
       
   275     cls.add_method('SetChannelAttribute', 
       
   276                    'void', 
       
   277                    [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')])
       
   278     ## csma-helper.h: void ns3::CsmaHelper::SetDeviceAttribute(std::string n1, ns3::AttributeValue const & v1) [member function]
       
   279     cls.add_method('SetDeviceAttribute', 
       
   280                    'void', 
       
   281                    [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')])
       
   282     ## csma-helper.h: void ns3::CsmaHelper::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]
       
   283     cls.add_method('SetQueue', 
       
   284                    'void', 
       
   285                    [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()')])
       
   286     ## csma-helper.h: void ns3::CsmaHelper::EnableAsciiInternal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool explicitFilename) [member function]
       
   287     cls.add_method('EnableAsciiInternal', 
       
   288                    'void', 
       
   289                    [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], 
       
   290                    visibility='private', is_virtual=True)
       
   291     ## csma-helper.h: void ns3::CsmaHelper::EnablePcapInternal(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool promiscuous, bool explicitFilename) [member function]
       
   292     cls.add_method('EnablePcapInternal', 
       
   293                    'void', 
       
   294                    [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], 
       
   295                    visibility='private', is_virtual=True)
   166     return
   296     return
   167 
   297 
   168 def register_Ns3CsmaChannel_methods(root_module, cls):
   298 def register_Ns3CsmaChannel_methods(root_module, cls):
   169     ## csma-channel.h: ns3::CsmaChannel::CsmaChannel(ns3::CsmaChannel const & arg0) [copy constructor]
   299     ## csma-channel.h: ns3::CsmaChannel::CsmaChannel(ns3::CsmaChannel const & arg0) [copy constructor]
   170     cls.add_constructor([param('ns3::CsmaChannel const &', 'arg0')])
   300     cls.add_constructor([param('ns3::CsmaChannel const &', 'arg0')])