OLT_Tx Class Reference

#include <OLT_Tx.h>

Inheritance diagram for OLT_Tx:

cSimpleModule cModule cComponent cDefaultList cNoncopyableOwnedObject cOwnedObject noncopyable cNamedObject cObject

List of all members.

Protected Member Functions

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


Detailed Description

Definition at line 21 of file OLT_Tx.h.


Member Function Documentation

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

Reimplemented from cSimpleModule.

Definition at line 37 of file OLT_Tx.cc.

00038 {
00039         // VARIABLES
00040         int type = msg->getKind(); // VARIABLE TYPE PARA IDENTIFICAR LOS MENSAJES DE LA RED
00041 
00042         // ESTRUCTURA CONDICIONAL SWITCH QUE NOS DIFERENCIA LOS MENSAJES QUE LLEGUEN A ESTE MODULO
00043         switch(type)
00044         {
00045                 case 0:
00046                         // LLEGA UN PAQUETE GATE CON IDENTIFICADOR = 0
00047                         if(msg->getKind()==0)
00048                         {
00049                                 //GATEmsg *gatemsg=check_and_cast<GATEmsg*>(msg); // CHEQUEAMOS EL PAQUETE GATE
00050                                 /*
00051                                 // VISUALIZAMOS LOS CAMPOS DEL PAQUETE GATE
00052                                 ev<<" Paquete Gate."<<endl;
00053                                 ev<<" Origen OLT ID: "<<gatemsg->getSrcAddress()<<endl;
00054                                 ev<<" Destino ONU "<<gatemsg->getDestAddress()<<endl;
00055                                 ev<<" Longitud de onda de envio, Lambda "<< gatemsg->getLambdagate()<<endl;
00056                                 ev<<" Tipo "<<gatemsg->getKind()<<endl;
00057                                 ev<<" Tiempo iniciar Tx "<<gatemsg->getGrant_IniTime()<<endl;
00058                                 ev<<"  "<<endl;
00059                                 */
00060                                 send(msg, "olttxOut"); // ENVIAMOS LOS PAQUETES GATE HACIA EL WDMSPLITTER DEL OLT
00061                         }
00062                         break;
00063 
00064                 case 1:
00065                         // LLEGA UN PAQUETE ETHERNET CON IDENTIFICADOR = 1
00067                         send(msg, "olttxOut"); // ENVIAMOS LOS PAQUETES ETHERNET HACIA LA CAPA MAC DEL OLT
00068                         break;
00069 
00070                 default:
00071                         delete msg;
00072                         break;
00073         }
00074 }

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

Reimplemented from cComponent.

Definition at line 26 of file OLT_Tx.cc.

00027 {
00028 }


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