INET Framework for OMNeT++/OMNEST
inet::LMacFrame Class Reference

Class generated from inet/linklayer/lmac/LMacFrame.msg:15 by nedtool. More...

#include <LMacFrame_m.h>

Inheritance diagram for inet::LMacFrame:
inet::MACFrameBase

Public Member Functions

 LMacFrame (const char *name=nullptr, short kind=0)
 
 LMacFrame (const LMacFrame &other)
 
virtual ~LMacFrame ()
 
LMacFrameoperator= (const LMacFrame &other)
 
virtual LMacFramedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getMySlot () const
 
virtual void setMySlot (int mySlot)
 
virtual void setOccupiedSlotsArraySize (unsigned int size)
 
virtual unsigned int getOccupiedSlotsArraySize () const
 
virtual MACAddressgetOccupiedSlots (unsigned int k)
 
virtual const MACAddressgetOccupiedSlots (unsigned int k) const
 
virtual void setOccupiedSlots (unsigned int k, const MACAddress &occupiedSlots)
 
- Public Member Functions inherited from inet::MACFrameBase
 MACFrameBase (const char *name=nullptr, short kind=0)
 
 MACFrameBase (const MACFrameBase &other)
 
virtual ~MACFrameBase ()
 
MACFrameBaseoperator= (const MACFrameBase &other)
 
virtual MACAddressgetSrcAddr ()
 
virtual const MACAddressgetSrcAddr () const
 
virtual void setSrcAddr (const MACAddress &srcAddr)
 
virtual MACAddressgetDestAddr ()
 
virtual const MACAddressgetDestAddr () const
 
virtual void setDestAddr (const MACAddress &destAddr)
 

Protected Member Functions

bool operator== (const LMacFrame &)
 
- Protected Member Functions inherited from inet::MACFrameBase
bool operator== (const MACFrameBase &)
 

Protected Attributes

int mySlot
 
MACAddressoccupiedSlots
 
unsigned int occupiedSlots_arraysize
 
- Protected Attributes inherited from inet::MACFrameBase
MACAddress srcAddr
 
MACAddress destAddr
 

Private Member Functions

void copy (const LMacFrame &other)
 

Detailed Description

Class generated from inet/linklayer/lmac/LMacFrame.msg:15 by nedtool.

packet LMacFrame extends MACFrameBase
{
    int mySlot; // the node's current slot number
    MACAddress occupiedSlots[]; // currently known occupied slots
}

Constructor & Destructor Documentation

inet::LMacFrame::LMacFrame ( const char *  name = nullptr,
short  kind = 0 
)
inet::LMacFrame::LMacFrame ( const LMacFrame other)
virtual inet::LMacFrame::~LMacFrame ( )
virtual

Member Function Documentation

void inet::LMacFrame::copy ( const LMacFrame other)
private
virtual LMacFrame* inet::LMacFrame::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::MACFrameBase.

66 {return new LMacFrame(*this);}
LMacFrame(const char *name=nullptr, short kind=0)
virtual int inet::LMacFrame::getMySlot ( ) const
virtual
virtual MACAddress& inet::LMacFrame::getOccupiedSlots ( unsigned int  k)
virtual
virtual const MACAddress& inet::LMacFrame::getOccupiedSlots ( unsigned int  k) const
inlinevirtual

Referenced by getOccupiedSlots().

76 {return const_cast<LMacFrame*>(this)->getOccupiedSlots(k);}
LMacFrame(const char *name=nullptr, short kind=0)
virtual MACAddress & getOccupiedSlots(unsigned int k)
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::LMacFrame::getOccupiedSlotsArraySize ( ) const
virtual
LMacFrame& inet::LMacFrame::operator= ( const LMacFrame other)
bool inet::LMacFrame::operator== ( const LMacFrame )
protected
virtual void inet::LMacFrame::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::MACFrameBase.

Referenced by inet::doParsimPacking().

virtual void inet::LMacFrame::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::MACFrameBase.

Referenced by inet::doParsimUnpacking().

virtual void inet::LMacFrame::setMySlot ( int  mySlot)
virtual
virtual void inet::LMacFrame::setOccupiedSlots ( unsigned int  k,
const MACAddress occupiedSlots 
)
virtual
virtual void inet::LMacFrame::setOccupiedSlotsArraySize ( unsigned int  size)
virtual

Member Data Documentation

int inet::LMacFrame::mySlot
protected
MACAddress* inet::LMacFrame::occupiedSlots
protected
unsigned int inet::LMacFrame::occupiedSlots_arraysize
protected

The documentation for this class was generated from the following file: