This class is only for visualizing the KeyList. More...
#include <GiaKeyListModule.h>
Public Member Functions | |
| virtual int | numInitStages () const |
| Sets init stage. | |
| virtual void | initialize (int stage) |
| Initializes this class and set some WATCH(variable) for OMNeT++. | |
| virtual void | handleMessages (cMessage *msg) |
| This module doesn't handle OMNeT++ messages. | |
| virtual void | setKeyListVector (const std::vector< OverlayKey > &keyListVector) |
| Sets keyListVector for OMNeT++ WATCH_VECTOR. | |
Protected Attributes | |
| std::vector< OverlayKey > | keyListVector |
This class is only for visualizing the KeyList.
Definition at line 37 of file GiaKeyListModule.h.
| void GiaKeyListModule::handleMessages | ( | cMessage * | msg | ) | [virtual] |
This module doesn't handle OMNeT++ messages.
| msg | OMNeT++ message |
Definition at line 37 of file GiaKeyListModule.cc.
{
error("this module doesn't handle messages, it runs only in initialize()");
}
| void GiaKeyListModule::initialize | ( | int | stage | ) | [virtual] |
Initializes this class and set some WATCH(variable) for OMNeT++.
| stage | Level of initialization (OMNeT++) |
Definition at line 27 of file GiaKeyListModule.cc.
{
// wait until IPAddressResolver finished his initialization
if(stage != MIN_STAGE_OVERLAY)
return;
WATCH_VECTOR(keyListVector);
}
| virtual int GiaKeyListModule::numInitStages | ( | ) | const [inline, virtual] |
Sets init stage.
Definition at line 45 of file GiaKeyListModule.h.
{
return MAX_STAGE_OVERLAY + 1;
}
| void GiaKeyListModule::setKeyListVector | ( | const std::vector< OverlayKey > & | keyListVector | ) | [virtual] |
Sets keyListVector for OMNeT++ WATCH_VECTOR.
| keyListVector | Vector of search keys |
Definition at line 43 of file GiaKeyListModule.cc.
Referenced by Gia::handleAppMessage().
{
this->keyListVector = keyListVector;
}
std::vector<OverlayKey> GiaKeyListModule::keyListVector [protected] |
Definition at line 69 of file GiaKeyListModule.h.
Referenced by initialize().
1.7.1