[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c++ code for Node?
Haobo,
Thanks for the reply. I looked in node.cc and node.h, but there are no
variables instantiated there. In the ns-node.tcl file, there are
variables instantiated in init, such as id_. I'd like to use the tcl file
to instantiate a new variable in each node, then be able to set the
variable from the script tcl file. (Thus, I'd have to change the init
procedure and add a setNewVariable procedure to the ns-node.tcl file.)
I tried this but it doesn't work; is there something else I need to
change? (It recompiles fine with the changes, but breaks during running,
as long as the 'setNewVariable' procedure is included in the ns-node.tcl
code.)
Thanks for any and all advice!
-Lori
On Sat, 22 May 1999, Haobo Yu wrote:
> I think it's obsolete. Check out node.{cc,h} under ns-2/.
>
> - Haobo
>
> On Fri, 21 May 1999, Lori Flynn wrote:
>
> > Hi all,
> >
> > I'm a newbie and in need of help!
> >
> > According to 5.1 (paragraph 2) of the "ns Notes and Documentation", the
> > Node itself is a standalone class in OTcl. Does this mean that there is
> > no C++ code for it?
> >
> > (I want to add a field to the Node class.)
> >
> > Thanks much in advance!
> > -Lori
> >
> >
>