Txc2 Class Reference
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'.
Member Function Documentation
void Txc2::handleMessage |
( |
cMessage * |
msg |
) |
[protected, virtual] |
Reimplemented from cSimpleModule.
00042 {
00043
00044 EV << "Received message `" << msg->getName() << "', sending it out again\n";
00045 send(msg, "out");
00046 }
void Txc2::initialize |
( |
|
) |
[protected, virtual] |
Reimplemented from cComponent.
00031 {
00032 if (strcmp("tic", getName()) == 0)
00033 {
00034
00035 EV << "Sending initial message\n";
00036 cMessage *msg = new cMessage("tictocMsg");
00037 send(msg, "out");
00038 }
00039 }
The documentation for this class was generated from the following file: