RLRP routing  v.0.1.0
Messages.UnicastPacket Class Reference

Unicast data packet. More...

Collaboration diagram for Messages.UnicastPacket:
Collaboration graph

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def __str__ (self)
 Default print method. More...
 

Public Attributes

 id
 Unique packet ID. More...
 
 hop_count
 Current hop count value. More...
 

Static Public Attributes

int type = 0
 Type ID of Unicast Data Packet. More...
 

Detailed Description

Unicast data packet.

Constructor & Destructor Documentation

def Messages.UnicastPacket.__init__ (   self)

Constructor.

Parameters
selfThe object pointer.
Returns
None

Member Function Documentation

def Messages.UnicastPacket.__str__ (   self)

Default print method.

Parameters
selfThe object pointer.
Returns
String with "TYPE: , ID: , HOP_COUNT: ".

Member Data Documentation

Messages.UnicastPacket.hop_count

Current hop count value.

Messages.UnicastPacket.id

Unique packet ID.

Max value is (2**20 - 1), since the id field size is 20 bits.

int Messages.UnicastPacket.type = 0
static

Type ID of Unicast Data Packet.


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