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

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

#include <GPSR_m.h>

Inheritance diagram for inet::GPSROption:
inet::TLVOptionBase

Public Member Functions

 GPSROption ()
 
 GPSROption (const GPSROption &other)
 
virtual ~GPSROption ()
 
GPSROptionoperator= (const GPSROption &other)
 
virtual GPSROptiondup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual GPSRForwardingModegetRoutingMode ()
 
virtual const GPSRForwardingModegetRoutingMode () const
 
virtual void setRoutingMode (const GPSRForwardingMode &routingMode)
 
virtual CoordgetDestinationPosition ()
 
virtual const CoordgetDestinationPosition () const
 
virtual void setDestinationPosition (const Coord &destinationPosition)
 
virtual CoordgetPerimeterRoutingStartPosition ()
 
virtual const CoordgetPerimeterRoutingStartPosition () const
 
virtual void setPerimeterRoutingStartPosition (const Coord &perimeterRoutingStartPosition)
 
virtual CoordgetPerimeterRoutingForwardPosition ()
 
virtual const CoordgetPerimeterRoutingForwardPosition () const
 
virtual void setPerimeterRoutingForwardPosition (const Coord &perimeterRoutingForwardPosition)
 
virtual L3AddressgetCurrentFaceFirstSenderAddress ()
 
virtual const L3AddressgetCurrentFaceFirstSenderAddress () const
 
virtual void setCurrentFaceFirstSenderAddress (const L3Address &currentFaceFirstSenderAddress)
 
virtual L3AddressgetCurrentFaceFirstReceiverAddress ()
 
virtual const L3AddressgetCurrentFaceFirstReceiverAddress () const
 
virtual void setCurrentFaceFirstReceiverAddress (const L3Address &currentFaceFirstReceiverAddress)
 
virtual L3AddressgetSenderAddress ()
 
virtual const L3AddressgetSenderAddress () const
 
virtual void setSenderAddress (const L3Address &senderAddress)
 
- Public Member Functions inherited from inet::TLVOptionBase
 TLVOptionBase ()
 
 TLVOptionBase (const TLVOptionBase &other)
 
virtual ~TLVOptionBase ()
 
TLVOptionBaseoperator= (const TLVOptionBase &other)
 
virtual short getType () const
 
virtual void setType (short type)
 
virtual short getLength () const
 
virtual void setLength (short length)
 

Protected Member Functions

bool operator== (const GPSROption &)
 
- Protected Member Functions inherited from inet::TLVOptionBase
bool operator== (const TLVOptionBase &)
 

Protected Attributes

GPSRForwardingMode routingMode
 
Coord destinationPosition
 
Coord perimeterRoutingStartPosition
 
Coord perimeterRoutingForwardPosition
 
L3Address currentFaceFirstSenderAddress
 
L3Address currentFaceFirstReceiverAddress
 
L3Address senderAddress
 
- Protected Attributes inherited from inet::TLVOptionBase
short type
 
short length
 

Private Member Functions

void copy (const GPSROption &other)
 

Detailed Description

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

//
// The GPSROption is used to add extra routing information for network datagrams.
//
// For more information, see the GPSR paper
// http://www.eecs.harvard.edu/~htk/publication/2000-mobi-karp-kung.pdf
//
class GPSROption extends TLVOptionBase
{
    GPSRForwardingMode routingMode = (GPSRForwardingMode)-1;
    Coord destinationPosition;               // D
    Coord perimeterRoutingStartPosition;     // Lp
    Coord perimeterRoutingForwardPosition;   // Lf
    L3Address currentFaceFirstSenderAddress;   // e0
    L3Address currentFaceFirstReceiverAddress; // e0
    L3Address senderAddress; // TODO: this field is not strictly needed by GPSR (should be eliminated)
}

Constructor & Destructor Documentation

inet::GPSROption::GPSROption ( )
inet::GPSROption::GPSROption ( const GPSROption other)
virtual inet::GPSROption::~GPSROption ( )
virtual

Member Function Documentation

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

Reimplemented from inet::TLVOptionBase.

132 {return new GPSROption(*this);}
virtual L3Address& inet::GPSROption::getCurrentFaceFirstReceiverAddress ( )
virtual
virtual const L3Address& inet::GPSROption::getCurrentFaceFirstReceiverAddress ( ) const
inlinevirtual

Referenced by getCurrentFaceFirstReceiverAddress().

153 {return const_cast<GPSROption*>(this)->getCurrentFaceFirstReceiverAddress();}
virtual L3Address & getCurrentFaceFirstReceiverAddress()
virtual L3Address& inet::GPSROption::getCurrentFaceFirstSenderAddress ( )
virtual
virtual const L3Address& inet::GPSROption::getCurrentFaceFirstSenderAddress ( ) const
inlinevirtual

Referenced by getCurrentFaceFirstSenderAddress().

150 {return const_cast<GPSROption*>(this)->getCurrentFaceFirstSenderAddress();}
virtual L3Address & getCurrentFaceFirstSenderAddress()
virtual Coord& inet::GPSROption::getDestinationPosition ( )
virtual
virtual const Coord& inet::GPSROption::getDestinationPosition ( ) const
inlinevirtual

Referenced by getDestinationPosition().

141 {return const_cast<GPSROption*>(this)->getDestinationPosition();}
virtual Coord & getDestinationPosition()
virtual Coord& inet::GPSROption::getPerimeterRoutingForwardPosition ( )
virtual
virtual const Coord& inet::GPSROption::getPerimeterRoutingForwardPosition ( ) const
inlinevirtual

Referenced by getPerimeterRoutingForwardPosition().

147 {return const_cast<GPSROption*>(this)->getPerimeterRoutingForwardPosition();}
virtual Coord & getPerimeterRoutingForwardPosition()
virtual Coord& inet::GPSROption::getPerimeterRoutingStartPosition ( )
virtual
virtual const Coord& inet::GPSROption::getPerimeterRoutingStartPosition ( ) const
inlinevirtual

Referenced by getPerimeterRoutingStartPosition().

144 {return const_cast<GPSROption*>(this)->getPerimeterRoutingStartPosition();}
virtual Coord & getPerimeterRoutingStartPosition()
virtual GPSRForwardingMode& inet::GPSROption::getRoutingMode ( )
virtual

Referenced by inet::GPSR::findNextHop().

virtual const GPSRForwardingMode& inet::GPSROption::getRoutingMode ( ) const
inlinevirtual

Referenced by getRoutingMode().

138 {return const_cast<GPSROption*>(this)->getRoutingMode();}
virtual GPSRForwardingMode & getRoutingMode()
virtual L3Address& inet::GPSROption::getSenderAddress ( )
virtual
virtual const L3Address& inet::GPSROption::getSenderAddress ( ) const
inlinevirtual

Referenced by getSenderAddress().

156 {return const_cast<GPSROption*>(this)->getSenderAddress();}
virtual L3Address & getSenderAddress()
GPSROption& inet::GPSROption::operator= ( const GPSROption other)
bool inet::GPSROption::operator== ( const GPSROption )
protected
virtual void inet::GPSROption::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::TLVOptionBase.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::TLVOptionBase.

Referenced by inet::doParsimUnpacking().

virtual void inet::GPSROption::setCurrentFaceFirstReceiverAddress ( const L3Address currentFaceFirstReceiverAddress)
virtual
virtual void inet::GPSROption::setCurrentFaceFirstSenderAddress ( const L3Address currentFaceFirstSenderAddress)
virtual
virtual void inet::GPSROption::setDestinationPosition ( const Coord destinationPosition)
virtual
virtual void inet::GPSROption::setPerimeterRoutingForwardPosition ( const Coord perimeterRoutingForwardPosition)
virtual
virtual void inet::GPSROption::setPerimeterRoutingStartPosition ( const Coord perimeterRoutingStartPosition)
virtual
virtual void inet::GPSROption::setRoutingMode ( const GPSRForwardingMode routingMode)
virtual
virtual void inet::GPSROption::setSenderAddress ( const L3Address senderAddress)
virtual

Member Data Documentation

L3Address inet::GPSROption::currentFaceFirstReceiverAddress
protected
L3Address inet::GPSROption::currentFaceFirstSenderAddress
protected
Coord inet::GPSROption::destinationPosition
protected
Coord inet::GPSROption::perimeterRoutingForwardPosition
protected
Coord inet::GPSROption::perimeterRoutingStartPosition
protected
GPSRForwardingMode inet::GPSROption::routingMode
protected
L3Address inet::GPSROption::senderAddress
protected

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