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

Re: [ns] How to introduce a new OTcl class that inherist from classNode?



On Mon, 24 Sep 2001, Raffaele Bruno wrote:

> I am a novice to ns-2.1b7a and I am in a great trouble. I have to define in OTcl a
> new Class BTNode that inherits from the Class Node. To this end I wrote a
> file ns-btnode.tcl
> 
> Class BTNode  - superclass Node
> 
> BTNode instproc init {ipAddr bdAddr Xpos Ypos} {
>     eval $self next $ipAddr

eval $self next $ipAddr $bdAddr $Xpos $Ypos

surely?

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>