class cSimulation'没有名为'lastModuleIndex'的成员

时间:2015-11-21 16:06:10

标签: omnet++

我已经转换了在OMNeT 3.3中编写的LEACH协议的源代码。我将它转换为OMNeT 4.5。但我发现错误“类cSimulation'没有名为'lastModuleIndex'的成员”。可能是lastModuleIndex已被弃用。你能告诉我4.5中的相应方法吗?

1 个答案:

答案 0 :(得分:1)

您可以阅读:https://omnetpp.org/doc/omnetpp/api/APIChanges.html

cSimulation changes: lastModuleIndex() renamed to lastModuleId();

相关问题