bindings/python/ns3_module_csma.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 4474 19e2b7ff3482
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
tomh@4474
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
gjc@3408
     2
gjc@3408
     3
def register_types(module):
gjc@3408
     4
    root_module = module.get_root()
gjc@3408
     5
    
gjc@3408
     6
    ## csma-channel.h: ns3::WireState [enumeration]
gjc@3408
     7
    module.add_enum('WireState', ['IDLE', 'TRANSMITTING', 'PROPAGATING'])
gjc@3731
     8
    ## backoff.h: ns3::Backoff [class]
gjc@3731
     9
    module.add_class('Backoff')
gjc@3408
    10
    ## csma-channel.h: ns3::CsmaDeviceRec [class]
gjc@3408
    11
    module.add_class('CsmaDeviceRec')
gjc@3408
    12
    ## csma-channel.h: ns3::CsmaChannel [class]
gjc@3457
    13
    module.add_class('CsmaChannel', parent=root_module['ns3::Channel'])
gjc@3408
    14
    ## csma-net-device.h: ns3::CsmaNetDevice [class]
gjc@3457
    15
    module.add_class('CsmaNetDevice', parent=root_module['ns3::NetDevice'])
gjc@3511
    16
    ## csma-net-device.h: ns3::CsmaNetDevice::EncapsulationMode [enumeration]
craigdo@3632
    17
    module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::CsmaNetDevice'])
gjc@3408
    18
    
gjc@3855
    19
    ## Register a nested module for the namespace Config
gjc@3408
    20
    
gjc@3855
    21
    nested_module = module.add_cpp_namespace('Config')
gjc@3855
    22
    register_types_ns3_Config(nested_module)
gjc@3408
    23
    
gjc@3408
    24
    
gjc@3408
    25
    ## Register a nested module for the namespace TimeStepPrecision
gjc@3408
    26
    
gjc@3408
    27
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
gjc@3408
    28
    register_types_ns3_TimeStepPrecision(nested_module)
gjc@3408
    29
    
gjc@3408
    30
    
tomh@4474
    31
    ## Register a nested module for the namespace addressUtils
tomh@4474
    32
    
tomh@4474
    33
    nested_module = module.add_cpp_namespace('addressUtils')
tomh@4474
    34
    register_types_ns3_addressUtils(nested_module)
tomh@4474
    35
    
tomh@4474
    36
    
gjc@3855
    37
    ## Register a nested module for the namespace internal
gjc@3408
    38
    
gjc@3855
    39
    nested_module = module.add_cpp_namespace('internal')
gjc@3855
    40
    register_types_ns3_internal(nested_module)
gjc@3408
    41
    
gjc@3408
    42
    
gjc@3408
    43
    ## Register a nested module for the namespace olsr
gjc@3408
    44
    
gjc@3408
    45
    nested_module = module.add_cpp_namespace('olsr')
gjc@3408
    46
    register_types_ns3_olsr(nested_module)
gjc@3408
    47
    
gjc@3408
    48
gjc@3855
    49
def register_types_ns3_Config(module):
gjc@3408
    50
    root_module = module.get_root()
gjc@3408
    51
    
gjc@3408
    52
gjc@3408
    53
def register_types_ns3_TimeStepPrecision(module):
gjc@3408
    54
    root_module = module.get_root()
gjc@3408
    55
    
gjc@3408
    56
tomh@4474
    57
def register_types_ns3_addressUtils(module):
tomh@4474
    58
    root_module = module.get_root()
tomh@4474
    59
    
tomh@4474
    60
gjc@3855
    61
def register_types_ns3_internal(module):
gjc@3408
    62
    root_module = module.get_root()
gjc@3408
    63
    
gjc@3408
    64
gjc@3408
    65
def register_types_ns3_olsr(module):
gjc@3408
    66
    root_module = module.get_root()
gjc@3408
    67
    
gjc@3408
    68
gjc@3408
    69
def register_methods(root_module):
gjc@3731
    70
    register_Ns3Backoff_methods(root_module, root_module['ns3::Backoff'])
gjc@3408
    71
    register_Ns3CsmaDeviceRec_methods(root_module, root_module['ns3::CsmaDeviceRec'])
gjc@3408
    72
    register_Ns3CsmaChannel_methods(root_module, root_module['ns3::CsmaChannel'])
gjc@3408
    73
    register_Ns3CsmaNetDevice_methods(root_module, root_module['ns3::CsmaNetDevice'])
gjc@3408
    74
    return
gjc@3408
    75
gjc@3408
    76
def register_Ns3Backoff_methods(root_module, cls):
gjc@3408
    77
    ## backoff.h: ns3::Backoff::m_minSlots [variable]
gjc@3408
    78
    cls.add_instance_attribute('m_minSlots', 'uint32_t', is_const=False)
gjc@3408
    79
    ## backoff.h: ns3::Backoff::m_maxSlots [variable]
gjc@3408
    80
    cls.add_instance_attribute('m_maxSlots', 'uint32_t', is_const=False)
gjc@3408
    81
    ## backoff.h: ns3::Backoff::m_ceiling [variable]
gjc@3408
    82
    cls.add_instance_attribute('m_ceiling', 'uint32_t', is_const=False)
gjc@3408
    83
    ## backoff.h: ns3::Backoff::m_maxRetries [variable]
gjc@3408
    84
    cls.add_instance_attribute('m_maxRetries', 'uint32_t', is_const=False)
gjc@3408
    85
    ## backoff.h: ns3::Backoff::m_slotTime [variable]
gjc@3408
    86
    cls.add_instance_attribute('m_slotTime', 'ns3::Time', is_const=False)
mathieu@4241
    87
    ## backoff.h: ns3::Backoff::Backoff(ns3::Backoff const & arg0) [copy constructor]
mathieu@4241
    88
    cls.add_constructor([param('ns3::Backoff const &', 'arg0')])
gjc@3408
    89
    ## backoff.h: ns3::Backoff::Backoff() [constructor]
gjc@3468
    90
    cls.add_constructor([])
gjc@3408
    91
    ## backoff.h: ns3::Backoff::Backoff(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t ceiling, uint32_t maxRetries) [constructor]
gjc@3468
    92
    cls.add_constructor([param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'ceiling'), param('uint32_t', 'maxRetries')])
gjc@3408
    93
    ## backoff.h: ns3::Time ns3::Backoff::GetBackoffTime() [member function]
gjc@3468
    94
    cls.add_method('GetBackoffTime', 
gjc@3468
    95
                   'ns3::Time', 
gjc@3468
    96
                   [])
gjc@3408
    97
    ## backoff.h: void ns3::Backoff::ResetBackoffTime() [member function]
gjc@3468
    98
    cls.add_method('ResetBackoffTime', 
gjc@3468
    99
                   'void', 
gjc@3468
   100
                   [])
gjc@3408
   101
    ## backoff.h: bool ns3::Backoff::MaxRetriesReached() [member function]
gjc@3468
   102
    cls.add_method('MaxRetriesReached', 
gjc@3468
   103
                   'bool', 
gjc@3468
   104
                   [])
gjc@3408
   105
    ## backoff.h: void ns3::Backoff::IncrNumRetries() [member function]
gjc@3468
   106
    cls.add_method('IncrNumRetries', 
gjc@3468
   107
                   'void', 
gjc@3468
   108
                   [])
gjc@3408
   109
    return
gjc@3408
   110
gjc@3731
   111
def register_Ns3CsmaDeviceRec_methods(root_module, cls):
gjc@3731
   112
    ## csma-channel.h: ns3::CsmaDeviceRec::devicePtr [variable]
gjc@3731
   113
    cls.add_instance_attribute('devicePtr', 'ns3::Ptr< ns3::CsmaNetDevice >', is_const=False)
gjc@3731
   114
    ## csma-channel.h: ns3::CsmaDeviceRec::active [variable]
gjc@3731
   115
    cls.add_instance_attribute('active', 'bool', is_const=False)
mathieu@4241
   116
    ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::CsmaDeviceRec const & arg0) [copy constructor]
mathieu@4241
   117
    cls.add_constructor([param('ns3::CsmaDeviceRec const &', 'arg0')])
gjc@3731
   118
    ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec() [constructor]
gjc@3731
   119
    cls.add_constructor([])
gjc@3731
   120
    ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::Ptr<ns3::CsmaNetDevice> device) [constructor]
gjc@3731
   121
    cls.add_constructor([param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
gjc@3731
   122
    ## csma-channel.h: bool ns3::CsmaDeviceRec::IsActive() [member function]
gjc@3731
   123
    cls.add_method('IsActive', 
gjc@3731
   124
                   'bool', 
gjc@3731
   125
                   [])
gjc@3731
   126
    return
gjc@3731
   127
gjc@3408
   128
def register_Ns3CsmaChannel_methods(root_module, cls):
mathieu@4241
   129
    ## csma-channel.h: ns3::CsmaChannel::CsmaChannel(ns3::CsmaChannel const & arg0) [copy constructor]
mathieu@4241
   130
    cls.add_constructor([param('ns3::CsmaChannel const &', 'arg0')])
gjc@3408
   131
    ## csma-channel.h: static ns3::TypeId ns3::CsmaChannel::GetTypeId() [member function]
gjc@3468
   132
    cls.add_method('GetTypeId', 
gjc@3468
   133
                   'ns3::TypeId', 
gjc@3468
   134
                   [], 
gjc@3468
   135
                   is_static=True)
gjc@3408
   136
    ## csma-channel.h: ns3::CsmaChannel::CsmaChannel() [constructor]
gjc@3468
   137
    cls.add_constructor([])
gjc@3408
   138
    ## csma-channel.h: int32_t ns3::CsmaChannel::Attach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
gjc@3468
   139
    cls.add_method('Attach', 
gjc@3468
   140
                   'int32_t', 
gjc@3468
   141
                   [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
gjc@3408
   142
    ## csma-channel.h: bool ns3::CsmaChannel::Detach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
gjc@3468
   143
    cls.add_method('Detach', 
gjc@3468
   144
                   'bool', 
gjc@3468
   145
                   [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
gjc@3408
   146
    ## csma-channel.h: bool ns3::CsmaChannel::Detach(uint32_t deviceId) [member function]
gjc@3468
   147
    cls.add_method('Detach', 
gjc@3468
   148
                   'bool', 
gjc@3468
   149
                   [param('uint32_t', 'deviceId')])
gjc@3408
   150
    ## csma-channel.h: bool ns3::CsmaChannel::Reattach(uint32_t deviceId) [member function]
gjc@3468
   151
    cls.add_method('Reattach', 
gjc@3468
   152
                   'bool', 
gjc@3468
   153
                   [param('uint32_t', 'deviceId')])
gjc@3408
   154
    ## csma-channel.h: bool ns3::CsmaChannel::Reattach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
gjc@3468
   155
    cls.add_method('Reattach', 
gjc@3468
   156
                   'bool', 
gjc@3468
   157
                   [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
gjc@3408
   158
    ## csma-channel.h: bool ns3::CsmaChannel::TransmitStart(ns3::Ptr<ns3::Packet> p, uint32_t srcId) [member function]
gjc@3468
   159
    cls.add_method('TransmitStart', 
gjc@3468
   160
                   'bool', 
gjc@3468
   161
                   [param('ns3::Ptr< ns3::Packet >', 'p'), param('uint32_t', 'srcId')])
gjc@3408
   162
    ## csma-channel.h: bool ns3::CsmaChannel::TransmitEnd() [member function]
gjc@3468
   163
    cls.add_method('TransmitEnd', 
gjc@3468
   164
                   'bool', 
gjc@3468
   165
                   [])
gjc@3408
   166
    ## csma-channel.h: void ns3::CsmaChannel::PropagationCompleteEvent() [member function]
gjc@3468
   167
    cls.add_method('PropagationCompleteEvent', 
gjc@3468
   168
                   'void', 
gjc@3468
   169
                   [])
gjc@3408
   170
    ## csma-channel.h: int32_t ns3::CsmaChannel::GetDeviceNum(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
gjc@3468
   171
    cls.add_method('GetDeviceNum', 
gjc@3468
   172
                   'int32_t', 
gjc@3468
   173
                   [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
gjc@3408
   174
    ## csma-channel.h: ns3::WireState ns3::CsmaChannel::GetState() [member function]
gjc@3468
   175
    cls.add_method('GetState', 
gjc@3468
   176
                   'ns3::WireState', 
gjc@3468
   177
                   [])
gjc@3408
   178
    ## csma-channel.h: bool ns3::CsmaChannel::IsBusy() [member function]
gjc@3468
   179
    cls.add_method('IsBusy', 
gjc@3468
   180
                   'bool', 
gjc@3468
   181
                   [])
gjc@3408
   182
    ## csma-channel.h: bool ns3::CsmaChannel::IsActive(uint32_t deviceId) [member function]
gjc@3468
   183
    cls.add_method('IsActive', 
gjc@3468
   184
                   'bool', 
gjc@3468
   185
                   [param('uint32_t', 'deviceId')])
gjc@3408
   186
    ## csma-channel.h: uint32_t ns3::CsmaChannel::GetNumActDevices() [member function]
gjc@3468
   187
    cls.add_method('GetNumActDevices', 
gjc@3468
   188
                   'uint32_t', 
gjc@3468
   189
                   [])
gjc@3408
   190
    ## csma-channel.h: uint32_t ns3::CsmaChannel::GetNDevices() const [member function]
gjc@3468
   191
    cls.add_method('GetNDevices', 
gjc@3468
   192
                   'uint32_t', 
gjc@3468
   193
                   [], 
gjc@3468
   194
                   is_const=True, is_virtual=True)
gjc@3408
   195
    ## csma-channel.h: ns3::Ptr<ns3::NetDevice> ns3::CsmaChannel::GetDevice(uint32_t i) const [member function]
gjc@3468
   196
    cls.add_method('GetDevice', 
gjc@3468
   197
                   'ns3::Ptr< ns3::NetDevice >', 
gjc@3468
   198
                   [param('uint32_t', 'i')], 
gjc@3468
   199
                   is_const=True, is_virtual=True)
gjc@3408
   200
    ## csma-channel.h: ns3::Ptr<ns3::CsmaNetDevice> ns3::CsmaChannel::GetCsmaDevice(uint32_t i) const [member function]
gjc@3468
   201
    cls.add_method('GetCsmaDevice', 
gjc@3468
   202
                   'ns3::Ptr< ns3::CsmaNetDevice >', 
gjc@3468
   203
                   [param('uint32_t', 'i')], 
gjc@3468
   204
                   is_const=True)
gjc@3408
   205
    ## csma-channel.h: ns3::DataRate ns3::CsmaChannel::GetDataRate() [member function]
gjc@3468
   206
    cls.add_method('GetDataRate', 
gjc@3468
   207
                   'ns3::DataRate', 
gjc@3468
   208
                   [], 
gjc@3468
   209
                   is_virtual=True)
gjc@3408
   210
    ## csma-channel.h: ns3::Time ns3::CsmaChannel::GetDelay() [member function]
gjc@3468
   211
    cls.add_method('GetDelay', 
gjc@3468
   212
                   'ns3::Time', 
gjc@3468
   213
                   [], 
gjc@3468
   214
                   is_virtual=True)
gjc@3408
   215
    return
gjc@3408
   216
gjc@3408
   217
def register_Ns3CsmaNetDevice_methods(root_module, cls):
gjc@3408
   218
    ## csma-net-device.h: static ns3::TypeId ns3::CsmaNetDevice::GetTypeId() [member function]
gjc@3468
   219
    cls.add_method('GetTypeId', 
gjc@3468
   220
                   'ns3::TypeId', 
gjc@3468
   221
                   [], 
gjc@3468
   222
                   is_static=True)
gjc@3408
   223
    ## csma-net-device.h: ns3::CsmaNetDevice::CsmaNetDevice() [constructor]
gjc@3468
   224
    cls.add_constructor([])
gjc@3408
   225
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetInterframeGap(ns3::Time t) [member function]
gjc@3468
   226
    cls.add_method('SetInterframeGap', 
gjc@3468
   227
                   'void', 
gjc@3468
   228
                   [param('ns3::Time', 't')])
gjc@3408
   229
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetBackoffParams(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t maxRetries, uint32_t ceiling) [member function]
gjc@3468
   230
    cls.add_method('SetBackoffParams', 
gjc@3468
   231
                   'void', 
gjc@3468
   232
                   [param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'maxRetries'), param('uint32_t', 'ceiling')])
gjc@3408
   233
    ## csma-net-device.h: bool ns3::CsmaNetDevice::Attach(ns3::Ptr<ns3::CsmaChannel> ch) [member function]
gjc@3468
   234
    cls.add_method('Attach', 
gjc@3468
   235
                   'bool', 
gjc@3468
   236
                   [param('ns3::Ptr< ns3::CsmaChannel >', 'ch')])
gjc@3408
   237
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetQueue(ns3::Ptr<ns3::Queue> queue) [member function]
gjc@3468
   238
    cls.add_method('SetQueue', 
gjc@3468
   239
                   'void', 
gjc@3468
   240
                   [param('ns3::Ptr< ns3::Queue >', 'queue')])
gjc@3408
   241
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetReceiveErrorModel(ns3::Ptr<ns3::ErrorModel> em) [member function]
gjc@3468
   242
    cls.add_method('SetReceiveErrorModel', 
gjc@3468
   243
                   'void', 
gjc@3468
   244
                   [param('ns3::Ptr< ns3::ErrorModel >', 'em')])
gjc@3457
   245
    ## csma-net-device.h: void ns3::CsmaNetDevice::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ptr<ns3::CsmaNetDevice> sender) [member function]
gjc@3468
   246
    cls.add_method('Receive', 
gjc@3468
   247
                   'void', 
gjc@3468
   248
                   [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ptr< ns3::CsmaNetDevice >', 'sender')])
gjc@3408
   249
    ## csma-net-device.h: bool ns3::CsmaNetDevice::IsSendEnabled() [member function]
gjc@3468
   250
    cls.add_method('IsSendEnabled', 
gjc@3468
   251
                   'bool', 
gjc@3468
   252
                   [])
gjc@3408
   253
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetSendEnable(bool enable) [member function]
gjc@3468
   254
    cls.add_method('SetSendEnable', 
gjc@3468
   255
                   'void', 
gjc@3468
   256
                   [param('bool', 'enable')])
gjc@3408
   257
    ## csma-net-device.h: bool ns3::CsmaNetDevice::IsReceiveEnabled() [member function]
gjc@3468
   258
    cls.add_method('IsReceiveEnabled', 
gjc@3468
   259
                   'bool', 
gjc@3468
   260
                   [])
gjc@3408
   261
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetReceiveEnable(bool enable) [member function]
gjc@3468
   262
    cls.add_method('SetReceiveEnable', 
gjc@3468
   263
                   'void', 
gjc@3468
   264
                   [param('bool', 'enable')])
craigdo@3632
   265
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetFrameSize(uint16_t frameSize) [member function]
craigdo@3632
   266
    cls.add_method('SetFrameSize', 
gjc@3511
   267
                   'void', 
craigdo@3632
   268
                   [param('uint16_t', 'frameSize')])
craigdo@3632
   269
    ## csma-net-device.h: uint16_t ns3::CsmaNetDevice::GetFrameSize() const [member function]
craigdo@3632
   270
    cls.add_method('GetFrameSize', 
gjc@3511
   271
                   'uint16_t', 
gjc@3511
   272
                   [], 
gjc@3511
   273
                   is_const=True)
gjc@3511
   274
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetEncapsulationMode(ns3::CsmaNetDevice::EncapsulationMode mode) [member function]
gjc@3511
   275
    cls.add_method('SetEncapsulationMode', 
gjc@3511
   276
                   'void', 
gjc@3511
   277
                   [param('ns3::CsmaNetDevice::EncapsulationMode', 'mode')])
gjc@3511
   278
    ## csma-net-device.h: ns3::CsmaNetDevice::EncapsulationMode ns3::CsmaNetDevice::GetEncapsulationMode() [member function]
gjc@3511
   279
    cls.add_method('GetEncapsulationMode', 
gjc@3511
   280
                   'ns3::CsmaNetDevice::EncapsulationMode', 
gjc@3511
   281
                   [])
gjc@3408
   282
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetIfIndex(uint32_t const index) [member function]
gjc@3468
   283
    cls.add_method('SetIfIndex', 
gjc@3468
   284
                   'void', 
gjc@3574
   285
                   [param('uint32_t const', 'index')], 
gjc@3468
   286
                   is_virtual=True)
gjc@3408
   287
    ## csma-net-device.h: uint32_t ns3::CsmaNetDevice::GetIfIndex() const [member function]
gjc@3468
   288
    cls.add_method('GetIfIndex', 
gjc@3468
   289
                   'uint32_t', 
gjc@3468
   290
                   [], 
gjc@3468
   291
                   is_const=True, is_virtual=True)
gjc@3408
   292
    ## csma-net-device.h: ns3::Ptr<ns3::Channel> ns3::CsmaNetDevice::GetChannel() const [member function]
gjc@3468
   293
    cls.add_method('GetChannel', 
gjc@3468
   294
                   'ns3::Ptr< ns3::Channel >', 
gjc@3468
   295
                   [], 
gjc@3468
   296
                   is_const=True, is_virtual=True)
gjc@3408
   297
    ## csma-net-device.h: bool ns3::CsmaNetDevice::SetMtu(uint16_t const mtu) [member function]
gjc@3468
   298
    cls.add_method('SetMtu', 
gjc@3468
   299
                   'bool', 
gjc@3574
   300
                   [param('uint16_t const', 'mtu')], 
gjc@3468
   301
                   is_virtual=True)
gjc@3408
   302
    ## csma-net-device.h: uint16_t ns3::CsmaNetDevice::GetMtu() const [member function]
gjc@3468
   303
    cls.add_method('GetMtu', 
gjc@3468
   304
                   'uint16_t', 
gjc@3468
   305
                   [], 
gjc@3468
   306
                   is_const=True, is_virtual=True)
tomh@4589
   307
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetAddress(ns3::Address address) [member function]
tomh@4589
   308
    cls.add_method('SetAddress', 
tomh@4589
   309
                   'void', 
tomh@4589
   310
                   [param('ns3::Address', 'address')], 
tomh@4589
   311
                   is_virtual=True)
gjc@3511
   312
    ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetAddress() const [member function]
gjc@3511
   313
    cls.add_method('GetAddress', 
gjc@3511
   314
                   'ns3::Address', 
gjc@3511
   315
                   [], 
gjc@3511
   316
                   is_const=True, is_virtual=True)
gjc@3408
   317
    ## csma-net-device.h: bool ns3::CsmaNetDevice::IsLinkUp() const [member function]
gjc@3468
   318
    cls.add_method('IsLinkUp', 
gjc@3468
   319
                   'bool', 
gjc@3468
   320
                   [], 
gjc@3468
   321
                   is_const=True, is_virtual=True)
mathieu@4073
   322
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
gjc@3468
   323
    cls.add_method('SetLinkChangeCallback', 
gjc@3468
   324
                   'void', 
mathieu@4073
   325
                   [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], 
gjc@3468
   326
                   is_virtual=True)
gjc@3408
   327
    ## csma-net-device.h: bool ns3::CsmaNetDevice::IsBroadcast() const [member function]
gjc@3468
   328
    cls.add_method('IsBroadcast', 
gjc@3468
   329
                   'bool', 
gjc@3468
   330
                   [], 
gjc@3468
   331
                   is_const=True, is_virtual=True)
gjc@3408
   332
    ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetBroadcast() const [member function]
gjc@3468
   333
    cls.add_method('GetBroadcast', 
gjc@3468
   334
                   'ns3::Address', 
gjc@3468
   335
                   [], 
gjc@3468
   336
                   is_const=True, is_virtual=True)
gjc@3408
   337
    ## csma-net-device.h: bool ns3::CsmaNetDevice::IsMulticast() const [member function]
gjc@3468
   338
    cls.add_method('IsMulticast', 
gjc@3468
   339
                   'bool', 
gjc@3468
   340
                   [], 
gjc@3468
   341
                   is_const=True, is_virtual=True)
vincent@3842
   342
    ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
gjc@3468
   343
    cls.add_method('GetMulticast', 
gjc@3468
   344
                   'ns3::Address', 
gjc@3468
   345
                   [param('ns3::Ipv4Address', 'multicastGroup')], 
gjc@3468
   346
                   is_const=True, is_virtual=True)
gjc@3408
   347
    ## csma-net-device.h: bool ns3::CsmaNetDevice::IsPointToPoint() const [member function]
gjc@3468
   348
    cls.add_method('IsPointToPoint', 
gjc@3468
   349
                   'bool', 
gjc@3468
   350
                   [], 
gjc@3468
   351
                   is_const=True, is_virtual=True)
gjc@3951
   352
    ## csma-net-device.h: bool ns3::CsmaNetDevice::IsBridge() const [member function]
gjc@3951
   353
    cls.add_method('IsBridge', 
gjc@3951
   354
                   'bool', 
gjc@3951
   355
                   [], 
gjc@3951
   356
                   is_const=True, is_virtual=True)
gjc@3408
   357
    ## csma-net-device.h: bool ns3::CsmaNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
gjc@3468
   358
    cls.add_method('Send', 
gjc@3468
   359
                   'bool', 
gjc@3574
   360
                   [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
gjc@3468
   361
                   is_virtual=True)
gjc@3457
   362
    ## csma-net-device.h: bool ns3::CsmaNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
gjc@3468
   363
    cls.add_method('SendFrom', 
gjc@3468
   364
                   'bool', 
gjc@3574
   365
                   [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
gjc@3468
   366
                   is_virtual=True)
gjc@3408
   367
    ## csma-net-device.h: ns3::Ptr<ns3::Node> ns3::CsmaNetDevice::GetNode() const [member function]
gjc@3468
   368
    cls.add_method('GetNode', 
gjc@3468
   369
                   'ns3::Ptr< ns3::Node >', 
gjc@3468
   370
                   [], 
gjc@3468
   371
                   is_const=True, is_virtual=True)
gjc@3408
   372
    ## csma-net-device.h: void ns3::CsmaNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
gjc@3468
   373
    cls.add_method('SetNode', 
gjc@3468
   374
                   'void', 
gjc@3468
   375
                   [param('ns3::Ptr< ns3::Node >', 'node')], 
gjc@3468
   376
                   is_virtual=True)
gjc@3408
   377
    ## csma-net-device.h: bool ns3::CsmaNetDevice::NeedsArp() const [member function]
gjc@3468
   378
    cls.add_method('NeedsArp', 
gjc@3468
   379
                   'bool', 
gjc@3468
   380
                   [], 
gjc@3468
   381
                   is_const=True, is_virtual=True)
mathieu@4073
   382
    ## 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, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
gjc@3468
   383
    cls.add_method('SetReceiveCallback', 
gjc@3468
   384
                   'void', 
mathieu@4073
   385
                   [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], 
gjc@3468
   386
                   is_virtual=True)
gjc@3855
   387
    ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
gjc@3855
   388
    cls.add_method('GetMulticast', 
gjc@3855
   389
                   'ns3::Address', 
gjc@3855
   390
                   [param('ns3::Ipv6Address', 'addr')], 
gjc@3855
   391
                   is_const=True, is_virtual=True)
mathieu@4073
   392
    ## 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, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
gjc@3468
   393
    cls.add_method('SetPromiscReceiveCallback', 
gjc@3468
   394
                   'void', 
mathieu@4073
   395
                   [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], 
gjc@3468
   396
                   is_virtual=True)
mathieu@3584
   397
    ## csma-net-device.h: bool ns3::CsmaNetDevice::SupportsSendFrom() const [member function]
mathieu@3584
   398
    cls.add_method('SupportsSendFrom', 
gjc@3468
   399
                   'bool', 
gjc@3468
   400
                   [], 
gjc@3468
   401
                   is_const=True, is_virtual=True)
gjc@3408
   402
    ## csma-net-device.h: void ns3::CsmaNetDevice::DoDispose() [member function]
gjc@3468
   403
    cls.add_method('DoDispose', 
gjc@3468
   404
                   'void', 
gjc@3468
   405
                   [], 
gjc@3468
   406
                   visibility='protected', is_virtual=True)
gjc@3408
   407
    ## csma-net-device.h: ns3::Ptr<ns3::Queue> ns3::CsmaNetDevice::GetQueue() const [member function]
gjc@3468
   408
    cls.add_method('GetQueue', 
gjc@3468
   409
                   'ns3::Ptr< ns3::Queue >', 
gjc@3468
   410
                   [], 
gjc@3468
   411
                   is_const=True, visibility='protected')
gjc@3457
   412
    ## csma-net-device.h: void ns3::CsmaNetDevice::AddHeader(ns3::Ptr<ns3::Packet> p, ns3::Mac48Address source, ns3::Mac48Address dest, uint16_t protocolNumber) [member function]
gjc@3468
   413
    cls.add_method('AddHeader', 
gjc@3468
   414
                   'void', 
gjc@3468
   415
                   [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Mac48Address', 'source'), param('ns3::Mac48Address', 'dest'), param('uint16_t', 'protocolNumber')], 
gjc@3468
   416
                   visibility='protected')
gjc@3408
   417
    ## csma-net-device.h: bool ns3::CsmaNetDevice::ProcessHeader(ns3::Ptr<ns3::Packet> p, uint16_t & param) [member function]
gjc@3468
   418
    cls.add_method('ProcessHeader', 
gjc@3468
   419
                   'bool', 
gjc@3574
   420
                   [param('ns3::Ptr< ns3::Packet >', 'p'), param('uint16_t &', 'param')], 
gjc@3468
   421
                   visibility='protected')
gjc@3408
   422
    return
gjc@3408
   423
gjc@3408
   424
def register_functions(root_module):
gjc@3408
   425
    module = root_module
gjc@3855
   426
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
gjc@3855
   427
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
tomh@4474
   428
    register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
gjc@3408
   429
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
gjc@3408
   430
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
gjc@3408
   431
    return
gjc@3408
   432
gjc@3855
   433
def register_functions_ns3_Config(module, root_module):
gjc@3855
   434
    return
gjc@3855
   435
gjc@3855
   436
def register_functions_ns3_TimeStepPrecision(module, root_module):
gjc@3855
   437
    return
gjc@3855
   438
tomh@4474
   439
def register_functions_ns3_addressUtils(module, root_module):
tomh@4474
   440
    return
tomh@4474
   441
gjc@3408
   442
def register_functions_ns3_internal(module, root_module):
gjc@3408
   443
    return
gjc@3408
   444
gjc@3408
   445
def register_functions_ns3_olsr(module, root_module):
gjc@3408
   446
    return
gjc@3408
   447