Module connection Error[Need Help] -code attached

13 views
Skip to first unread message

Abir

unread,
Aug 1, 2015, 1:29:10 AM8/1/15
to OMNeT++ Users
 i just update my core module nothing big change happen in but it says module connection error.

Need help please.

code attached.
1.jpg
core.zip

Rudolf Hornig

unread,
Aug 3, 2015, 4:43:07 AM8/3/15
to OMNeT++ Users
You can cause errors even with changing a single character in your code, so small or big does not mean much. As for the issue, each gate of a compound module MUST be connected to some other submodule gate. 

module wirelessnodehost extends wirelessnode
{
    gates:
        inout gate[];
}

here 'gate' is gate of a compound module and clearly not connected to anywhere. What should happen if a message arrives to the gate?

BTW your code has a lot of other issues, like you are using a compound module for both wirelessnodehost and wirelessnode, while your code is defined in the wirelessnodehost class, but that code will be never executed, as you defined the wirelessnodehost using the 'module' keyword insead of the 'simple' keyword.
Reply all
Reply to author
Forward
0 new messages