28 if (!hasGUI())
return;
32 lineStyle = cFigure::parseLineStyle(par(
"lineStyle"));
36 for (cModule::SubmoduleIterator it(getSystemModule()); !it.end(); it++) {
37 auto networkNode = *it;
39 for (cModule::GateIterator gt(networkNode); !gt.end(); gt++) {
41 auto startNetworkNode =
getContainingNode(gate->getPathStartGate()->getOwnerModule());
42 auto endNetworkNode =
getContainingNode(gate->getPathEndGate()->getOwnerModule());
virtual void createNetworkConnectionVisualization(cModule *startNetworkNode, cModule *endNetworkNode)=0
bool matches(const cModule *module) const
Definition: NetworkNodeFilter.cc:29
void setPattern(const char *pattern)
Definition: NetworkNodeFilter.cc:24
bool isNetworkNode(const cModule *mod)
Returns true if the given module is a network node, i.e.
Definition: ModuleAccess.cc:28
Operations that no other initializations can depend on, e.g.
Definition: InitStages.h:111
virtual void initialize(int stage) override
Definition: VisualizerBase.cc:29
cFigure::Color lineColor
Definition: NetworkConnectionVisualizerBase.h:32
NetworkNodeFilter nodeFilter
Definition: NetworkConnectionVisualizerBase.h:31
Local initializations.
Definition: InitStages.h:35
cModule * getContainingNode(const cModule *from)
Find the node containing the given module.
Definition: ModuleAccess.cc:65
Color
Definition: DiffservUtil.h:30
cFigure::LineStyle lineStyle
Definition: NetworkConnectionVisualizerBase.h:33
double lineWidth
Definition: NetworkConnectionVisualizerBase.h:34