[Ns-bugs] [Bug 528] New: Names API alignment with Config

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Mar 24 17:33:06 PDT 2009


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

           Summary: Names API alignment with Config
           Product: ns-3
           Version: ns-3-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: simulation core
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: tomh at tomh.org
   Estimated Hours: 0.0


Presently, the Names::Add() and Names::Rename() methods return false with a
soft failure in many cases if the naming attempt did not succeed (e.g. trying
to Rename an object for which there is no existing name) and return true upon
success.  This is not lined up with how our Config API works (where
configuration failures are hard failures, and we provide a "FailSafe" variant
of some methods if needed that will return false and not assert if there is a
failure).

It seems to me that we ought to align these methods with previous convention
that we avoid soft configuration failures.  FailSafe variants or helpers can be
added in the future as needed.

I propose to fix this now for ns-3.4 since this is not yet released API. 
Specifically, the proposal would be:

Names::Add() and Names::Rename() methods return type void, and assert where
they previously returned false.


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


More information about the Ns-bugs mailing list