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

NS & NAM Qs



Hi!  I have a questions:

1.  How can you get the Tcl name of an agent in C++?  For example, if I create
an agent $foo in Tcl, then how do I find the name foo in the C++ agent
implementation?

2.  How do you assign a loss probability to a link?  I have read the ErrorModel
stuff, but I am unclear on what the following does:

set loss_module [new ErrorModel]
$loss_module set rate_ 0.01

Does this set the aggregate loss rate across all links to 1%?

3.  I have successfully written several agents that generate NAM traces;
however, in my latest agent attempt the NAM trace appears to stop before
the simulation ends.  The simulation appears to run to completion, but when
I watch it in NAM, the animation stops before the simulation did.  Specifically,
the NAM animation stops at time .05; however, I have an agent which doesn't 
starts until time .1.  I know the agent runs because I see the output it 
generates.  Ideas?  I am using the allinone distribution if that matters.

Thanks,
Jeff

Michael J. Donahoo
Georgia Institute of Technology College of Computing
801 Atlantic Drive, Atlanta Georgia, 30332-0280
Internet: [email protected]                 Office: GCATT, 2nd Floor
Work: (404) 894-6735  Lab:  (404) 876-3209 x124
Fax:  (404) 894-0272  Home: (770) 819-1870
finger [email protected] for my public key