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

Class generated from inet/routing/gpsr/GPSR.msg:41 by nedtool. More...

#include <GPSR_m.h>

Inheritance diagram for inet::GPSRBeacon:

Public Member Functions

 GPSRBeacon (const char *name=nullptr, short kind=0)
 
 GPSRBeacon (const GPSRBeacon &other)
 
virtual ~GPSRBeacon ()
 
GPSRBeaconoperator= (const GPSRBeacon &other)
 
virtual GPSRBeacondup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual L3AddressgetAddress ()
 
virtual const L3AddressgetAddress () const
 
virtual void setAddress (const L3Address &address)
 
virtual CoordgetPosition ()
 
virtual const CoordgetPosition () const
 
virtual void setPosition (const Coord &position)
 

Protected Member Functions

bool operator== (const GPSRBeacon &)
 

Protected Attributes

L3Address address
 
Coord position
 

Private Member Functions

void copy (const GPSRBeacon &other)
 

Detailed Description

Class generated from inet/routing/gpsr/GPSR.msg:41 by nedtool.

//
// The GPSR beacon packet is sent periodically by all GPSR routers to notify
// the neighbors about the router's address and position.
//
packet GPSRBeacon
{
    L3Address address;
    Coord position;
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::GPSRBeacon::copy ( const GPSRBeacon other)
private
virtual GPSRBeacon* inet::GPSRBeacon::dup ( ) const
inlineoverridevirtual
72 {return new GPSRBeacon(*this);}
GPSRBeacon(const char *name=nullptr, short kind=0)
virtual L3Address& inet::GPSRBeacon::getAddress ( )
virtual
virtual const L3Address& inet::GPSRBeacon::getAddress ( ) const
inlinevirtual

Referenced by getAddress().

78 {return const_cast<GPSRBeacon*>(this)->getAddress();}
virtual L3Address & getAddress()
GPSRBeacon(const char *name=nullptr, short kind=0)
virtual Coord& inet::GPSRBeacon::getPosition ( )
virtual
virtual const Coord& inet::GPSRBeacon::getPosition ( ) const
inlinevirtual

Referenced by getPosition().

81 {return const_cast<GPSRBeacon*>(this)->getPosition();}
GPSRBeacon(const char *name=nullptr, short kind=0)
virtual Coord & getPosition()
GPSRBeacon& inet::GPSRBeacon::operator= ( const GPSRBeacon other)
bool inet::GPSRBeacon::operator== ( const GPSRBeacon )
protected
virtual void inet::GPSRBeacon::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::GPSRBeacon::setAddress ( const L3Address address)
virtual
virtual void inet::GPSRBeacon::setPosition ( const Coord position)
virtual

Member Data Documentation

L3Address inet::GPSRBeacon::address
protected
Coord inet::GPSRBeacon::position
protected

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