|
INET Framework for OMNeT++/OMNEST
|
Models a wiring hub. More...
#include <WireJunction.h>
Classes | |
| struct | TxInfo |
Protected Member Functions | |
| virtual void | initialize () override |
| virtual void | handleMessage (cMessage *msg) override |
| virtual void | receiveSignal (cComponent *source, simsignal_t signalID, cObject *obj, cObject *details) override |
| virtual void | setChannelModes () |
| virtual void | setGateModes () |
| virtual void | addTxInfo (long incomingTxId, int port, long outgoingTxId, simtime_t finishTime) |
| virtual void | updateTxInfo (TxInfo *txInfo, simtime_t finishTime) |
| virtual TxInfo * | findTxInfo (long incomingTxId, int port) |
Protected Attributes | |
| std::vector< TxInfo > | txList |
| int | numPorts |
| int | inputGateBaseId |
| int | outputGateBaseId |
| long | numMessages |
Models a wiring hub.
It simply broadcasts the received message (which can be a transmission update, requiring special attention) on all other ports.
Note that no special attention is made to appropriately model frame truncations that occur when the link breaks, or comes back up while a transmission is underway. This is mainly so because being a generic model, WireJunction doesn't know how to produce sliced (truncated) versions of frames. If you need to precisely model what happens when the link state changes, you cannot use this class.
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleMessage().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by initialize(), and receiveSignal().
|
protectedvirtual |
Referenced by initialize(), and receiveSignal().
|
inlineprotectedvirtual |
Referenced by handleMessage().
|
protected |
Referenced by initialize(), and setGateModes().
|
protected |
Referenced by handleMessage(), and initialize().
|
protected |
Referenced by handleMessage(), initialize(), setChannelModes(), and setGateModes().
|
protected |
Referenced by handleMessage(), initialize(), and setChannelModes().
|
protected |
Referenced by addTxInfo(), and findTxInfo().