BootstrapList Class Reference

#include <BootstrapList.h>

List of all members.

Public Member Functions

 BootstrapList ()
 ~BootstrapList ()
void insertBootstrapNode (const NodeHandle &node)

Protected Member Functions

virtual CompType getThisCompType ()

Private Member Functions

void initialize (int stage)
int numInitStages () const
void finish ()
void handleMessage (cMessage *msg)
void handleBootstrapListTimerExpired ()

Private Attributes

BaseOverlayoverlay
cMessage * timerMsg

Static Private Attributes

static const int timerInterval = 10


Constructor & Destructor Documentation

BootstrapList::BootstrapList (  ) 

00030 {
00031     timerMsg = NULL;
00032 }

BootstrapList::~BootstrapList (  ) 

00035 {
00036     cancelAndDelete(timerMsg);
00037 }


Member Function Documentation

void BootstrapList::insertBootstrapNode ( const NodeHandle node  ) 

00074 {
00075     Enter_Method_Silent();
00076     
00077     EV << "New bootstrap node " << node << endl;
00078 }

virtual CompType BootstrapList::getThisCompType (  )  [inline, protected, virtual]

00047 { return BOOTSTRAPLIST_COMP; };

void BootstrapList::initialize ( int  stage  )  [private]

00045 {
00046     if (stage != MAX_STAGE_OVERLAY) {
00047         return;
00048     }
00049     
00050     overlay = NULL;
00051         
00052     timerMsg = new cMessage("BootstrapListTimer");
00053 //    scheduleAt(simTime() + timerInterval, timerMsg);
00054 }

int BootstrapList::numInitStages (  )  const [private]

00040 {
00041     return MAX_STAGE_OVERLAY + 1;
00042 }

void BootstrapList::finish (  )  [private]

00081 {
00082 }

void BootstrapList::handleMessage ( cMessage *  msg  )  [private]

00057 {
00058     if (msg == timerMsg) {
00059         handleBootstrapListTimerExpired();
00060         scheduleAt(simTime() + timerInterval, msg);
00061     } else {
00062         throw new cException("BootstrapList::handleMessage(): "
00063                              "Received unknown message type!");
00064     }
00065 }

void BootstrapList::handleBootstrapListTimerExpired (  )  [private]

00069 {
00070 
00071 }


Member Data Documentation

const int BootstrapList::timerInterval = 10 [static, private]

BaseOverlay* BootstrapList::overlay [private]

cMessage* BootstrapList::timerMsg [private]


The documentation for this class was generated from the following files:
Generated on Thu Apr 17 13:19:28 2008 for ITM OverSim by  doxygen 1.5.3