bindings/python/ns3_module_simulator.py
changeset 3544 3685ab98e4b2
parent 3515 88e9cee20461
child 3567 728eb3f583b3
equal deleted inserted replaced
3543:04315a10b9c1 3544:3685ab98e4b2
   168                    [])
   168                    [])
   169     ## timer.h: void ns3::Timer::Resume() [member function]
   169     ## timer.h: void ns3::Timer::Resume() [member function]
   170     cls.add_method('Resume', 
   170     cls.add_method('Resume', 
   171                    'void', 
   171                    'void', 
   172                    [])
   172                    [])
       
   173     cls.add_copy_constructor()
   173     return
   174     return
   174 
   175 
   175 def register_Ns3TimerImpl_methods(root_module, cls):
   176 def register_Ns3TimerImpl_methods(root_module, cls):
   176     ## timer-impl.h: ns3::EventId ns3::TimerImpl::Schedule(ns3::Time const & delay) [member function]
   177     ## timer-impl.h: ns3::EventId ns3::TimerImpl::Schedule(ns3::Time const & delay) [member function]
   177     cls.add_method('Schedule', 
   178     cls.add_method('Schedule', 
   182     cls.add_method('Invoke', 
   183     cls.add_method('Invoke', 
   183                    'void', 
   184                    'void', 
   184                    [], 
   185                    [], 
   185                    is_pure_virtual=True, is_virtual=True)
   186                    is_pure_virtual=True, is_virtual=True)
   186     cls.add_constructor([])
   187     cls.add_constructor([])
       
   188     cls.add_copy_constructor()
   187     return
   189     return
   188 
   190 
   189 def register_Ns3Time_methods(root_module, cls):
   191 def register_Ns3Time_methods(root_module, cls):
   190     ## nstime.h: ns3::TimeUnit<1>::TimeUnit(std::string const & s) [constructor]
   192     ## nstime.h: ns3::TimeUnit<1>::TimeUnit(std::string const & s) [constructor]
   191     cls.add_constructor([param('std::string&', 's', is_const=True)])
   193     cls.add_constructor([param('std::string&', 's', is_const=True)])
   327     cls.add_constructor([])
   329     cls.add_constructor([])
   328     ## watchdog.h: void ns3::Watchdog::Ping(ns3::Time delay) [member function]
   330     ## watchdog.h: void ns3::Watchdog::Ping(ns3::Time delay) [member function]
   329     cls.add_method('Ping', 
   331     cls.add_method('Ping', 
   330                    'void', 
   332                    'void', 
   331                    [param('ns3::Time', 'delay')])
   333                    [param('ns3::Time', 'delay')])
       
   334     cls.add_copy_constructor()
   332     return
   335     return
   333 
   336 
   334 def register_Ns3Simulator_methods(root_module, cls):
   337 def register_Ns3Simulator_methods(root_module, cls):
   335     ## simulator.h: static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
   338     ## simulator.h: static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
   336     cls.add_method('SetImplementation', 
   339     cls.add_method('SetImplementation', 
   410     ## simulator.h: static ns3::Time ns3::Simulator::GetMaximumSimulationTime() [member function]
   413     ## simulator.h: static ns3::Time ns3::Simulator::GetMaximumSimulationTime() [member function]
   411     cls.add_method('GetMaximumSimulationTime', 
   414     cls.add_method('GetMaximumSimulationTime', 
   412                    'ns3::Time', 
   415                    'ns3::Time', 
   413                    [], 
   416                    [], 
   414                    is_static=True)
   417                    is_static=True)
       
   418     cls.add_copy_constructor()
   415     return
   419     return
   416 
   420 
   417 def register_Ns3EventId_methods(root_module, cls):
   421 def register_Ns3EventId_methods(root_module, cls):
   418     ## event-id.h: ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor]
   422     ## event-id.h: ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor]
   419     cls.add_constructor([param('ns3::EventId&', 'arg0', is_const=True)])
   423     cls.add_constructor([param('ns3::EventId&', 'arg0', is_const=True)])
   480     ## event-impl.h: void ns3::EventImpl::Notify() [member function]
   484     ## event-impl.h: void ns3::EventImpl::Notify() [member function]
   481     cls.add_method('Notify', 
   485     cls.add_method('Notify', 
   482                    'void', 
   486                    'void', 
   483                    [], 
   487                    [], 
   484                    is_pure_virtual=True, visibility='protected', is_virtual=True)
   488                    is_pure_virtual=True, visibility='protected', is_virtual=True)
       
   489     cls.add_copy_constructor()
   485     return
   490     return
   486 
   491 
   487 def register_Ns3HighPrecision_methods(root_module, cls):
   492 def register_Ns3HighPrecision_methods(root_module, cls):
   488     ## high-precision-128.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor]
   493     ## high-precision-128.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor]
   489     cls.add_constructor([param('ns3::HighPrecision&', 'arg0', is_const=True)])
   494     cls.add_constructor([param('ns3::HighPrecision&', 'arg0', is_const=True)])
   536                    is_static=True)
   541                    is_static=True)
   537     return
   542     return
   538 
   543 
   539 def register_Ns3TimeChecker_methods(root_module, cls):
   544 def register_Ns3TimeChecker_methods(root_module, cls):
   540     cls.add_constructor([])
   545     cls.add_constructor([])
       
   546     cls.add_copy_constructor()
   541     return
   547     return
   542 
   548 
   543 def register_Ns3Scheduler_methods(root_module, cls):
   549 def register_Ns3Scheduler_methods(root_module, cls):
   544     ## scheduler.h: static ns3::TypeId ns3::Scheduler::GetTypeId() [member function]
   550     ## scheduler.h: static ns3::TypeId ns3::Scheduler::GetTypeId() [member function]
   545     cls.add_method('GetTypeId', 
   551     cls.add_method('GetTypeId', 
   570     cls.add_method('Remove', 
   576     cls.add_method('Remove', 
   571                    'bool', 
   577                    'bool', 
   572                    [param('ns3::EventId&', 'id', is_const=True)], 
   578                    [param('ns3::EventId&', 'id', is_const=True)], 
   573                    is_pure_virtual=True, is_virtual=True)
   579                    is_pure_virtual=True, is_virtual=True)
   574     cls.add_constructor([])
   580     cls.add_constructor([])
       
   581     cls.add_copy_constructor()
   575     return
   582     return
   576 
   583 
   577 def register_Ns3SchedulerEventKey_methods(root_module, cls):
   584 def register_Ns3SchedulerEventKey_methods(root_module, cls):
   578     ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable]
   585     ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable]
   579     cls.add_instance_attribute('m_ts', 'uint64_t', is_const=False)
   586     cls.add_instance_attribute('m_ts', 'uint64_t', is_const=False)
   580     ## scheduler.h: ns3::Scheduler::EventKey::m_uid [variable]
   587     ## scheduler.h: ns3::Scheduler::EventKey::m_uid [variable]
   581     cls.add_instance_attribute('m_uid', 'uint32_t', is_const=False)
   588     cls.add_instance_attribute('m_uid', 'uint32_t', is_const=False)
   582     cls.add_constructor([])
   589     cls.add_constructor([])
       
   590     cls.add_copy_constructor()
   583     return
   591     return
   584 
   592 
   585 def register_Ns3TimeValue_methods(root_module, cls):
   593 def register_Ns3TimeValue_methods(root_module, cls):
   586     ## nstime.h: ns3::TimeValue::TimeValue() [constructor]
   594     ## nstime.h: ns3::TimeValue::TimeValue() [constructor]
   587     cls.add_constructor([])
   595     cls.add_constructor([])
   609     ## nstime.h: bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
   617     ## nstime.h: bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
   610     cls.add_method('DeserializeFromString', 
   618     cls.add_method('DeserializeFromString', 
   611                    'bool', 
   619                    'bool', 
   612                    [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], 
   620                    [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], 
   613                    is_virtual=True)
   621                    is_virtual=True)
       
   622     cls.add_copy_constructor()
   614     return
   623     return
   615 
   624 
   616 def register_Ns3SimulatorImpl_methods(root_module, cls):
   625 def register_Ns3SimulatorImpl_methods(root_module, cls):
   617     ## simulator-impl.h: void ns3::SimulatorImpl::Destroy() [member function]
   626     ## simulator-impl.h: void ns3::SimulatorImpl::Destroy() [member function]
   618     cls.add_method('Destroy', 
   627     cls.add_method('Destroy', 
   703     cls.add_method('GetScheduler', 
   712     cls.add_method('GetScheduler', 
   704                    'ns3::Ptr< ns3::Scheduler >', 
   713                    'ns3::Ptr< ns3::Scheduler >', 
   705                    [], 
   714                    [], 
   706                    is_pure_virtual=True, is_const=True, is_virtual=True)
   715                    is_pure_virtual=True, is_const=True, is_virtual=True)
   707     cls.add_constructor([])
   716     cls.add_constructor([])
       
   717     cls.add_copy_constructor()
   708     return
   718     return
   709 
   719 
   710 def register_Ns3DefaultSimulatorImpl_methods(root_module, cls):
   720 def register_Ns3DefaultSimulatorImpl_methods(root_module, cls):
   711     ## default-simulator-impl.h: static ns3::TypeId ns3::DefaultSimulatorImpl::GetTypeId() [member function]
   721     ## default-simulator-impl.h: static ns3::TypeId ns3::DefaultSimulatorImpl::GetTypeId() [member function]
   712     cls.add_method('GetTypeId', 
   722     cls.add_method('GetTypeId', 
   803     ## default-simulator-impl.h: ns3::Ptr<ns3::Scheduler> ns3::DefaultSimulatorImpl::GetScheduler() const [member function]
   813     ## default-simulator-impl.h: ns3::Ptr<ns3::Scheduler> ns3::DefaultSimulatorImpl::GetScheduler() const [member function]
   804     cls.add_method('GetScheduler', 
   814     cls.add_method('GetScheduler', 
   805                    'ns3::Ptr< ns3::Scheduler >', 
   815                    'ns3::Ptr< ns3::Scheduler >', 
   806                    [], 
   816                    [], 
   807                    is_const=True, is_virtual=True)
   817                    is_const=True, is_virtual=True)
       
   818     cls.add_copy_constructor()
   808     return
   819     return
   809 
   820 
   810 def register_Ns3HeapScheduler_methods(root_module, cls):
   821 def register_Ns3HeapScheduler_methods(root_module, cls):
   811     ## heap-scheduler.h: ns3::HeapScheduler::HeapScheduler() [constructor]
   822     ## heap-scheduler.h: ns3::HeapScheduler::HeapScheduler() [constructor]
   812     cls.add_constructor([])
   823     cls.add_constructor([])
   833     ## heap-scheduler.h: bool ns3::HeapScheduler::Remove(ns3::EventId const & ev) [member function]
   844     ## heap-scheduler.h: bool ns3::HeapScheduler::Remove(ns3::EventId const & ev) [member function]
   834     cls.add_method('Remove', 
   845     cls.add_method('Remove', 
   835                    'bool', 
   846                    'bool', 
   836                    [param('ns3::EventId&', 'ev', is_const=True)], 
   847                    [param('ns3::EventId&', 'ev', is_const=True)], 
   837                    is_virtual=True)
   848                    is_virtual=True)
       
   849     cls.add_copy_constructor()
   838     return
   850     return
   839 
   851 
   840 def register_Ns3ListScheduler_methods(root_module, cls):
   852 def register_Ns3ListScheduler_methods(root_module, cls):
   841     ## list-scheduler.h: ns3::ListScheduler::ListScheduler() [constructor]
   853     ## list-scheduler.h: ns3::ListScheduler::ListScheduler() [constructor]
   842     cls.add_constructor([])
   854     cls.add_constructor([])
   863     ## list-scheduler.h: bool ns3::ListScheduler::Remove(ns3::EventId const & ev) [member function]
   875     ## list-scheduler.h: bool ns3::ListScheduler::Remove(ns3::EventId const & ev) [member function]
   864     cls.add_method('Remove', 
   876     cls.add_method('Remove', 
   865                    'bool', 
   877                    'bool', 
   866                    [param('ns3::EventId&', 'ev', is_const=True)], 
   878                    [param('ns3::EventId&', 'ev', is_const=True)], 
   867                    is_virtual=True)
   879                    is_virtual=True)
       
   880     cls.add_copy_constructor()
   868     return
   881     return
   869 
   882 
   870 def register_Ns3MapScheduler_methods(root_module, cls):
   883 def register_Ns3MapScheduler_methods(root_module, cls):
   871     ## map-scheduler.h: ns3::MapScheduler::MapScheduler() [constructor]
   884     ## map-scheduler.h: ns3::MapScheduler::MapScheduler() [constructor]
   872     cls.add_constructor([])
   885     cls.add_constructor([])
   893     ## map-scheduler.h: bool ns3::MapScheduler::Remove(ns3::EventId const & ev) [member function]
   906     ## map-scheduler.h: bool ns3::MapScheduler::Remove(ns3::EventId const & ev) [member function]
   894     cls.add_method('Remove', 
   907     cls.add_method('Remove', 
   895                    'bool', 
   908                    'bool', 
   896                    [param('ns3::EventId&', 'ev', is_const=True)], 
   909                    [param('ns3::EventId&', 'ev', is_const=True)], 
   897                    is_virtual=True)
   910                    is_virtual=True)
       
   911     cls.add_copy_constructor()
   898     return
   912     return
   899 
   913 
   900 def register_functions(root_module):
   914 def register_functions(root_module):
   901     module = root_module
   915     module = root_module
   902     ## high-precision.h: extern ns3::HighPrecision ns3::Max(ns3::HighPrecision const & a, ns3::HighPrecision const & b) [free function]
   916     ## high-precision.h: extern ns3::HighPrecision ns3::Max(ns3::HighPrecision const & a, ns3::HighPrecision const & b) [free function]