[Ns-bugs] [Bug 2] New: Time class a full-blown arithmetic object

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Fri Oct 20 04:36:40 PDT 2006


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

           Summary: Time class a full-blown arithmetic object
           Product: ns-3
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: simulation core
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: mathieu.lacage at sophia.inria.fr


Currently, it is not possible to do arithmetic with the Time class itself.
Instead, we ask our users to do their own calculations and then to convert
their final time into a Time object prior to invoking the simulator's Scheduler
methods.

It might make sense to add a bunch of arithmetic operators to this c++ class to
make it possible for users to use it directly to do their calculations. We
could use this to catch common overflow or underflow errors.

What is not super clear is how to handle substractions of Time objects: what
would be the type of the returned object ?

This bug comes from the ML discussion on ns-developers archived here:
http://mailman.isi.edu/pipermail/ns-developers/2006-October/002433.html


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list