Package: inet.common.figures
DelegateSignalConfigurator
simple moduleImplements @delegatesignal properties. @delegatesignal arranges a source signal to be emitted as a target signal, possibly on another module.
A @delegatesignal property needs two attributes:
- source is the signal to subscribe to, in <signalName> or <modulePath>.<signalName> format
- target is the signal to emit, in <signalName> or <modulePath>.<signalName> format
Example:
@delegatesignal[rcvdPk](source=hostB.udpApp[0].rcvdPk; target=hostBrcvdPk);
This module runs at initialization time. It finds @delegatesignal properties in all modules, and adds the appropriate signal listeners.
This is a helper for instrument figures, as @statistic can only listen on local signals. It can be probably removed in OMNeT++ 5.1.
Properties
Name | Value | Description |
---|---|---|
display | i=block/cogwheel_s |
Source code
// // Implements @delegatesignal properties. @delegatesignal arranges a // source signal to be emitted as a target signal, possibly on another // module. // // A @delegatesignal property needs two attributes: // - source is the signal to subscribe to, in <signalName> or // <modulePath>.<signalName> format // - target is the signal to emit, in <signalName> or // <modulePath>.<signalName> format // // Example: // <code> // @delegatesignal[rcvdPk](source=hostB.udpApp[0].rcvdPk; target=hostBrcvdPk); // </code> // // This module runs at initialization time. It finds @delegatesignal properties // in all modules, and adds the appropriate signal listeners. // // This is a helper for instrument figures, as @statistic can only listen on // local signals. It can be probably removed in OMNeT++ 5.1. // simple DelegateSignalConfigurator { parameters: @display("i=block/cogwheel_s"); }File: src/inet/common/figures/DelegateSignalConfigurator.ned