[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] SplitObject init/register confusion
Hi all,
sorry for the long mail, i beg you to be patient!
i am trying to understand what does NS do at the
beginning of a simulation :
i have put some print instructions in the NS code, it
seems that for every splitobject, not only for those
defined in the tcl script that drives the simulation,
the proc "register" is called (for example :
" SplitObject proc register Agent/TCP");
* the NS manual says that this proc is invoked from
the "bind" function that is in turn invoked by
Tcl_AppInit but i couldn't find any reference to the
bind function in ~ns/tclAppInit.cc
Can someone tell me where to look for and explain why
every kind of splitobject is initialized ?
(it's like the simulator defines a sort of
"vocabulary" that is later used when splitobjects are
instantiated, is this correct ?)
* why do i find a call to create-shadow method in the
bind function ?, or better, what is the effect of
OtclAddImethod ?
Shouldn't the create-shadow method be invoked from the
splitobject constructor "init" ? is it called twice
???
Please, point me the way out of this confusion.
Thanks,
Andrea.
______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it