bindings/python/ns3_module_csma.py
changeset 3567 728eb3f583b3
parent 3552 b822851cb95d
child 3574 b6804efbe16b
equal deleted inserted replaced
3566:b96af8dc8abf 3567:728eb3f583b3
    66 def register_Ns3CsmaDeviceRec_methods(root_module, cls):
    66 def register_Ns3CsmaDeviceRec_methods(root_module, cls):
    67     ## csma-channel.h: ns3::CsmaDeviceRec::devicePtr [variable]
    67     ## csma-channel.h: ns3::CsmaDeviceRec::devicePtr [variable]
    68     cls.add_instance_attribute('devicePtr', 'ns3::Ptr< ns3::CsmaNetDevice >', is_const=False)
    68     cls.add_instance_attribute('devicePtr', 'ns3::Ptr< ns3::CsmaNetDevice >', is_const=False)
    69     ## csma-channel.h: ns3::CsmaDeviceRec::active [variable]
    69     ## csma-channel.h: ns3::CsmaDeviceRec::active [variable]
    70     cls.add_instance_attribute('active', 'bool', is_const=False)
    70     cls.add_instance_attribute('active', 'bool', is_const=False)
       
    71     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::CsmaDeviceRec const & arg0) [copy constructor]
       
    72     cls.add_constructor([param('ns3::CsmaDeviceRec&', 'arg0', is_const=True)])
    71     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec() [constructor]
    73     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec() [constructor]
    72     cls.add_constructor([])
    74     cls.add_constructor([])
    73     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::Ptr<ns3::CsmaNetDevice> device) [constructor]
    75     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::Ptr<ns3::CsmaNetDevice> device) [constructor]
    74     cls.add_constructor([param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
    76     cls.add_constructor([param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
    75     ## csma-channel.h: bool ns3::CsmaDeviceRec::IsActive() [member function]
    77     ## csma-channel.h: bool ns3::CsmaDeviceRec::IsActive() [member function]
    76     cls.add_method('IsActive', 
    78     cls.add_method('IsActive', 
    77                    'bool', 
    79                    'bool', 
    78                    [])
    80                    [])
    79     cls.add_copy_constructor()
       
    80     return
    81     return
    81 
    82 
    82 def register_Ns3Backoff_methods(root_module, cls):
    83 def register_Ns3Backoff_methods(root_module, cls):
    83     ## backoff.h: ns3::Backoff::m_minSlots [variable]
    84     ## backoff.h: ns3::Backoff::m_minSlots [variable]
    84     cls.add_instance_attribute('m_minSlots', 'uint32_t', is_const=False)
    85     cls.add_instance_attribute('m_minSlots', 'uint32_t', is_const=False)
    88     cls.add_instance_attribute('m_ceiling', 'uint32_t', is_const=False)
    89     cls.add_instance_attribute('m_ceiling', 'uint32_t', is_const=False)
    89     ## backoff.h: ns3::Backoff::m_maxRetries [variable]
    90     ## backoff.h: ns3::Backoff::m_maxRetries [variable]
    90     cls.add_instance_attribute('m_maxRetries', 'uint32_t', is_const=False)
    91     cls.add_instance_attribute('m_maxRetries', 'uint32_t', is_const=False)
    91     ## backoff.h: ns3::Backoff::m_slotTime [variable]
    92     ## backoff.h: ns3::Backoff::m_slotTime [variable]
    92     cls.add_instance_attribute('m_slotTime', 'ns3::Time', is_const=False)
    93     cls.add_instance_attribute('m_slotTime', 'ns3::Time', is_const=False)
       
    94     ## backoff.h: ns3::Backoff::Backoff(ns3::Backoff const & arg0) [copy constructor]
       
    95     cls.add_constructor([param('ns3::Backoff&', 'arg0', is_const=True)])
    93     ## backoff.h: ns3::Backoff::Backoff() [constructor]
    96     ## backoff.h: ns3::Backoff::Backoff() [constructor]
    94     cls.add_constructor([])
    97     cls.add_constructor([])
    95     ## backoff.h: ns3::Backoff::Backoff(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t ceiling, uint32_t maxRetries) [constructor]
    98     ## backoff.h: ns3::Backoff::Backoff(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t ceiling, uint32_t maxRetries) [constructor]
    96     cls.add_constructor([param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'ceiling'), param('uint32_t', 'maxRetries')])
    99     cls.add_constructor([param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'ceiling'), param('uint32_t', 'maxRetries')])
    97     ## backoff.h: ns3::Time ns3::Backoff::GetBackoffTime() [member function]
   100     ## backoff.h: ns3::Time ns3::Backoff::GetBackoffTime() [member function]
   108                    [])
   111                    [])
   109     ## backoff.h: void ns3::Backoff::IncrNumRetries() [member function]
   112     ## backoff.h: void ns3::Backoff::IncrNumRetries() [member function]
   110     cls.add_method('IncrNumRetries', 
   113     cls.add_method('IncrNumRetries', 
   111                    'void', 
   114                    'void', 
   112                    [])
   115                    [])
   113     cls.add_copy_constructor()
       
   114     return
   116     return
   115 
   117 
   116 def register_Ns3CsmaChannel_methods(root_module, cls):
   118 def register_Ns3CsmaChannel_methods(root_module, cls):
       
   119     ## csma-channel.h: ns3::CsmaChannel::CsmaChannel(ns3::CsmaChannel const & arg0) [copy constructor]
       
   120     cls.add_constructor([param('ns3::CsmaChannel&', 'arg0', is_const=True)])
   117     ## csma-channel.h: static ns3::TypeId ns3::CsmaChannel::GetTypeId() [member function]
   121     ## csma-channel.h: static ns3::TypeId ns3::CsmaChannel::GetTypeId() [member function]
   118     cls.add_method('GetTypeId', 
   122     cls.add_method('GetTypeId', 
   119                    'ns3::TypeId', 
   123                    'ns3::TypeId', 
   120                    [], 
   124                    [], 
   121                    is_static=True)
   125                    is_static=True)
   196     ## csma-channel.h: ns3::Time ns3::CsmaChannel::GetDelay() [member function]
   200     ## csma-channel.h: ns3::Time ns3::CsmaChannel::GetDelay() [member function]
   197     cls.add_method('GetDelay', 
   201     cls.add_method('GetDelay', 
   198                    'ns3::Time', 
   202                    'ns3::Time', 
   199                    [], 
   203                    [], 
   200                    is_virtual=True)
   204                    is_virtual=True)
   201     cls.add_copy_constructor()
       
   202     return
   205     return
   203 
   206 
   204 def register_Ns3CsmaNetDevice_methods(root_module, cls):
   207 def register_Ns3CsmaNetDevice_methods(root_module, cls):
   205     ## csma-net-device.h: static ns3::TypeId ns3::CsmaNetDevice::GetTypeId() [member function]
   208     ## csma-net-device.h: static ns3::TypeId ns3::CsmaNetDevice::GetTypeId() [member function]
   206     cls.add_method('GetTypeId', 
   209     cls.add_method('GetTypeId', 
   382     ## csma-net-device.h: bool ns3::CsmaNetDevice::NeedsArp() const [member function]
   385     ## csma-net-device.h: bool ns3::CsmaNetDevice::NeedsArp() const [member function]
   383     cls.add_method('NeedsArp', 
   386     cls.add_method('NeedsArp', 
   384                    'bool', 
   387                    'bool', 
   385                    [], 
   388                    [], 
   386                    is_const=True, is_virtual=True)
   389                    is_const=True, is_virtual=True)
   387     ## csma-net-device.h: void ns3::CsmaNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   390     ## csma-net-device.h: void ns3::CsmaNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   388     cls.add_method('SetReceiveCallback', 
   391     cls.add_method('SetReceiveCallback', 
   389                    'void', 
   392                    'void', 
   390                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr<const ns3::Packet >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'cb')], 
   393                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const&, ns3::empty, ns3::empty >', 'cb')], 
   391                    is_virtual=True)
   394                    is_virtual=True)
   392     ## csma-net-device.h: void ns3::CsmaNetDevice::SetPromiscReceiveCallback(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]
   395     ## csma-net-device.h: void ns3::CsmaNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
   393     cls.add_method('SetPromiscReceiveCallback', 
   396     cls.add_method('SetPromiscReceiveCallback', 
   394                    'void', 
   397                    'void', 
   395                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr<const ns3::Packet >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'cb')], 
   398                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType >', 'cb')], 
   396                    is_virtual=True)
   399                    is_virtual=True)
   397     ## csma-net-device.h: bool ns3::CsmaNetDevice::SupportsPromiscuous() const [member function]
   400     ## csma-net-device.h: bool ns3::CsmaNetDevice::SupportsPromiscuous() const [member function]
   398     cls.add_method('SupportsPromiscuous', 
   401     cls.add_method('SupportsPromiscuous', 
   399                    'bool', 
   402                    'bool', 
   400                    [], 
   403                    [],