OverSim
|
Lifetime based churn generating class. More...
#include <LifetimeChurn.h>
Public Member Functions | |
void | handleMessage (cMessage *msg) |
void | initializeChurn () |
LifetimeChurn () | |
~LifetimeChurn () | |
Public Member Functions inherited from ChurnGenerator | |
virtual int | numInitStages () const |
virtual void | initialize (int stage) |
void | setNodeType (const NodeType &t) |
const NodeType & | getNodeType () |
Protected Member Functions | |
void | updateDisplayString () |
void | createNode (simtime_t lifetime, bool initialize, int contextPos) |
void | deleteNode (TransportAddress &addr, int contextPos) |
double | distributionFunction () |
void | scheduleCreateNodeAt (simtime_t creationTime, simtime_t lifetime, int contextPos) |
Private Attributes | |
GlobalStatistics * | globalStatistics |
double | initialMean |
mean of update interval during initialization phase | |
double | initialDeviation |
deviation of update interval during initialization phase | |
double | targetMean |
mean of update interval after initialization phase | |
std::string | lifetimeDistName |
name of the distribution function | |
double | lifetimeMean |
mean node lifetime | |
double | lifetimeDistPar1 |
distribution function parameter | |
cMessage * | initFinishedTimer |
timer to signal end of init phase | |
std::vector< cObject * > | contextVector |
context pointer vector | |
simtime_t | lastCreate |
simtime_t | lastDelete |
Additional Inherited Members | |
Public Attributes inherited from ChurnGenerator | |
bool | init |
still in initialization phase? | |
int | terminalCount |
current number of overlay terminals | |
Protected Attributes inherited from ChurnGenerator | |
UnderlayConfigurator * | underlayConfigurator |
int | targetOverlayTerminalNum |
final number of overlay terminals | |
NodeType | type |
the nodeType this generator is responsible for |
Lifetime based churn generating class.
Definition at line 36 of file LifetimeChurn.h.
|
inline |
Definition at line 41 of file LifetimeChurn.h.
LifetimeChurn::~LifetimeChurn | ( | ) |
Definition at line 176 of file LifetimeChurn.cc.
|
protected |
Definition at line 100 of file LifetimeChurn.cc.
Referenced by handleMessage().
|
protected |
Definition at line 124 of file LifetimeChurn.cc.
Referenced by handleMessage().
|
protected |
Definition at line 148 of file LifetimeChurn.cc.
Referenced by deleteNode(), and initializeChurn().
|
virtual |
Implements ChurnGenerator.
Definition at line 73 of file LifetimeChurn.cc.
|
virtual |
Implements ChurnGenerator.
Definition at line 34 of file LifetimeChurn.cc.
|
protected |
Definition at line 138 of file LifetimeChurn.cc.
Referenced by deleteNode(), and initializeChurn().
|
protectedvirtual |
Implements ChurnGenerator.
Definition at line 169 of file LifetimeChurn.cc.
|
private |
context pointer vector
Definition at line 64 of file LifetimeChurn.h.
Referenced by createNode(), initializeChurn(), and ~LifetimeChurn().
|
private |
Definition at line 53 of file LifetimeChurn.h.
Referenced by createNode(), deleteNode(), and initializeChurn().
|
private |
timer to signal end of init phase
Definition at line 62 of file LifetimeChurn.h.
Referenced by handleMessage(), initializeChurn(), LifetimeChurn(), and ~LifetimeChurn().
|
private |
deviation of update interval during initialization phase
Definition at line 56 of file LifetimeChurn.h.
Referenced by initializeChurn().
|
private |
mean of update interval during initialization phase
Definition at line 55 of file LifetimeChurn.h.
Referenced by initializeChurn().
|
private |
Definition at line 66 of file LifetimeChurn.h.
Referenced by createNode(), and initializeChurn().
|
private |
Definition at line 67 of file LifetimeChurn.h.
Referenced by deleteNode(), and initializeChurn().
|
private |
name of the distribution function
Definition at line 58 of file LifetimeChurn.h.
Referenced by distributionFunction(), and initializeChurn().
|
private |
distribution function parameter
Definition at line 60 of file LifetimeChurn.h.
Referenced by distributionFunction(), and initializeChurn().
|
private |
mean node lifetime
Definition at line 59 of file LifetimeChurn.h.
Referenced by distributionFunction(), and initializeChurn().
|
private |
mean of update interval after initialization phase
Definition at line 57 of file LifetimeChurn.h.