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

Re: Simplex Link



On Fri, 23 Oct 1998 10:05:47 PDT, Haobo Yu wrote: 
>There isn't a simplex-link-op. For simplex links, you can use its own 
>method orient{}, queuePos{}, etc., for manual layout. Once they get into
>the trace file, you can use auto layout, etc. to relayout. 
>
>- Haobo
>
>On Fri, 23 Oct 1998, Harlisya Harun wrote:
>
>> Hi,
>>     It seems that the `re-layout' button is only works on
>> duplex links, but not on the simplex link:
>> 
>>  _o3: unable to dispatch method simplex-link-op
>>     while executing
>> "$ns simplex-link-op $r(1) $r(2) orient right-up"
>> 
>> Is there any other ways to make it works?
>> 
>> Thanks.
>> 
>> harlisya
>> 
>> 
>> 
>

Adding a simplex-link-op isn't a bad idea, though (for symmetry):

Simulator instproc simplex-link-op { n1 n2 op args } {
	$self instvar link_
	eval $link_([$n1 id]:[$n2 id]) $op $args
}

(It assumes the caller has the order correct.)
   -John