TTEthernet Model for INET Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TTEthernetModel::BaseConfigurationManager Class Reference

Dummy module for a ConfigurationManager that has no configuration. More...

#include <BaseConfigurationManager.h>

Inheritance diagram for TTEthernetModel::BaseConfigurationManager:

Protected Member Functions

virtual void initialize ()
 Is called in initialization phase. More...
 
virtual void handleMessage (cMessage *msg)
 Destroys the module after reception of a message. More...
 

Detailed Description

Dummy module for a ConfigurationManager that has no configuration.

If you use this BaseConfigurationManager you must configure the node manually

The module is deleted after simulation start

Definition at line 30 of file BaseConfigurationManager.h.

Member Function Documentation

void TTEthernetModel::BaseConfigurationManager::handleMessage ( cMessage *  msg)
protectedvirtual

Destroys the module after reception of a message.

Definition at line 28 of file BaseConfigurationManager.cc.

29 {
30  //delete module on first message, it is not needed anymore;
31  delete msg;
32  deleteModule();
33 }
void TTEthernetModel::BaseConfigurationManager::initialize ( )
protectedvirtual

Is called in initialization phase.

The module creates a message for self destruction

Definition at line 22 of file BaseConfigurationManager.cc.

23 {
24  //Generate start message to delete module
25  scheduleAt(simTime(), new cMessage("Delete Module"));
26 }

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