我需要说明 OMNET 中的 sendDirect() 方法

I need clarificatio of sendDirect() method in OMNET

以下代码来自 OMNeT++ 手册。我的问题是:只有当我从复合模块向子模块发送消息时才使用此方法吗?
如果我可以使用它进行模块之间的通信(simpleModule A 发送 msg 到复合 moduleB -> 子模块 B1)那么这是否违反了通信必须遵守同一级别的规则等级制度?

这是示例代码:

cModule *targetModule = getParentModule()->getSubmodule("node2");
sendDirect(new cMessage("msg"), targetModule, "in");

没有。通常复合模块内部的简单模块之间的通信不需要sendDirect()。这种通信主要使用 IdealChannel - 即无错误、零延迟和无限带宽的标准 OMNeT++ 信道。