OverSim
GiaKeyListModule Class Reference

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< OverlayKeykeyListVector

Detailed Description

This class is only for visualizing the KeyList.

Definition at line 37 of file GiaKeyListModule.h.

Member Function Documentation

void GiaKeyListModule::handleMessages ( cMessage *  msg)
virtual

This module doesn't handle OMNeT++ messages.

Parameters
msgOMNeT++ 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++.

Parameters
stageLevel 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
inlinevirtual

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.

Parameters
keyListVectorVector of search keys

Definition at line 43 of file GiaKeyListModule.cc.

Referenced by Gia::handleAppMessage().

Member Data Documentation

std::vector<OverlayKey> GiaKeyListModule::keyListVector
protected

Definition at line 69 of file GiaKeyListModule.h.

Referenced by initialize(), and setKeyListVector().


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