DESERT 3.5.1
Loading...
Searching...
No Matches
ClMsgUwPhyGetLostPkts Class Reference

#include <uwphy-clmsg.h>

Inheritance diagram for ClMsgUwPhyGetLostPkts:
Collaboration diagram for ClMsgUwPhyGetLostPkts:

Public Member Functions

 ClMsgUwPhyGetLostPkts (bool control=false)
 
 ClMsgUwPhyGetLostPkts (int stack_id, int dest_module_id, bool control=false)
 
 ClMsgUwPhyGetLostPkts (const ClMsgUwPhyGetLostPkts &msg)
 
 ~ClMsgUwPhyGetLostPkts ()
 
uint getLostPkts ()
 
void setLostPkts (uint lost_pkt)
 
bool isControl ()
 
- Public Member Functions inherited from ClMsgUwPhy
 ClMsgUwPhy (ClMessage_t type)
 
 ClMsgUwPhy (int stack_id, int dest_module_id, ClMessage_t type)
 
 ClMsgUwPhy (const ClMsgUwPhy &msg)
 
virtual ~ClMsgUwPhy ()
 
virtual ClMsgUwPhycopy ()
 
void setReqType (ReqType type)
 
ReqType getReqType ()
 

Private Attributes

uint lost_packets
 
bool is_control
 

Additional Inherited Members

- Public Types inherited from ClMsgUwPhy
enum  ReqType {
  NOT_VALID = -1 , SET_REQ , GET_REQ , SET_REPLY ,
  GET_REPLY
}
 
- Protected Attributes inherited from ClMsgUwPhy
int stack_id
 
ReqType req_type
 

Detailed Description

ClMsgUwPhyGetLostPkts should be used by a layer to ask the phy how many packets it discarded from the beginning of the simulation.

In addition, ClMsgUwPhyThresh is used from the phy to reply such a request.

Definition at line 293 of file uwphy-clmsg.h.

Constructor & Destructor Documentation

◆ ClMsgUwPhyGetLostPkts() [1/3]

ClMsgUwPhyGetLostPkts::ClMsgUwPhyGetLostPkts ( bool  control = false)

Broadcast constructor of the ClMsgUwPhyBRate class.

Parameters
controlset to true if it refers to the control packets, false (default) for data packets

Definition at line 225 of file uwphy-clmsg.cc.

◆ ClMsgUwPhyGetLostPkts() [2/3]

ClMsgUwPhyGetLostPkts::ClMsgUwPhyGetLostPkts ( int  stack_id,
int  dest_module_id,
bool  control = false 
)

Unicast constructor of the ClMsgUwPhyGetLostPkts class.

Parameters
intstack_id: id of the stack
dest_mod_idid of the destination module
controlset to true if it refers to the control packets, false (default) for data packets

Definition at line 232 of file uwphy-clmsg.cc.

◆ ClMsgUwPhyGetLostPkts() [3/3]

ClMsgUwPhyGetLostPkts::ClMsgUwPhyGetLostPkts ( const ClMsgUwPhyGetLostPkts msg)

Copy constructor.

Parameters
constClMsgUwPhyGetLostPkts& msg: ClMsgUwPhyGetLostPkts that has to be copied

Definition at line 239 of file uwphy-clmsg.cc.

◆ ~ClMsgUwPhyGetLostPkts()

ClMsgUwPhyGetLostPkts::~ClMsgUwPhyGetLostPkts ( )

Destructor of the ClMsgUwPhyGetLostPkts class.

Definition at line 246 of file uwphy-clmsg.cc.

Member Function Documentation

◆ getLostPkts()

uint ClMsgUwPhyGetLostPkts::getLostPkts ( )

method to return the number of packets lost by the phy.

Returns
the number of packets lost by the phy.

Definition at line 251 of file uwphy-clmsg.cc.

◆ isControl()

bool ClMsgUwPhyGetLostPkts::isControl ( )
inline

Definition at line 338 of file uwphy-clmsg.h.

◆ setLostPkts()

void ClMsgUwPhyGetLostPkts::setLostPkts ( uint  lost_pkt)

method to set the number of packets lost by the phy.

Parameters
lost_pktnumber of packets lost by the phy.

Definition at line 256 of file uwphy-clmsg.cc.

Member Data Documentation

◆ is_control

bool ClMsgUwPhyGetLostPkts::is_control
private

Definition at line 344 of file uwphy-clmsg.h.

◆ lost_packets

uint ClMsgUwPhyGetLostPkts::lost_packets
private

Definition at line 343 of file uwphy-clmsg.h.


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