Public Types | Public Member Functions | Protected Attributes

DroppedPacket Class Reference
[utils - utility classesBaseUtility - blackboard related stuff]

May be published by MAC lyer to indicate why a packet was dropped. More...

#include <DroppedPacket.h>

Inherits BBItem.

Collaboration diagram for DroppedPacket:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Reasons { NONE = 746216, QUEUE, CHANNEL, RETRIES }
 

Possible Reasons.


Public Member Functions

virtual BBItemparentObject () const
 Returns an instance of BBItem.
Reasons getReason () const
 Get Reason.
void setReason (Reasons r)
 set the state of the radio
 DroppedPacket (Reasons r=NONE)
 Constructor.
std::string info () const
 Enables inspection.

Protected Attributes

Reasons reason
 Hold Reason why this packet was dropped.

Detailed Description

May be published by MAC lyer to indicate why a packet was dropped.

Reasons: QUEUE: packet dropped because of full queue CHANNEL: packet dropped because channel could not be aquired RETRIES: packet dropped because receiver ACKs did not arrive

Author:
Andreas K�pke
See also:
Blackboard

Definition at line 40 of file DroppedPacket.h.


Member Function Documentation

virtual BBItem* DroppedPacket::parentObject (  )  const [inline, virtual]

Returns an instance of BBItem.

This method is used to get a kind of class hierarchy at runtime.

Reimplemented from BBItem.

Definition at line 42 of file DroppedPacket.h.

:


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