#include <OmittedModule.h>
◆ initialize()
| void inet::OmittedModule::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
19 for (cModule::GateIterator ig(
this); !ig.end(); ++ig) {
21 if (gateIn->getType() == cGate::INPUT && gateIn->findTransmissionChannel() ==
nullptr) {
22 auto gateOut = gateIn->getNextGate();
23 auto previousGate = gateIn->getPreviousGate();
24 auto nextGate = gateOut->getNextGate();
25 if (previousGate !=
nullptr && nextGate !=
nullptr) {
26 EV_INFO <<
"Reconnecting gates: " << previousGate->getFullPath() <<
" --> " << nextGate->getFullPath() << std::endl;
27 std::string direction;
28 if (previousGate->getChannel()) {
29 direction = opp_nulltoempty(previousGate->getDisplayString().getTagArg(
"m", 0));
31 if (direction.empty() && gateOut->getChannel())
32 direction = opp_nulltoempty(gateOut->getDisplayString().getTagArg(
"m", 0));
33 gateOut->disconnect();
34 previousGate->disconnect();
35 previousGate->connectTo(nextGate);
36 if (!direction.empty())
37 previousGate->getDisplayString().setTagArg(
"m", 0, direction.c_str());
◆ initializeModules()
| bool inet::OmittedModule::initializeModules |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
46 bool result = cModule::initializeModules(stage);
48 auto parentModule = getParentModule();
◆ numInitStages()
| virtual int inet::OmittedModule::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following files: