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

Class generated from inet/networklayer/ted/LinkStatePacket.msg:33 by nedtool. More...

#include <LinkStatePacket_m.h>

Inheritance diagram for inet::LinkStateMsg:

Public Member Functions

 LinkStateMsg (const char *name=nullptr, short kind=0)
 
 LinkStateMsg (const LinkStateMsg &other)
 
virtual ~LinkStateMsg ()
 
LinkStateMsgoperator= (const LinkStateMsg &other)
 
virtual LinkStateMsgdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual void setLinkInfoArraySize (unsigned int size)
 
virtual unsigned int getLinkInfoArraySize () const
 
virtual TELinkStateInfogetLinkInfo (unsigned int k)
 
virtual const TELinkStateInfogetLinkInfo (unsigned int k) const
 
virtual void setLinkInfo (unsigned int k, const TELinkStateInfo &linkInfo)
 
virtual bool getRequest () const
 
virtual void setRequest (bool request)
 
virtual int getCommand () const
 
virtual void setCommand (int command)
 

Protected Member Functions

bool operator== (const LinkStateMsg &)
 

Protected Attributes

TELinkStateInfolinkInfo
 
unsigned int linkInfo_arraysize
 
bool request
 
int command
 

Private Member Functions

void copy (const LinkStateMsg &other)
 

Detailed Description

Class generated from inet/networklayer/ted/LinkStatePacket.msg:33 by nedtool.

//
// Packet for disseminating link state information (~TELinkStateInfo[]) by the
// ~LinkStateRouting module which implements a minimalistic link state routing
// protocol.
//
packet LinkStateMsg
{
    TELinkStateInfo linkInfo[];
    bool request = false; // if true, receiver is expected to send back its own link state database to the sender –FIXME really needed?
        // bool ack = false; – apparently unused, removed – TODO check with Vojta
    int command = LINK_STATE_MESSAGE; // FIXME maybe do without this...
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::LinkStateMsg::copy ( const LinkStateMsg other)
private
virtual LinkStateMsg* inet::LinkStateMsg::dup ( ) const
inlineoverridevirtual
76 {return new LinkStateMsg(*this);}
virtual int inet::LinkStateMsg::getCommand ( ) const
virtual
virtual TELinkStateInfo& inet::LinkStateMsg::getLinkInfo ( unsigned int  k)
virtual
virtual const TELinkStateInfo& inet::LinkStateMsg::getLinkInfo ( unsigned int  k) const
inlinevirtual

Referenced by getLinkInfo().

84 {return const_cast<LinkStateMsg*>(this)->getLinkInfo(k);}
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::LinkStateMsg::getLinkInfoArraySize ( ) const
virtual
virtual bool inet::LinkStateMsg::getRequest ( ) const
virtual
LinkStateMsg& inet::LinkStateMsg::operator= ( const LinkStateMsg other)
bool inet::LinkStateMsg::operator== ( const LinkStateMsg )
protected
virtual void inet::LinkStateMsg::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::LinkStateMsg::setCommand ( int  command)
virtual
virtual void inet::LinkStateMsg::setLinkInfo ( unsigned int  k,
const TELinkStateInfo linkInfo 
)
virtual
virtual void inet::LinkStateMsg::setLinkInfoArraySize ( unsigned int  size)
virtual
virtual void inet::LinkStateMsg::setRequest ( bool  request)
virtual

Member Data Documentation

int inet::LinkStateMsg::command
protected
TELinkStateInfo* inet::LinkStateMsg::linkInfo
protected
unsigned int inet::LinkStateMsg::linkInfo_arraysize
protected
bool inet::LinkStateMsg::request
protected

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