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

Re: [ns] Problem to get a reference to a queue in a link (TCL script)




set q1 [ [$ns link $n0 $n1] set queue_] will do as well.

On Wed, 14 Jun 2000, you wrote:
> Vincenzo
> 
> In this case, it's necessary to use the 'queue' method of the 'link' 
> object, as you can see in the following example
> 
> set n0 [$ns node]
> set n1 [$ns node]
> $ns duplex-link $n0 $n1 1Mb 10ms DropTail
> set q1 [[$ns link $n0 $n1] queue]
> 
> Carlos
> 
> ---------------------------------------------
> Carlos Alberto Kamienski       [email protected]
> 
> Doutorando em Ciencia da Computacao
> Ph.D. Student
> Departamento de Informatica - UFPE
> ---------------------------------------------
> 
> On Wed, 14 Jun 2000, Mazzotta Vincenzo wrote:
> 
> > Hi to all,
> > i'm finding a command in TCL language to get a reference on a queue object.
> > After I define in NS-2 (script TCL) a link i want call a command on queue object to define some parameter.
> > 
> > Somebody have a solution or example  ???
> > 
> > Thanks in Advanced
> > 
> > Vincenzo Mazzotta
> > [email protected]
> >