Submodule manetrouting: no module type named "newScheme"

526 views
Skip to first unread message

ulyssis

unread,
May 16, 2013, 9:26:34 PM5/16/13
to omn...@googlegroups.com
I write a routing scheme "newScheme". I declare it as a module in .cc file:
                       Define_Module(newScheme);

I add the name "newScheme" in inet/src/nodes/inet/AdhocHost.ned:

string routingProtocol @enum("newScheme", "AODVUU","DYMOUM","DYMO","DSRUU","OLSR","OLSR_ETX","DSDV_2","Batman") = default("")

and of course, I have add configuration in .ini file.

but I still get error;
<!> Error in module (cCompoundModule) Fg80211Net.fixhost[0] (id=2) during network setup: Submodule manetrouting: no module type named `newScheme' found that implements module interface inet.networklayer.IManetRouting (not in the loaded NED files?), at ../inet/src/nodes/inet/AdhocHost.ned:43.

I have added other routing schemes in the above way (if i remember correctly), but get stuck at this one.

Could anyone give me any suggestions? many thanks!!


Alfonso Ariza Quintana

unread,
May 17, 2013, 3:43:02 AM5/17/13
to omn...@googlegroups.com

You need also the ned declaration

 

newScheme.ned

 

simple newScheme

{

    ….

--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
---
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

ulyssis

unread,
May 17, 2013, 10:12:42 AM5/17/13
to omn...@googlegroups.com
yes, i forget this. thanks!
Reply all
Reply to author
Forward
0 new messages