> 
> Hello,
> 
> How can I change a parameter during the simulation in NS2.
> 
> For example:
> 
> I use a PBC agent in my simulation:
> 
> set agent_($i) [new Agent/PBC]
>     $ns_ attach-agent $vehicle_($i)  $agent_($i)
>     $agent_($i) set Pt_ 1e-4
>     $agent_($i) set payloadSize 1000
>     $agent_($i) set periodicBroadcastInterval 0.2
>     $agent_($i) set periodicBroadcastVariance 0.05
>     $agent_($i) set modulationScheme 1
>     $agent_($i) PeriodicBroadcast ON
> 
> 
>  Now I have a formula to calculate the "periodicBroadcastInterval" depend on 
> the amount of another variable and its previous amount . Now how can I set 
> this varying parameter in TCL script?
> 
> Best Regards,
> Hannaneh
> 

Reply via email to