bindings/python/ns3_module_simulator.py
changeset 4221 73b49aa25221
parent 4219 7f7331a4c165
child 4236 6ef5bba17bf9
equal deleted inserted replaced
4220:bdce17c3a0e8 4221:73b49aa25221
    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('!=')
   716     ## scheduler.h: ns3::Scheduler::Event::key [variable]
   719     ## scheduler.h: ns3::Scheduler::Event::key [variable]
   717     cls.add_instance_attribute('key', 'ns3::Scheduler::EventKey', is_const=False)
   720     cls.add_instance_attribute('key', 'ns3::Scheduler::EventKey', is_const=False)
   718     return
   721     return
   719 
   722 
   720 def register_Ns3SchedulerEventKey_methods(root_module, cls):
   723 def register_Ns3SchedulerEventKey_methods(root_module, cls):
       
   724     cls.add_binary_comparison_operator('!=')
   721     cls.add_binary_comparison_operator('<')
   725     cls.add_binary_comparison_operator('<')
       
   726     cls.add_binary_comparison_operator('>')
   722     ## scheduler.h: ns3::Scheduler::EventKey::EventKey() [constructor]
   727     ## scheduler.h: ns3::Scheduler::EventKey::EventKey() [constructor]
   723     cls.add_constructor([])
   728     cls.add_constructor([])
   724     ## scheduler.h: ns3::Scheduler::EventKey::EventKey(ns3::Scheduler::EventKey const & arg0) [copy constructor]
   729     ## scheduler.h: ns3::Scheduler::EventKey::EventKey(ns3::Scheduler::EventKey const & arg0) [copy constructor]
   725     cls.add_constructor([param('ns3::Scheduler::EventKey const &', 'arg0')])
   730     cls.add_constructor([param('ns3::Scheduler::EventKey const &', 'arg0')])
   726     ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable]
   731     ## scheduler.h: ns3::Scheduler::EventKey::m_ts [variable]
  1280     cls.add_method('RemoveNext', 
  1285     cls.add_method('RemoveNext', 
  1281                    'ns3::Scheduler::Event', 
  1286                    'ns3::Scheduler::Event', 
  1282                    [], 
  1287                    [], 
  1283                    is_virtual=True)
  1288                    is_virtual=True)
  1284     ## map-scheduler.h: void ns3::MapScheduler::Remove(ns3::Scheduler::Event const & ev) [member function]
  1289     ## map-scheduler.h: void ns3::MapScheduler::Remove(ns3::Scheduler::Event const & ev) [member function]
       
  1290     cls.add_method('Remove', 
       
  1291                    'void', 
       
  1292                    [param('ns3::Scheduler::Event const &', 'ev')], 
       
  1293                    is_virtual=True)
       
  1294     cls.add_copy_constructor()
       
  1295     return
       
  1296 
       
  1297 def register_Ns3Ns2CalendarScheduler_methods(root_module, cls):
       
  1298     ## ns2-calendar-scheduler.h: static ns3::TypeId ns3::Ns2CalendarScheduler::GetTypeId() [member function]
       
  1299     cls.add_method('GetTypeId', 
       
  1300                    'ns3::TypeId', 
       
  1301                    [], 
       
  1302                    is_static=True)
       
  1303     ## ns2-calendar-scheduler.h: ns3::Ns2CalendarScheduler::Ns2CalendarScheduler() [constructor]
       
  1304     cls.add_constructor([])
       
  1305     ## ns2-calendar-scheduler.h: void ns3::Ns2CalendarScheduler::Insert(ns3::Scheduler::Event const & ev) [member function]
       
  1306     cls.add_method('Insert', 
       
  1307                    'void', 
       
  1308                    [param('ns3::Scheduler::Event const &', 'ev')], 
       
  1309                    is_virtual=True)
       
  1310     ## ns2-calendar-scheduler.h: bool ns3::Ns2CalendarScheduler::IsEmpty() const [member function]
       
  1311     cls.add_method('IsEmpty', 
       
  1312                    'bool', 
       
  1313                    [], 
       
  1314                    is_const=True, is_virtual=True)
       
  1315     ## ns2-calendar-scheduler.h: ns3::Scheduler::Event ns3::Ns2CalendarScheduler::PeekNext() const [member function]
       
  1316     cls.add_method('PeekNext', 
       
  1317                    'ns3::Scheduler::Event', 
       
  1318                    [], 
       
  1319                    is_const=True, is_virtual=True)
       
  1320     ## ns2-calendar-scheduler.h: ns3::Scheduler::Event ns3::Ns2CalendarScheduler::RemoveNext() [member function]
       
  1321     cls.add_method('RemoveNext', 
       
  1322                    'ns3::Scheduler::Event', 
       
  1323                    [], 
       
  1324                    is_virtual=True)
       
  1325     ## ns2-calendar-scheduler.h: void ns3::Ns2CalendarScheduler::Remove(ns3::Scheduler::Event const & ev) [member function]
  1285     cls.add_method('Remove', 
  1326     cls.add_method('Remove', 
  1286                    'void', 
  1327                    'void', 
  1287                    [param('ns3::Scheduler::Event const &', 'ev')], 
  1328                    [param('ns3::Scheduler::Event const &', 'ev')], 
  1288                    is_virtual=True)
  1329                    is_virtual=True)
  1289     cls.add_copy_constructor()
  1330     cls.add_copy_constructor()