[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] MIPMH subclass in MobileIP
On Wed, 21 Mar 2001, gmc50 wrote:
> Hi ns users,
>
> I am trying to create a subclass of MIPMHAgentClass defined in mip-reg.cc to
> run some MobileIP based experiments. I managed to create the new class, the
> new recv() and command methods. I ran make again with no error messages.
> However, how do I select this new MIPMHAgentClass (defined as, say,
> Agent/MIPMH/newMIPMH) instead of the base MIPMH from my TCL script?
>
Define yr own Node/MIPMH init method where instead of the base MIPMH yr
agent is chosen as the regagent_.
> I tried the following:
>
> set MH [$ns_ node 1.0.1]
> set node_(0) $MH
> $MH set [new Agent/MIPMH/newMIPMH]
>
> When I run the tcl script I get the following error message:
>
> no value given for parameter "node" to "_o45"
I believe the MIPMH init method expects some node value to be passed which
is why the error is raised.
--Padma.
> (Agent/MIPMH init line 1)
> invoked from within
> "_o45 init "
> (Class create line 1)
> invoked from within
> "Agent/MIPMH/newMIPMH create _o45 "
> invoked from within
> "catch "$className create $o $args" msg"
> (procedure "new" line 3)
> invoked from within
> "new Agent/MIPMH/newMIPMH"
> invoked from within
> "$MH set [new Agent/MIPMH/newMIPMH]"
> (file "testMH.tcl" line 62)
>
> Does anyone have any idea as to why this error is occurring? Do I need to make
> changes to other files as well or is there other ways of configuring the
> mobile node to use this Agent/MIPMH/newMIPMH (how)?
>
> Your help is greatly appreciated. Thanks for your time,
>
> Gustavo.
>
>
>
--
------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau
Padmaparna Haldar