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.
00038 { 00039 error("this module doesn't handle messages, it runs only in initialize()"); 00040 }
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.
00028 { 00029 // wait until IPAddressResolver finished his initialization 00030 if(stage != MIN_STAGE_OVERLAY) 00031 return; 00032 00033 WATCH_VECTOR(keyListVector); 00034 }
virtual int GiaKeyListModule::numInitStages | ( | ) | const [inline, virtual] |
Sets init stage.
Definition at line 45 of file GiaKeyListModule.h.
00046 { 00047 return MAX_STAGE_OVERLAY + 1; 00048 }
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().
00044 { 00045 this->keyListVector = keyListVector; 00046 }
std::vector<OverlayKey> GiaKeyListModule::keyListVector [protected] |
Definition at line 69 of file GiaKeyListModule.h.
Referenced by initialize().