[Ns-bugs] [Bug 631] New: RealtimeSimulatorImpl not compatible with python bindings

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Jul 8 13:34:55 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=631

           Summary: RealtimeSimulatorImpl not compatible with python
                    bindings
           Product: ns-3
           Version: ns-3-dev
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: python bindings
        AssignedTo: gjcarneiro at gmail.com
        ReportedBy: tomh at tomh.org
                CC: ns-bugs at isi.edu
   Estimated Hours: 0.0


Realtime simulations do not presently work from a python program.  The reason
seems to be that in ns3module_helpers.cc, the function _wrap_Simulator_Run()
calls IsFinished()/RunOneEvent(), which is different from C++ Simulator::Run(). 

I understand that RunOneEvent() is there to allow pyviz and other GUIs to step
through simulation execution, but if someone is to use RunOneEvent() with
realtime, the responsibility lies in the caller of RunOneEvent() to maintain a
realtime clock and perform synchronization.  This is documented in
RealtimeSimulatorImpl::RunOneEvent().

A possible solution is to detect the presence of this implementation type and
behave like Simulator::Run() when RealtimeSimulatorImpl() is selected.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list