bindings/python/ns3_module_core.py
changeset 3460 99698bc858e8
parent 3457 2ff6f05b9467
child 3468 0bb5275704fc
equal deleted inserted replaced
3459:a67df503c7bc 3460:99698bc858e8
    19     module.add_class('AttributeInfo', outer_class=root_module['ns3::TypeId'])
    19     module.add_class('AttributeInfo', outer_class=root_module['ns3::TypeId'])
    20     ## system-wall-clock-ms.h: ns3::SystemWallClockMs [class]
    20     ## system-wall-clock-ms.h: ns3::SystemWallClockMs [class]
    21     module.add_class('SystemWallClockMs')
    21     module.add_class('SystemWallClockMs')
    22     ## callback.h: ns3::CallbackImplBase [class]
    22     ## callback.h: ns3::CallbackImplBase [class]
    23     module.add_class('CallbackImplBase', incref_method='Ref', allow_subclassing=True, decref_method='Unref', peekref_method='GetReferenceCount')
    23     module.add_class('CallbackImplBase', incref_method='Ref', allow_subclassing=True, decref_method='Unref', peekref_method='GetReferenceCount')
       
    24     ## system-mutex.h: ns3::CriticalSection [class]
       
    25     module.add_class('CriticalSection')
    24     ## trace-source-accessor.h: ns3::TraceSourceAccessor [class]
    26     ## trace-source-accessor.h: ns3::TraceSourceAccessor [class]
    25     module.add_class('TraceSourceAccessor', allow_subclassing=True)
    27     module.add_class('TraceSourceAccessor', allow_subclassing=True)
    26     ## attribute.h: ns3::AttributeChecker [class]
    28     ## attribute.h: ns3::AttributeChecker [class]
    27     module.add_class('AttributeChecker', incref_method='Ref', allow_subclassing=False, automatic_type_narrowing=True, decref_method='Unref', parent=root_module['ns3::RefCountBase'])
    29     module.add_class('AttributeChecker', incref_method='Ref', allow_subclassing=False, automatic_type_narrowing=True, decref_method='Unref', parent=root_module['ns3::RefCountBase'])
    28     ## random-variable.h: ns3::RandomVariableChecker [class]
    30     ## random-variable.h: ns3::RandomVariableChecker [class]
    29     module.add_class('RandomVariableChecker', parent=root_module['ns3::AttributeChecker'])
    31     module.add_class('RandomVariableChecker', parent=root_module['ns3::AttributeChecker'])
       
    32     ## system-mutex.h: ns3::SystemMutex [class]
       
    33     module.add_class('SystemMutex')
    30     ## random-variable.h: ns3::NormalVariable [class]
    34     ## random-variable.h: ns3::NormalVariable [class]
    31     module.add_class('NormalVariable', parent=root_module['ns3::RandomVariable'])
    35     module.add_class('NormalVariable', parent=root_module['ns3::RandomVariable'])
    32     ## object-factory.h: ns3::ObjectFactory [class]
    36     ## object-factory.h: ns3::ObjectFactory [class]
    33     module.add_class('ObjectFactory')
    37     module.add_class('ObjectFactory')
    34     ## attribute.h: ns3::AttributeAccessor [class]
    38     ## attribute.h: ns3::AttributeAccessor [class]
    35     module.add_class('AttributeAccessor', parent=root_module['ns3::RefCountBase'])
    39     module.add_class('AttributeAccessor', parent=root_module['ns3::RefCountBase'])
    36     ## random-variable.h: ns3::ParetoVariable [class]
    40     ## random-variable.h: ns3::ParetoVariable [class]
    37     module.add_class('ParetoVariable', parent=root_module['ns3::RandomVariable'])
    41     module.add_class('ParetoVariable', parent=root_module['ns3::RandomVariable'])
    38     ## random-variable.h: ns3::ConstantVariable [class]
    42     ## random-variable.h: ns3::ConstantVariable [class]
    39     module.add_class('ConstantVariable', parent=root_module['ns3::RandomVariable'])
    43     module.add_class('ConstantVariable', parent=root_module['ns3::RandomVariable'])
       
    44     ## system-thread.h: ns3::SystemThread [class]
       
    45     module.add_class('SystemThread')
    40     ## random-variable.h: ns3::EmpiricalVariable [class]
    46     ## random-variable.h: ns3::EmpiricalVariable [class]
    41     module.add_class('EmpiricalVariable', parent=root_module['ns3::RandomVariable'])
    47     module.add_class('EmpiricalVariable', parent=root_module['ns3::RandomVariable'])
    42     ## enum.h: ns3::EnumChecker [class]
    48     ## enum.h: ns3::EnumChecker [class]
    43     module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker'])
    49     module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker'])
    44     ## empty.h: ns3::empty [class]
    50     ## empty.h: ns3::empty [class]
   119     module.add_class('UniformVariable', parent=root_module['ns3::RandomVariable'])
   125     module.add_class('UniformVariable', parent=root_module['ns3::RandomVariable'])
   120     ## object.h: ns3::Object [class]
   126     ## object.h: ns3::Object [class]
   121     module.add_class('Object', incref_method='Ref', automatic_type_narrowing=True, decref_method='Unref', parent=root_module['ns3::ObjectBase'], peekref_method='GetReferenceCount')
   127     module.add_class('Object', incref_method='Ref', automatic_type_narrowing=True, decref_method='Unref', parent=root_module['ns3::ObjectBase'], peekref_method='GetReferenceCount')
   122     ## object.h: ns3::Object::AggregateIterator [class]
   128     ## object.h: ns3::Object::AggregateIterator [class]
   123     module.add_class('AggregateIterator', outer_class=root_module['ns3::Object'])
   129     module.add_class('AggregateIterator', outer_class=root_module['ns3::Object'])
       
   130     ## system-condition.h: ns3::SystemCondition [class]
       
   131     module.add_class('SystemCondition')
   124     ## random-variable.h: ns3::SequentialVariable [class]
   132     ## random-variable.h: ns3::SequentialVariable [class]
   125     module.add_class('SequentialVariable', parent=root_module['ns3::RandomVariable'])
   133     module.add_class('SequentialVariable', parent=root_module['ns3::RandomVariable'])
   126     ## object-vector.h: ns3::ObjectVectorChecker [class]
   134     ## object-vector.h: ns3::ObjectVectorChecker [class]
   127     module.add_class('ObjectVectorChecker', parent=root_module['ns3::AttributeChecker'])
   135     module.add_class('ObjectVectorChecker', parent=root_module['ns3::AttributeChecker'])
   128     ## string.h: ns3::StringChecker [class]
   136     ## string.h: ns3::StringChecker [class]
   217     register_Ns3RefCountBase_methods(root_module, root_module['ns3::RefCountBase'])
   225     register_Ns3RefCountBase_methods(root_module, root_module['ns3::RefCountBase'])
   218     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   226     register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
   219     register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo'])
   227     register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo'])
   220     register_Ns3SystemWallClockMs_methods(root_module, root_module['ns3::SystemWallClockMs'])
   228     register_Ns3SystemWallClockMs_methods(root_module, root_module['ns3::SystemWallClockMs'])
   221     register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase'])
   229     register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase'])
       
   230     register_Ns3CriticalSection_methods(root_module, root_module['ns3::CriticalSection'])
   222     register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
   231     register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
   223     register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
   232     register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
   224     register_Ns3RandomVariableChecker_methods(root_module, root_module['ns3::RandomVariableChecker'])
   233     register_Ns3RandomVariableChecker_methods(root_module, root_module['ns3::RandomVariableChecker'])
       
   234     register_Ns3SystemMutex_methods(root_module, root_module['ns3::SystemMutex'])
   225     register_Ns3NormalVariable_methods(root_module, root_module['ns3::NormalVariable'])
   235     register_Ns3NormalVariable_methods(root_module, root_module['ns3::NormalVariable'])
   226     register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
   236     register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
   227     register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
   237     register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
   228     register_Ns3ParetoVariable_methods(root_module, root_module['ns3::ParetoVariable'])
   238     register_Ns3ParetoVariable_methods(root_module, root_module['ns3::ParetoVariable'])
   229     register_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable'])
   239     register_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable'])
       
   240     register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread'])
   230     register_Ns3EmpiricalVariable_methods(root_module, root_module['ns3::EmpiricalVariable'])
   241     register_Ns3EmpiricalVariable_methods(root_module, root_module['ns3::EmpiricalVariable'])
   231     register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker'])
   242     register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker'])
   232     register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
   243     register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
   233     register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
   244     register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
   234     register_Ns3CommandLine_methods(root_module, root_module['ns3::CommandLine'])
   245     register_Ns3CommandLine_methods(root_module, root_module['ns3::CommandLine'])
   260     register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList'])
   271     register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList'])
   261     register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
   272     register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
   262     register_Ns3UniformVariable_methods(root_module, root_module['ns3::UniformVariable'])
   273     register_Ns3UniformVariable_methods(root_module, root_module['ns3::UniformVariable'])
   263     register_Ns3Object_methods(root_module, root_module['ns3::Object'])
   274     register_Ns3Object_methods(root_module, root_module['ns3::Object'])
   264     register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator'])
   275     register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator'])
       
   276     register_Ns3SystemCondition_methods(root_module, root_module['ns3::SystemCondition'])
   265     register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable'])
   277     register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable'])
   266     register_Ns3ObjectVectorChecker_methods(root_module, root_module['ns3::ObjectVectorChecker'])
   278     register_Ns3ObjectVectorChecker_methods(root_module, root_module['ns3::ObjectVectorChecker'])
   267     register_Ns3StringChecker_methods(root_module, root_module['ns3::StringChecker'])
   279     register_Ns3StringChecker_methods(root_module, root_module['ns3::StringChecker'])
   268     register_Ns3ObjectVectorValue_methods(root_module, root_module['ns3::ObjectVectorValue'])
   280     register_Ns3ObjectVectorValue_methods(root_module, root_module['ns3::ObjectVectorValue'])
   269     register_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker'])
   281     register_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker'])
   447     cls.add_constructor([], visibility='public')
   459     cls.add_constructor([], visibility='public')
   448     ## callback.h: bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
   460     ## callback.h: bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
   449     cls.add_method('IsEqual', 'bool', [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], is_pure_virtual=True, is_const=True, is_virtual=True)
   461     cls.add_method('IsEqual', 'bool', [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], is_pure_virtual=True, is_const=True, is_virtual=True)
   450     return
   462     return
   451 
   463 
       
   464 def register_Ns3CriticalSection_methods(root_module, cls):
       
   465     ## system-mutex.h: ns3::CriticalSection::CriticalSection(ns3::SystemMutex & mutex) [constructor]
       
   466     cls.add_constructor([param('ns3::SystemMutex&', 'mutex')], visibility='public')
       
   467     return
       
   468 
   452 def register_Ns3TraceSourceAccessor_methods(root_module, cls):
   469 def register_Ns3TraceSourceAccessor_methods(root_module, cls):
   453     ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor]
   470     ## trace-source-accessor.h: ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor]
   454     cls.add_constructor([], visibility='public')
   471     cls.add_constructor([], visibility='public')
   455     ## trace-source-accessor.h: void ns3::TraceSourceAccessor::Ref() const [member function]
   472     ## trace-source-accessor.h: void ns3::TraceSourceAccessor::Ref() const [member function]
   456     cls.add_method('Ref', 'void', [], is_const=True)
   473     cls.add_method('Ref', 'void', [], is_const=True)
   483     cls.add_method('Copy', 'bool', [param('ns3::AttributeValue&', 'source', is_const=True), param('ns3::AttributeValue&', 'destination')], is_pure_virtual=True, is_const=True, is_virtual=True)
   500     cls.add_method('Copy', 'bool', [param('ns3::AttributeValue&', 'source', is_const=True), param('ns3::AttributeValue&', 'destination')], is_pure_virtual=True, is_const=True, is_virtual=True)
   484     return
   501     return
   485 
   502 
   486 def register_Ns3RandomVariableChecker_methods(root_module, cls):
   503 def register_Ns3RandomVariableChecker_methods(root_module, cls):
   487     cls.add_constructor([])
   504     cls.add_constructor([])
       
   505     return
       
   506 
       
   507 def register_Ns3SystemMutex_methods(root_module, cls):
       
   508     ## system-mutex.h: ns3::SystemMutex::SystemMutex() [constructor]
       
   509     cls.add_constructor([], visibility='public')
       
   510     ## system-mutex.h: void ns3::SystemMutex::Lock() [member function]
       
   511     cls.add_method('Lock', 'void', [])
       
   512     ## system-mutex.h: void ns3::SystemMutex::Unlock() [member function]
       
   513     cls.add_method('Unlock', 'void', [])
   488     return
   514     return
   489 
   515 
   490 def register_Ns3NormalVariable_methods(root_module, cls):
   516 def register_Ns3NormalVariable_methods(root_module, cls):
   491     ## random-variable.h: ns3::NormalVariable::NormalVariable() [constructor]
   517     ## random-variable.h: ns3::NormalVariable::NormalVariable() [constructor]
   492     cls.add_constructor([], visibility='public')
   518     cls.add_constructor([], visibility='public')
   551     cls.add_constructor([], visibility='public')
   577     cls.add_constructor([], visibility='public')
   552     ## random-variable.h: ns3::ConstantVariable::ConstantVariable(double c) [constructor]
   578     ## random-variable.h: ns3::ConstantVariable::ConstantVariable(double c) [constructor]
   553     cls.add_constructor([param('double', 'c')], visibility='public')
   579     cls.add_constructor([param('double', 'c')], visibility='public')
   554     ## random-variable.h: void ns3::ConstantVariable::SetConstant(double c) [member function]
   580     ## random-variable.h: void ns3::ConstantVariable::SetConstant(double c) [member function]
   555     cls.add_method('SetConstant', 'void', [param('double', 'c')])
   581     cls.add_method('SetConstant', 'void', [param('double', 'c')])
       
   582     return
       
   583 
       
   584 def register_Ns3SystemThread_methods(root_module, cls):
       
   585     ## system-thread.h: ns3::SystemThread::SystemThread(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [constructor]
       
   586     cls.add_constructor([param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], visibility='public')
       
   587     ## system-thread.h: void ns3::SystemThread::Ref() const [member function]
       
   588     cls.add_method('Ref', 'void', [], is_const=True)
       
   589     ## system-thread.h: void ns3::SystemThread::Unref() const [member function]
       
   590     cls.add_method('Unref', 'void', [], is_const=True)
       
   591     ## system-thread.h: void ns3::SystemThread::Start() [member function]
       
   592     cls.add_method('Start', 'void', [])
       
   593     ## system-thread.h: void ns3::SystemThread::Join() [member function]
       
   594     cls.add_method('Join', 'void', [])
   556     return
   595     return
   557 
   596 
   558 def register_Ns3EmpiricalVariable_methods(root_module, cls):
   597 def register_Ns3EmpiricalVariable_methods(root_module, cls):
   559     ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable() [constructor]
   598     ## random-variable.h: ns3::EmpiricalVariable::EmpiricalVariable() [constructor]
   560     cls.add_constructor([], visibility='public')
   599     cls.add_constructor([], visibility='public')
   940     cls.add_constructor([], visibility='public')
   979     cls.add_constructor([], visibility='public')
   941     ## object.h: bool ns3::Object::AggregateIterator::HasNext() const [member function]
   980     ## object.h: bool ns3::Object::AggregateIterator::HasNext() const [member function]
   942     cls.add_method('HasNext', 'bool', [], is_const=True)
   981     cls.add_method('HasNext', 'bool', [], is_const=True)
   943     ## object.h: ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function]
   982     ## object.h: ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function]
   944     cls.add_method('Next', 'ns3::Ptr< ns3::Object const >', [])
   983     cls.add_method('Next', 'ns3::Ptr< ns3::Object const >', [])
       
   984     return
       
   985 
       
   986 def register_Ns3SystemCondition_methods(root_module, cls):
       
   987     ## system-condition.h: ns3::SystemCondition::SystemCondition() [constructor]
       
   988     cls.add_constructor([], visibility='public')
       
   989     ## system-condition.h: void ns3::SystemCondition::SetCondition(bool condition) [member function]
       
   990     cls.add_method('SetCondition', 'void', [param('bool', 'condition')])
       
   991     ## system-condition.h: bool ns3::SystemCondition::GetCondition() [member function]
       
   992     cls.add_method('GetCondition', 'bool', [])
       
   993     ## system-condition.h: void ns3::SystemCondition::Signal() [member function]
       
   994     cls.add_method('Signal', 'void', [])
       
   995     ## system-condition.h: void ns3::SystemCondition::Broadcast() [member function]
       
   996     cls.add_method('Broadcast', 'void', [])
       
   997     ## system-condition.h: void ns3::SystemCondition::Wait() [member function]
       
   998     cls.add_method('Wait', 'void', [])
       
   999     ## system-condition.h: bool ns3::SystemCondition::TimedWait(uint64_t ns) [member function]
       
  1000     cls.add_method('TimedWait', 'bool', [param('uint64_t', 'ns')])
   945     return
  1001     return
   946 
  1002 
   947 def register_Ns3SequentialVariable_methods(root_module, cls):
  1003 def register_Ns3SequentialVariable_methods(root_module, cls):
   948     ## random-variable.h: ns3::SequentialVariable::SequentialVariable(double f, double l, double i=1, uint32_t c=1) [constructor]
  1004     ## random-variable.h: ns3::SequentialVariable::SequentialVariable(double f, double l, double i=1, uint32_t c=1) [constructor]
   949     cls.add_constructor([param('double', 'f'), param('double', 'l'), param('double', 'i', default_value='1'), param('uint32_t', 'c', default_value='1')], visibility='public')
  1005     cls.add_constructor([param('double', 'f'), param('double', 'l'), param('double', 'i', default_value='1'), param('uint32_t', 'c', default_value='1')], visibility='public')