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