This will depend on the NED search path you're supplying when running
the simulation and any "package ..."-directives OMNeT++ might encounter
in folders of your search path.
Take, for example this simulation, which instantiates Cars at runtime:
<http://github.com/sommer/inet-sommer/tree/traci/examples/traci/>
The ./run script supplies "-n .:../../src" to OMNeT++, so it NED files
will be searched for in
- /examples/traci/
- /src/
OMNeT++ encounters two package.ned files, namely
- /examples/package.ned
- /src/package.ned
Those files contain
- package inet.examples;
- package inet;
This means that the module in /examples/traci/Car.ned is known to
OMNeT++ as "inet.examples.traci.Car", so this is the module type
supplied in omnetpp.ini. Have a look at the TraCIScenarioManager module
to see the actual instantiation taking place.
Hope this clears things up a bit.
--
Christoph Sommer
Computer Networks and Communication Systems
University of Erlangen-Nuremberg, Germany
Phone: +49 9131 85-27993 / Fax: +49 9131 85-27409
http://www7.informatik.uni-erlangen.de/~sommer/
Could you re-try using the command line? Running "make makefiles all" in
the INET base directory, then starting the simulation using something
along the lines of "run_inet -n path-to-nedfiles1:path-to-nedfiles2 -u
Cmdenv -c configuration1" should work.
> I have tried to run "traci" codes as a separate project, but I get an error
> stating that the Makefile is manually written and cannot be overriden.
Did you try this in a separate copy? If you want to confirm, you can
download and extract
<http://github.com/sommer/inet-sommer/tarball/traci> to get a patched
version of the INET framework. Running "make makefiles all" should work
there, too.
Cheers,
Christoph
Ist the class in the .ned editor palette? What's it called there?
If it's there, you can try the following:
If you don't have it already, download the STL helper scripts for gdb:
<http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.03.txt>
...run the simulation either in gdb:
~/src/gdb/gdb/gdb --args opp_run
-l ../../src/inet
-n ../../src:..
-u Cmdenv
-c lndw2009
...or run it in the OMNeT++ GUI debugger. Don't forget to uncheck
"Window > Preferences > Run/Debug > Console > Limit console output"
first though.
Then enter the following commands in the console:
break NEDResourceCache::doneLoadingNedFiles
run (or click the "run/resume" button)
next
source where-you-downloaded/dbinit_stl_views-1.03.txt
pvector getTypeNames()
This should give you a list of all modules known to the simulation when
your simulation runs.
Cheers,
Christoph