I'm new to omnet++. How to set the correct package name?
I created a new .ned file in omnet++5.4.1, but there was not a package name.And I type a name,the omnetide show me that declared package "org.car2x.veins.base.modules" does not match expected package "". How to know which is the correct package name? Thank you. I use omnet++5.4.1 and veins 5a1.
答案 0 :(得分:2)
OMNeT++ manual解释了软件包的定义。
NED源树中的目录与软件包相对应。如果NED文件位于/ a / b / c目录(在NED路径中列出)中,则程序包名称为a.b.c。软件包名称也必须在NED文件的顶部明确声明,如下所示:
package a.b.c;