Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

Txc2 Class Reference

Inheritance diagram for Txc2:

cSimpleModule cModule cDefaultList cObject cPolymorphic List of all members.

Detailed Description

In this class we add some debug messages to Txc1. When you run the simulation in the OMNeT++ GUI Tkenv, the output will appear in the main text window, and you can also open separate output windows for `tic' and `toc'.


Private Member Functions

 Module_Class_Members (Txc2, cSimpleModule, 0)
virtual void initialize ()
virtual void handleMessage (cMessage *msg)


Member Function Documentation

void Txc2::handleMessage (  cMessage *  msg  )  [private, virtual]
 

Reimplemented from cSimpleModule.

00043 {
00044     // msg->name() is name of the msg object, here it will be "tictocMsg".
00045     ev << "Received message `" << msg->name() << "', sending it out again\n";
00046     send(msg, "out");
00047 }

void Txc2::initialize (   )  [private, virtual]
 

Reimplemented from cModule.

00032 {
00033     if (strcmp("tic", name()) == 0)
00034     {
00035         // The `ev' object works like `cout' in C++.
00036         ev << "Sending initial message\n";
00037         cMessage *msg = new cMessage("tictocMsg");
00038         send(msg, "out");
00039     }
00040 }

Txc2::Module_Class_Members (  Txc2  ,
cSimpleModule  ,
0 
)  [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Apr 1 12:25:42 2005 for Tictoc Tutorial by  doxygen 1.3.9.1