[Ns-bugs] [Bug 2] New: Time class a full-blown arithmetic object
bugzilla-daemon at nsnam-www.ece.gatech.edu
Fri Oct 20 04:36:40 PDT 2006
Summary: Time class a full-blown arithmetic object
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
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:
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