Mailing list archive (omnetpp-l at omnetpp.org)


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

Re: [omnetpp] Module deletion



Hi Marculus,

Ok, so I guess that you try to delete the module in the initialize 
method of your module and this is not allowed !! this is like "Cuting 
the branch on which you are sitting". But you can do it in the 
handleMessage() method ...
Another comment is that deleting a module of you network does not delete 
the "gates" you may have on the sending module... and then broadcasting 
a message to this "unconnected" gate will give you an error message !!

Patrick


marek nowak a écrit :
> Hello,
>
>   
>> Is there any specific reason for which you want to delete this module
>> during the simulation ?
>>     
>
> Yes. On the one side it should automatically disable message forwarding to
> these modules (currently I broadcast, by message dup, to every gate,
> although I know I should check the flag and send when it is active) and
> secondly, which is even more important, it will give me a better layout for
> further presentations (some modules will be removed and created in tkenv
> which should help me to see how the things are going).
>
> Regards, marculus
> _______________________________________________
> OMNeT++ Mailing List
> options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
> archive: http://www.omnetpp.org/listarchive/index.php
>
>   
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php

Home | Main Index | Thread Index