INET Framework for OMNeT++/OMNEST
|
Implements a simplified ideal MAC. More...
#include <IdealMac.h>
Public Member Functions | |
IdealMac () | |
virtual | ~IdealMac () |
Public Member Functions inherited from inet::OperationalBase | |
OperationalBase () | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
virtual void | startTransmitting (cPacket *msg) |
virtual bool | dropFrameNotForUs (IdealMacFrame *frame) |
virtual IdealMacFrame * | encapsulate (cPacket *msg) |
virtual cPacket * | decapsulate (IdealMacFrame *frame) |
virtual void | initializeMACAddress () |
virtual void | acked (IdealMacFrame *frame) |
virtual void | getNextMsgFromHL () |
virtual void | receiveSignal (cComponent *src, simsignal_t id, long value, cObject *details) override |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | flushQueue () |
implements MacBase functions More... | |
virtual void | clearQueue () |
virtual InterfaceEntry * | createInterfaceEntry () override |
virtual void | handleUpperPacket (cPacket *msg) override |
implements MACProtocolBase functions More... | |
virtual void | handleLowerPacket (cPacket *msg) override |
virtual void | handleSelfMessage (cMessage *message) override |
Protected Member Functions inherited from inet::MACProtocolBase | |
MACProtocolBase () | |
virtual void | registerInterface () |
virtual void | sendUp (cMessage *message) |
virtual void | sendDown (cMessage *message) |
virtual bool | isUpperMessage (cMessage *message) override |
virtual bool | isLowerMessage (cMessage *message) override |
virtual bool | isInitializeStage (int stage) override |
virtual bool | isNodeStartStage (int stage) override |
virtual bool | isNodeShutdownStage (int stage) override |
Protected Member Functions inherited from inet::LayeredProtocolBase | |
virtual void | handleMessageWhenUp (cMessage *message) override |
virtual void | handleUpperCommand (cMessage *message) |
virtual void | handleLowerCommand (cMessage *message) |
Protected Member Functions inherited from inet::OperationalBase | |
virtual void | handleMessage (cMessage *msg) override |
virtual void | handleMessageWhenDown (cMessage *msg) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
virtual bool | handleNodeStart (IDoneCallback *doneCallback) |
virtual bool | handleNodeShutdown (IDoneCallback *doneCallback) |
virtual void | handleNodeCrash () |
virtual void | setOperational (bool isOperational) |
Protected Attributes | |
int | headerLength = 0 |
double | bitrate = 0 |
bool | promiscuous = false |
MACAddress | address |
bool | fullDuplex = false |
bool | useAck = true |
IRadio * | radio = nullptr |
IRadio::TransmissionState | transmissionState = IRadio::TRANSMISSION_STATE_UNDEFINED |
IPassiveQueue * | queueModule = nullptr |
int | outStandingRequests = 0 |
cPacket * | lastSentPk = nullptr |
simtime_t | ackTimeout |
cMessage * | ackTimeoutMsg = nullptr |
Protected Attributes inherited from inet::OperationalBase | |
bool | isOperational |
simtime_t | lastChange |
Static Protected Attributes | |
static simsignal_t | dropPkNotForUsSignal = registerSignal("dropPkNotForUs") |
Additional Inherited Members | |
Public Attributes inherited from inet::MACProtocolBase | |
InterfaceEntry * | interfaceEntry |
int | upperLayerInGateId |
Gate ids. More... | |
int | upperLayerOutGateId |
int | lowerLayerInGateId |
int | lowerLayerOutGateId |
Static Public Attributes inherited from inet::LayeredProtocolBase | |
static simsignal_t | packetSentToUpperSignal = registerSignal("packetSentToUpper") |
static simsignal_t | packetReceivedFromUpperSignal = registerSignal("packetReceivedFromUpper") |
static simsignal_t | packetFromUpperDroppedSignal = registerSignal("packetFromUpperDropped") |
static simsignal_t | packetSentToLowerSignal = registerSignal("packetSentToLower") |
static simsignal_t | packetReceivedFromLowerSignal = registerSignal("packetReceivedFromLower") |
static simsignal_t | packetFromLowerDroppedSignal = registerSignal("packetFromLowerDropped") |
Implements a simplified ideal MAC.
See the NED file for details.
|
virtual |
|
protectedvirtual |
Referenced by handleLowerPacket().
|
protectedvirtual |
|
overrideprotectedvirtual |
Implements inet::MACProtocolBase.
|
protectedvirtual |
Referenced by handleLowerPacket().
|
protectedvirtual |
Referenced by handleLowerPacket().
|
protectedvirtual |
Referenced by startTransmitting().
|
protectedvirtual |
implements MacBase functions
|
protectedvirtual |
Referenced by acked(), handleSelfMessage(), initialize(), and receiveSignal().
|
overrideprotectedvirtual |
Implements inet::LayeredProtocolBase.
|
overrideprotectedvirtual |
Reimplemented from inet::LayeredProtocolBase.
|
overrideprotectedvirtual |
implements MACProtocolBase functions
Implements inet::LayeredProtocolBase.
|
overrideprotectedvirtual |
Reimplemented from inet::MACProtocolBase.
|
protectedvirtual |
Referenced by initialize().
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleUpperPacket().
|
protected |
Referenced by initialize(), and startTransmitting().
|
protected |
Referenced by acked(), handleSelfMessage(), initialize(), startTransmitting(), and ~IdealMac().
|
protected |
Referenced by createInterfaceEntry(), dropFrameNotForUs(), and initializeMACAddress().
|
protected |
Referenced by createInterfaceEntry(), and initialize().
|
staticprotected |
Referenced by dropFrameNotForUs().
|
protected |
Referenced by initialize(), receiveSignal(), and startTransmitting().
|
protected |
Referenced by encapsulate(), and initialize().
|
protected |
Referenced by acked(), handleSelfMessage(), receiveSignal(), startTransmitting(), and ~IdealMac().
|
protected |
Referenced by getNextMsgFromHL(), handleUpperPacket(), and initialize().
|
protected |
Referenced by dropFrameNotForUs(), and initialize().
|
protected |
Referenced by clearQueue(), flushQueue(), getNextMsgFromHL(), and initialize().
|
protected |
Referenced by handleUpperPacket(), initialize(), receiveSignal(), and startTransmitting().
|
protected |
Referenced by initialize(), and receiveSignal().
|
protected |
Referenced by acked(), handleLowerPacket(), initialize(), and startTransmitting().