You could simply save the value in a global variable. A nicer technique is to
pass it in to l3_switch's constructor/__init__. If you look at the version of
l3_learning in the betta branch, it already does this. l2_learning and many
other components do something similar.
The thing to know is that...
core.registerNew(SomeClass, foo, bar)
.. is more or less the equivalent of...
obj = SomeClass(foo, bar)
core.register("SomeClass", obj)
-- Murphy
On Nov 18, 2012, at 9:30 PM, yashwanth kp wrote:
> Hi all,
>
> I have passed a parameter to l3_learning component by adding a new argument
> to the launch function.
>
> How do i use it inside the class l3_switch?
>
> --
> Regards,
>
> Yashwanth K P
> Final Year , B.Tech
> NITK, Surathkal
> Contact: +91-9538403606
>