UmtsPhyBS Class Reference

Inheritance diagram for UmtsPhyBS:

Inheritance graph
[legend]
Collaboration diagram for UmtsPhyBS:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UmtsPhyBS ()
virtual double getDataRate ()
double getPrAfterDeSpreading (Packet *p)

Protected Member Functions

void startTx (Packet *p)
void endRx (Packet *p)
MSpectralMaskgetTxSpectralMask (Packet *p)
MSpectralMaskgetRxSpectralMask (Packet *p)

Protected Attributes

double iuccorr_

Detailed Description

Definition at line 161 of file umts-phy.h.


Member Function Documentation

void UmtsPhyBS::startTx ( Packet *  p  )  [protected, virtual]

Method invoked at the beginning of the transmission of a given packet. This method must be implemented by each class inheriting from the MPhy class. It should be used to set specific header fields of the particular PHY technology being implemented, such as the ModulationType in the MPhy packet header. Furthermore, each implementation of this method must take care of calling sendDown(p)

Parameters:
p the given packet

Reimplemented from UmtsPhy.

Definition at line 423 of file umts-phy.cc.

References hdr_umtsphy::bs_code_id, UmtsPhy::code_id_, hdr_umtsphy::direction, and UmtsPhy::startTx().

Here is the call graph for this function:

void UmtsPhyBS::endRx ( Packet *  p  )  [protected, virtual]

Method invoked at the end of the reception of a given packet. This method must be implemented by each class inheriting from the MPhy class.

Please note that this method is called for ALL incoming transmissions, that is even if the receiver was actually not synchronized on packet p. As a consequence, each implementation of this method should check if the receiver was actually synchronized on packet p.

Furthermore, reception errors should be evaluated within this method, and the appropriate action should be taken. It is left to the implementer to decide whether the packet should be dropped in case of errors, or whether some error flag (e.g., ch->error) should be set instead to let some upper layer (e.g., MAC) drop the packet by itself. The ModulationType is probably to be checked for, since even if SNIR is high it is not likely we can decode a modulation other the ones each Phy implementation was designed to decode.

Finally, each implementation of this method should take care to call sendUp(p) in case the reception of the packet was successful.

Parameters:
p the given packet

Reimplemented from UmtsPhy.

Definition at line 504 of file umts-phy.cc.

References hdr_umtsphy::direction, UmtsPhy::endRx(), getPrAfterDeSpreading(), iuccorr_, hdr_MPhy::Pi, and hdr_MPhy::Pr.

Here is the call graph for this function:

MSpectralMask* UmtsPhyBS::getTxSpectralMask ( Packet *  p  )  [inline, protected, virtual]

Returns the spectral mask to be used for the transmission of a given packet.

Parameters:
p the packet being transmitted
Returns:
a pointer to the spectral mask to be used for transmission

Reimplemented from MPhy.

Definition at line 172 of file umts-phy.h.

References UmtsPhy::dl_smask_.

MSpectralMask* UmtsPhyBS::getRxSpectralMask ( Packet *  p  )  [inline, protected, virtual]

Returns the spectral mask to be used for reception

Parameters:
p the packet being received
Returns:
a pointer to the spectral mask to be used for reception

Reimplemented from MPhy.

Definition at line 173 of file umts-phy.h.

References UmtsPhy::ul_smask_.


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:52:37 2008 for NS-MIRACLE library by  doxygen 1.5.2