How to set package name in .ned file?

时间:2019-04-17 02:15:16

标签: omnet++ veins

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.

1 个答案:

答案 0 :(得分:2)

OMNeT++ manual解释了软件包的定义。

NED源树中的目录与软件包相对应。如果NED文件位于/ a / b / c目录(在NED路径中列出)中,则程序包名称为a.b.c。软件包名称也必须在NED文件的顶部明确声明,如下所示:

package a.b.c;