bindings/python/ns3_module_simulator.py
changeset 4204 1b2a20c85856
parent 4086 37dbf76b4c66
child 4236 6ef5bba17bf9
equal deleted inserted replaced
4203:53a87941480f 4204:1b2a20c85856
    53     module.add_class('HeapScheduler', parent=root_module['ns3::Scheduler'])
    53     module.add_class('HeapScheduler', parent=root_module['ns3::Scheduler'])
    54     ## list-scheduler.h: ns3::ListScheduler [class]
    54     ## list-scheduler.h: ns3::ListScheduler [class]
    55     module.add_class('ListScheduler', parent=root_module['ns3::Scheduler'])
    55     module.add_class('ListScheduler', parent=root_module['ns3::Scheduler'])
    56     ## map-scheduler.h: ns3::MapScheduler [class]
    56     ## map-scheduler.h: ns3::MapScheduler [class]
    57     module.add_class('MapScheduler', parent=root_module['ns3::Scheduler'])
    57     module.add_class('MapScheduler', parent=root_module['ns3::Scheduler'])
       
    58     ## ns2-calendar-scheduler.h: ns3::Ns2CalendarScheduler [class]
       
    59     module.add_class('Ns2CalendarScheduler', parent=root_module['ns3::Scheduler'])
    58     ## realtime-simulator-impl.h: ns3::RealtimeSimulatorImpl [class]
    60     ## realtime-simulator-impl.h: ns3::RealtimeSimulatorImpl [class]
    59     module.add_class('RealtimeSimulatorImpl', parent=root_module['ns3::SimulatorImpl'])
    61     module.add_class('RealtimeSimulatorImpl', parent=root_module['ns3::SimulatorImpl'])
    60     ## realtime-simulator-impl.h: ns3::RealtimeSimulatorImpl::SynchronizationMode [enumeration]
    62     ## realtime-simulator-impl.h: ns3::RealtimeSimulatorImpl::SynchronizationMode [enumeration]
    61     module.add_enum('SynchronizationMode', ['SYNC_BEST_EFFORT', 'SYNC_HARD_LIMIT'], outer_class=root_module['ns3::RealtimeSimulatorImpl'])
    63     module.add_enum('SynchronizationMode', ['SYNC_BEST_EFFORT', 'SYNC_HARD_LIMIT'], outer_class=root_module['ns3::RealtimeSimulatorImpl'])
    62     
    64     
   125     register_Ns3CalendarScheduler_methods(root_module, root_module['ns3::CalendarScheduler'])
   127     register_Ns3CalendarScheduler_methods(root_module, root_module['ns3::CalendarScheduler'])
   126     register_Ns3DefaultSimulatorImpl_methods(root_module, root_module['ns3::DefaultSimulatorImpl'])
   128     register_Ns3DefaultSimulatorImpl_methods(root_module, root_module['ns3::DefaultSimulatorImpl'])
   127     register_Ns3HeapScheduler_methods(root_module, root_module['ns3::HeapScheduler'])
   129     register_Ns3HeapScheduler_methods(root_module, root_module['ns3::HeapScheduler'])
   128     register_Ns3ListScheduler_methods(root_module, root_module['ns3::ListScheduler'])
   130     register_Ns3ListScheduler_methods(root_module, root_module['ns3::ListScheduler'])
   129     register_Ns3MapScheduler_methods(root_module, root_module['ns3::MapScheduler'])
   131     register_Ns3MapScheduler_methods(root_module, root_module['ns3::MapScheduler'])
       
   132     register_Ns3Ns2CalendarScheduler_methods(root_module, root_module['ns3::Ns2CalendarScheduler'])
   130     register_Ns3RealtimeSimulatorImpl_methods(root_module, root_module['ns3::RealtimeSimulatorImpl'])
   133     register_Ns3RealtimeSimulatorImpl_methods(root_module, root_module['ns3::RealtimeSimulatorImpl'])
   131     return
   134     return
   132 
   135 
   133 def register_Ns3EventId_methods(root_module, cls):
   136 def register_Ns3EventId_methods(root_module, cls):
   134     cls.add_binary_comparison_operator('!=')
   137     cls.add_binary_comparison_operator('!=')
   724     ## scheduler.h: ns3::Scheduler::Event::key [variable]
   727     ## scheduler.h: ns3::Scheduler::Event::key [variable]
   725     cls.add_instance_attribute('key', 'ns3::Scheduler::EventKey', is_const=False)
   728     cls.add_instance_attribute('key', 'ns3::Scheduler::EventKey', is_const=False)
   726     return
   729     return
   727 
   730 
   728 def register_Ns3SchedulerEventKey_methods(root_module, cls):
   731 def register_Ns3SchedulerEventKey_methods(root_module, cls):
       
   732     cls.add_binary_comparison_operator('!=')
   729     cls.add_binary_comparison_operator('<')
   733     cls.add_binary_comparison_operator('<')
       
   734     cls.add_binary_comparison_operator('>')
   730     ## scheduler.h: ns3::Scheduler::EventKey::EventKey() [constructor]
   735     ## scheduler.h: ns3::Scheduler::EventKey::EventKey() [constructor]
   731     cls.add_constructor([])
   736     cls.add_constructor([])
   732     ## scheduler.h: ns3::Scheduler::EventKey::EventKey(ns3::Scheduler::EventKey const & arg0) [copy constructor]
   737     ## scheduler.h: ns3::Scheduler::EventKey::EventKey(ns3::Scheduler::EventKey const & arg0) [copy constructor]
   733     cls.add_constructor([param('ns3::Scheduler::EventKey const &', 'arg0')])
   738     cls.add_constructor([param('ns3::Scheduler::EventKey const &', 'arg0')])
   734     ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable]
   739     ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable]
  1301     cls.add_method('RemoveNext', 
  1306     cls.add_method('RemoveNext', 
  1302                    'ns3::Scheduler::Event', 
  1307                    'ns3::Scheduler::Event', 
  1303                    [], 
  1308                    [], 
  1304                    is_virtual=True)
  1309                    is_virtual=True)
  1305     ## map-scheduler.h: void ns3::MapScheduler::Remove(ns3::Scheduler::Event const & ev) [member function]
  1310     ## map-scheduler.h: void ns3::MapScheduler::Remove(ns3::Scheduler::Event const & ev) [member function]
       
  1311     cls.add_method('Remove', 
       
  1312                    'void', 
       
  1313                    [param('ns3::Scheduler::Event const &', 'ev')], 
       
  1314                    is_virtual=True)
       
  1315     return
       
  1316 
       
  1317 def register_Ns3Ns2CalendarScheduler_methods(root_module, cls):
       
  1318     ## ns2-calendar-scheduler.h: ns3::Ns2CalendarScheduler::Ns2CalendarScheduler(ns3::Ns2CalendarScheduler const & arg0) [copy constructor]
       
  1319     cls.add_constructor([param('ns3::Ns2CalendarScheduler const &', 'arg0')])
       
  1320     ## ns2-calendar-scheduler.h: static ns3::TypeId ns3::Ns2CalendarScheduler::GetTypeId() [member function]
       
  1321     cls.add_method('GetTypeId', 
       
  1322                    'ns3::TypeId', 
       
  1323                    [], 
       
  1324                    is_static=True)
       
  1325     ## ns2-calendar-scheduler.h: ns3::Ns2CalendarScheduler::Ns2CalendarScheduler() [constructor]
       
  1326     cls.add_constructor([])
       
  1327     ## ns2-calendar-scheduler.h: void ns3::Ns2CalendarScheduler::Insert(ns3::Scheduler::Event const & ev) [member function]
       
  1328     cls.add_method('Insert', 
       
  1329                    'void', 
       
  1330                    [param('ns3::Scheduler::Event const &', 'ev')], 
       
  1331                    is_virtual=True)
       
  1332     ## ns2-calendar-scheduler.h: bool ns3::Ns2CalendarScheduler::IsEmpty() const [member function]
       
  1333     cls.add_method('IsEmpty', 
       
  1334                    'bool', 
       
  1335                    [], 
       
  1336                    is_const=True, is_virtual=True)
       
  1337     ## ns2-calendar-scheduler.h: ns3::Scheduler::Event ns3::Ns2CalendarScheduler::PeekNext() const [member function]
       
  1338     cls.add_method('PeekNext', 
       
  1339                    'ns3::Scheduler::Event', 
       
  1340                    [], 
       
  1341                    is_const=True, is_virtual=True)
       
  1342     ## ns2-calendar-scheduler.h: ns3::Scheduler::Event ns3::Ns2CalendarScheduler::RemoveNext() [member function]
       
  1343     cls.add_method('RemoveNext', 
       
  1344                    'ns3::Scheduler::Event', 
       
  1345                    [], 
       
  1346                    is_virtual=True)
       
  1347     ## ns2-calendar-scheduler.h: void ns3::Ns2CalendarScheduler::Remove(ns3::Scheduler::Event const & ev) [member function]
  1306     cls.add_method('Remove', 
  1348     cls.add_method('Remove', 
  1307                    'void', 
  1349                    'void', 
  1308                    [param('ns3::Scheduler::Event const &', 'ev')], 
  1350                    [param('ns3::Scheduler::Event const &', 'ev')], 
  1309                    is_virtual=True)
  1351                    is_virtual=True)
  1310     return
  1352     return