INET Framework for OMNeT++/OMNEST
|
Base class for MAC modules. More...
#include <MACBase.h>
Public Member Functions | |
MACBase () | |
virtual | ~MACBase () |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
virtual void | initialize (int stage) override |
virtual int | numInitStages () const override |
void | registerInterface () |
virtual void | receiveSignal (cComponent *source, simsignal_t signalID, cObject *obj, cObject *details) override |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
virtual void | updateOperationalFlag (bool isNodeUp) |
virtual bool | isNodeUp () |
virtual void | handleMessageWhenDown (cMessage *msg) |
virtual InterfaceEntry * | createInterfaceEntry ()=0 |
should create InterfaceEntry More... | |
virtual void | flushQueue ()=0 |
should clear queue and emit signal "dropPkFromHLIfaceDown" with entire packets More... | |
virtual void | clearQueue ()=0 |
should clear queue silently More... | |
virtual bool | isUpperMsg (cMessage *msg)=0 |
should return true if the msg arrived from upper layer, else return false More... | |
Protected Attributes | |
cModule * | hostModule = nullptr |
bool | isOperational = false |
InterfaceEntry * | interfaceEntry = nullptr |
Base class for MAC modules.
|
protectedpure virtual |
should clear queue silently
Implemented in inet::EtherMACBase, inet::PPP, inet::ExtInterface, inet::Loopback, and inet::TunInterface.
Referenced by handleOperationStage().
|
protectedpure virtual |
should create InterfaceEntry
Implemented in inet::EtherMACBase, inet::PPP, inet::ExtInterface, inet::Loopback, and inet::TunInterface.
Referenced by registerInterface().
|
protectedpure virtual |
should clear queue and emit signal "dropPkFromHLIfaceDown" with entire packets
Implemented in inet::EtherMACBase, inet::PPP, inet::ExtInterface, inet::Loopback, and inet::TunInterface.
Referenced by handleOperationStage().
|
protectedvirtual |
Referenced by inet::EtherMACFullDuplex::handleMessage(), inet::EtherMAC::handleMessage(), inet::Loopback::handleMessage(), inet::ExtInterface::handleMessage(), and inet::PPP::handleMessage().
|
overrideprotectedvirtual |
Perform one stage of a lifecycle operation.
Processing may be done entirely within this method, or may be a longer process that involves nonzero simulation time or several events, and is triggered by this method call.
Return value: true = "done"; false = "not yet done, will invoke doneCallback when done"
Implements inet::ILifecycle.
Reimplemented in inet::EtherMACBase.
Referenced by inet::EtherMACBase::handleOperationStage().
|
overrideprotectedvirtual |
Reimplemented in inet::EtherMACBase, inet::PPP, inet::ExtInterface, inet::Loopback, inet::TunInterface, inet::EtherMAC, and inet::EtherMACFullDuplex.
Referenced by inet::TunInterface::initialize(), inet::Loopback::initialize(), inet::ExtInterface::initialize(), inet::PPP::initialize(), and inet::EtherMACBase::initialize().
|
protectedvirtual |
Referenced by initialize(), and updateOperationalFlag().
|
protectedpure virtual |
should return true if the msg arrived from upper layer, else return false
Implemented in inet::EtherMACBase, inet::PPP, inet::ExtInterface, inet::Loopback, and inet::TunInterface.
Referenced by handleMessageWhenDown().
|
inlineoverrideprotectedvirtual |
Reimplemented in inet::EtherMACBase, inet::PPP, inet::ExtInterface, inet::Loopback, inet::TunInterface, inet::EtherMAC, and inet::EtherMACFullDuplex.
|
overrideprotectedvirtual |
Reimplemented in inet::EtherMACBase, and inet::PPP.
Referenced by inet::PPP::receiveSignal(), and inet::EtherMACBase::receiveSignal().
|
protected |
Referenced by inet::TunInterface::initialize(), inet::Loopback::initialize(), inet::ExtInterface::initialize(), inet::PPP::initialize(), and inet::EtherMACBase::initialize().
|
protectedvirtual |
Referenced by handleOperationStage(), and initialize().
|
protected |
Referenced by initialize(), and isNodeUp().
|
protected |
|
protected |