BootstrapNodeHandle Class Reference

#include <BootstrapNodeHandle.h>

Inheritance diagram for BootstrapNodeHandle:
NodeHandle TransportAddress

List of all members.

Public Member Functions

 BootstrapNodeHandle ()
 BootstrapNodeHandle (const BootstrapNodeHandle &handle)
 BootstrapNodeHandle (const NodeHandle &handle, BootstrapNodePrioType prio=CACHE)
 BootstrapNodeHandle (const OverlayKey &key, const IPvXAddress &ip, int port, BootstrapNodePrioType prio=CACHE)
BootstrapNodePrioType getNodePrio () const
void setNodePrio (BootstrapNodePrioType nodePrio)
simtime_t getLastPing () const
void setLastPing (simtime_t lastPing)

Private Attributes

BootstrapNodePrioType nodePrio
simtime_t lastPing

Detailed Description

Definition at line 33 of file BootstrapNodeHandle.h.


Constructor & Destructor Documentation

BootstrapNodeHandle::BootstrapNodeHandle (  )  [inline]

Definition at line 40 of file BootstrapNodeHandle.h.

00040                           : NodeHandle()
00041     {
00042         /* lowest priority */
00043         nodePrio = CACHE;
00044     }

BootstrapNodeHandle::BootstrapNodeHandle ( const BootstrapNodeHandle handle  )  [inline]

Definition at line 46 of file BootstrapNodeHandle.h.

00046                                                            : NodeHandle(handle)
00047     {
00048         nodePrio = handle.nodePrio;
00049     }

BootstrapNodeHandle::BootstrapNodeHandle ( const NodeHandle handle,
BootstrapNodePrioType  prio = CACHE 
) [inline]

Definition at line 51 of file BootstrapNodeHandle.h.

00053     {
00054         this->ip = handle.getAddress();
00055         this->port = handle.getPort();
00056         this->key = handle.getKey();
00057         nodePrio = prio;
00058     }

BootstrapNodeHandle::BootstrapNodeHandle ( const OverlayKey key,
const IPvXAddress &  ip,
int  port,
BootstrapNodePrioType  prio = CACHE 
) [inline]

Definition at line 60 of file BootstrapNodeHandle.h.

00064                         : NodeHandle(key, ip, port)   {
00065         nodePrio = prio;
00066     }


Member Function Documentation

simtime_t BootstrapNodeHandle::getLastPing (  )  const [inline]
BootstrapNodePrioType BootstrapNodeHandle::getNodePrio (  )  const [inline]

Definition at line 68 of file BootstrapNodeHandle.h.

Referenced by BootstrapList::insertBootstrapCandidate(), and operator<<().

00068                                                      {
00069         return nodePrio;
00070     }

void BootstrapNodeHandle::setLastPing ( simtime_t  lastPing  )  [inline]

Definition at line 80 of file BootstrapNodeHandle.h.

Referenced by BootstrapList::insertBootstrapCandidate().

00080                                                 {
00081         this->lastPing = lastPing;
00082     }

void BootstrapNodeHandle::setNodePrio ( BootstrapNodePrioType  nodePrio  )  [inline]

Definition at line 72 of file BootstrapNodeHandle.h.

00072                                                             {
00073         this->nodePrio = nodePrio;
00074     }


Member Data Documentation

simtime_t BootstrapNodeHandle::lastPing [private]

Definition at line 37 of file BootstrapNodeHandle.h.

Referenced by getLastPing().

Definition at line 36 of file BootstrapNodeHandle.h.

Referenced by BootstrapNodeHandle(), and getNodePrio().


The documentation for this class was generated from the following file:
Generated on Wed May 26 16:21:16 2010 for OverSim by  doxygen 1.6.3