OverSim
|
#include <SingleHostUnderlayConfigurator.h>
Protected Member Functions | |
void | initializeUnderlay (int stage) |
Init method for derived underlay configurators. | |
void | finishUnderlay () |
Cleans up concrete underlay configurator. | |
void | setDisplayString () |
Sets display string. | |
void | handleTimerEvent (cMessage *msg) |
TransportAddress * | createNode (NodeType type, bool initialize) |
Creates an overlay node. | |
void | preKillNode (NodeType type, TransportAddress *addr=NULL) |
Notifies and schedules overlay nodes for removal. | |
void | migrateNode (NodeType type, TransportAddress *addr=NULL) |
Migrates overlay nodes from one access net to another. | |
Protected Member Functions inherited from UnderlayConfigurator | |
int | numInitStages () const |
OMNeT number of init stages. | |
virtual void | initialize (int stage) |
OMNeT init methods. | |
void | finish () |
Cleans up configurator. | |
void | handleMessage (cMessage *msg) |
Node mobility simulation. |
Additional Inherited Members | |
Public Member Functions inherited from UnderlayConfigurator | |
UnderlayConfigurator () | |
virtual | ~UnderlayConfigurator () |
bool | isInInitPhase () |
still in initialization phase? | |
bool | isSimulationEndingSoon () |
Is the simulation ending soon? | |
simtime_t | getGracefulLeaveDelay () |
Return the gracefulLeaveDelay. | |
bool | isTransitionTimeFinished () |
void | initFinished () |
ChurnGenerator * | getChurnGenerator (int typeID) |
uint8_t | getChurnGeneratorNum () |
int | getOverlayTerminalCount () |
Protected Attributes inherited from UnderlayConfigurator | |
int | overlayTerminalCount |
current number of overlay terminals | |
int | firstNodeId |
the Id of the overlayTerminal created first in the overlay | |
simtime_t | gracefulLeaveDelay |
delay until scheduled node is removed from overlay | |
double | gracefulLeaveProbability |
probability that node is notified befor removal | |
GlobalNodeList * | globalNodeList |
pointer to GlobalNodeList | |
GlobalStatistics * | globalStatistics |
pointer to GlobalStatistics | |
std::vector< ChurnGenerator * > | churnGenerator |
pointer to the ChurnGenerators | |
cMessage * | endSimulationTimer |
timer to signal end of simulation | |
cMessage * | endSimulationNotificationTimer |
timer to notify nodes that simulation ends soon | |
cMessage * | endTransitionTimer |
timer to signal end of transition time | |
struct timeval | initFinishedTime |
timestamp at end of init phase | |
struct timeval | initStartTime |
timestamp at begin of init phase | |
simtime_t | transitionTime |
time to wait before measuring after init phase is finished | |
simtime_t | measurementTime |
duration of the simulation after init and transition phase | |
Static Protected Attributes inherited from UnderlayConfigurator | |
static const int | NUM_COLORS = 8 |
static const char * | colorNames [] |
Definition at line 36 of file SingleHostUnderlayConfigurator.h.
|
inlineprotectedvirtual |
Creates an overlay node.
type | NodeType of the node to create |
initialize | are we in init phase? |
Implements UnderlayConfigurator.
Definition at line 46 of file SingleHostUnderlayConfigurator.h.
|
protectedvirtual |
Cleans up concrete underlay configurator.
Reimplemented from UnderlayConfigurator.
Definition at line 157 of file SingleHostUnderlayConfigurator.cc.
|
protectedvirtual |
Reimplemented from UnderlayConfigurator.
Definition at line 139 of file SingleHostUnderlayConfigurator.cc.
|
protectedvirtual |
Init method for derived underlay configurators.
Implements UnderlayConfigurator.
Definition at line 54 of file SingleHostUnderlayConfigurator.cc.
|
inlineprotectedvirtual |
Migrates overlay nodes from one access net to another.
type | NodeType of the node to migrate |
addr | NULL for random node |
Implements UnderlayConfigurator.
Definition at line 48 of file SingleHostUnderlayConfigurator.h.
|
inlineprotectedvirtual |
Notifies and schedules overlay nodes for removal.
type | NodeType of the node to remove |
addr | NULL for random node |
Implements UnderlayConfigurator.
Definition at line 47 of file SingleHostUnderlayConfigurator.h.
|
protectedvirtual |
Sets display string.
Implements UnderlayConfigurator.
Definition at line 149 of file SingleHostUnderlayConfigurator.cc.
Referenced by initializeUnderlay().