[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Tcl problem & gen-map



Hello,

I also have the same problem as you: when I tried to use gen-map, it didn't
produce anything. I am using the daily snapshot at the beginning of this
month. When I tried to add Node_($i) as Haobo suggested, it gave me an
error. How did you solve this problem?

Thanks,
Huiwen

> -----Original Message-----
> From: Mickael Vera [mailto:[email protected]]
> Sent: Friday, October 08, 1999 8:06 AM
> To: ns users
> Cc: Yu, Alton [CAR:6T14:EXCH]
> Subject: Re: Tcl problem & gen-map
> 
> 
> Alton Yu wrote:
> > 
> > Mickael,
> > 
> > Perhaps, you can try calling the "gen-map" proc in 
> ns-trace.tcl in your
> > script before "$ns run". It outputs a clear view of the 
> network that you
> > have created. :)
> > 
> > Alton.
> 
> I didn't know this feature of ns, but it doesn't
> produce anything for my simulation. I use the snapshot
> and this is the begining of the code. (the commentary
> is not mine :-) )
> 
> ###################################################
> Simulator instproc gen-map {} {
> 	# Did you ever see such uglier code? duh?
> 	#
> 
> 	$self instvar Node_ link_ MobileNode_
> 
> 	set nn [Node set nn_]> 
> ####################################################
> 
> Maybe there is an error because one time Node_ is used
> and another time it is Node ? I don't know enough internals
> to debug it.
> 
> Thanks,
> 
> Mickael.
>