Simple Test-Application.
More...
#include <TTETestApp.h>
Simple Test-Application.
- See Also
- TTEApplicationBase
Definition at line 31 of file TTETestApp.h.
void TTEthernetModel::TTETestApp::handleMessage |
( |
cMessage * |
msg | ) |
|
|
protectedvirtual |
Handles message generation.
Definition at line 28 of file TTETestApp.cc.
30 if (!msg->arrivedOn(
"TTin") && *
new std::string(getParentModule()->getName()) !=
"videoclient")
32 CTFrame *frame =
new CTFrame(
"CT-ID=100");
34 srcAddr.setAddress(
"03 04 05 06 00 64");
35 frame->setDest(srcAddr);
39 if (getParentModule()->getSubmodule(
"VL_TT_100_CTC"))
40 sendDirect(frame, getParentModule()->getSubmodule(
"VL_TT_100_CTC")->gate(
"in"));
43 if (!msg->arrivedOn(
"TTin") && *
new std::string(getParentModule()->getName()) !=
"videoclient")
45 CTFrame *frame =
new CTFrame(
"CT-ID=101");
47 srcAddr.setAddress(
"03 04 05 06 00 65");
48 frame->setDest(srcAddr);
50 frame->setByteLength(1500);
53 if (getParentModule()->getSubmodule(
"VL_TT_101_CTC"))
54 sendDirect(frame, getParentModule()->getSubmodule(
"VL_TT_101_CTC")->gate(
"in"));
void TTEthernetModel::TTETestApp::initialize |
( |
| ) |
|
|
protectedvirtual |
Initialization of the module.
Sends activator message
Definition at line 23 of file TTETestApp.cc.
25 scheduleAt(simTime(),
new cMessage(
"ACTIVATOR!"));
The documentation for this class was generated from the following files: