ONU_Rxuser Class Reference

#include <ONU_Rxuser.h>

Inheritance diagram for ONU_Rxuser:

cSimpleModule cModule cComponent cDefaultList cNoncopyableOwnedObject cOwnedObject noncopyable cNamedObject cObject

List of all members.

Protected Member Functions

virtual void initialize ()
virtual void handleMessage (cMessage *msg)
virtual void finish ()

Private Attributes

cStdDev eedStats
int nombreonu
long numReceived


Detailed Description

Definition at line 21 of file ONU_Rxuser.h.


Member Function Documentation

void ONU_Rxuser::finish (  )  [protected, virtual]

Reimplemented from cComponent.

Definition at line 58 of file ONU_Rxuser.cc.

00059 {
00060         // VISUALIZAMOS POR PANTALLA LA RECOGIDA DE ESTADISTICAS DE ESTE MODULO DE CUANDO LLAMAMOS A LA FUNCION FINISH()
00061         //ev<<" ONU " << nombreonu << endl;
00062         //ev<<" Estadísticas en el ONU_Rxuser para paquetes Ethernet"<<endl;
00065 
00066 }

void ONU_Rxuser::handleMessage ( cMessage msg  )  [protected, virtual]

Reimplemented from cSimpleModule.

Definition at line 39 of file ONU_Rxuser.cc.

00040 {
00041         // VARIABLES
00042         simtime_t eed;
00043 
00044         // RECOGIDA DE ESTADISTICAS MANUALMENTE
00045         eed = simTime() - msg->getCreationTime(); // PARAMETRO PARA CALCULAR EL RETARDO EXTREMO A EXTREMOS MANUALMENTE
00046         eedStats.collect(eed); // RECOGEMOS EL RESULTADO
00047 
00048         ETHERNETmsg *ethernetmsg=check_and_cast<ETHERNETmsg*>(msg); // CHEQUEAMOS EL PAQUETE ETHERNET
00049 
00050         // VISUALIZAMOS POR PANTALLA CUANDO RECIBIMOS EL PAQUETE ETHERNET
00051         //ev <<" Paquete Ethernet recibido y borrado."<<endl;
00052 
00053         numReceived++; // INCREMENTAMOS EN UNO EL CONTADOR DE NÚMERO DE PAQUETES ETHERNET RECIBIDOS
00054 
00055         delete ethernetmsg; // BORRAMOS EL MENSAJE ETHERNET
00056 }

void ONU_Rxuser::initialize (  )  [protected, virtual]

Reimplemented from cComponent.

Definition at line 26 of file ONU_Rxuser.cc.

00027 {
00028         nombreonu = getParentModule()->getIndex(); // IDENTIFICADOR DE LA ONU
00029         numReceived = 0; // INICIALIZAMOS EL NÚMERO DE PAQUETES ETHERNET RECIBIDOS A 0
00030 }


Member Data Documentation

Definition at line 24 of file ONU_Rxuser.h.

int ONU_Rxuser::nombreonu [private]

Definition at line 25 of file ONU_Rxuser.h.

long ONU_Rxuser::numReceived [private]

Definition at line 26 of file ONU_Rxuser.h.


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

Generated on Thu Nov 28 14:47:24 2013 for red_wireless by  doxygen 1.5.7.1