OverSim
|
Base class for different churn models. More...
#include <ChurnGenerator.h>
Public Member Functions | |
virtual int | numInitStages () const |
virtual void | initialize (int stage) |
virtual void | initializeChurn ()=0 |
virtual void | handleMessage (cMessage *msg)=0 |
void | setNodeType (const NodeType &t) |
const NodeType & | getNodeType () |
Public Attributes | |
bool | init |
still in initialization phase? | |
int | terminalCount |
current number of overlay terminals |
Protected Member Functions | |
virtual void | updateDisplayString ()=0 |
Protected Attributes | |
UnderlayConfigurator * | underlayConfigurator |
int | targetOverlayTerminalNum |
final number of overlay terminals | |
NodeType | type |
the nodeType this generator is responsible for |
Base class for different churn models.
Definition at line 57 of file ChurnGenerator.h.
|
inline |
Definition at line 65 of file ChurnGenerator.h.
|
pure virtual |
Implemented in ParetoChurn, LifetimeChurn, NoChurn, TraceChurn, and RandomChurn.
|
virtual |
Definition at line 27 of file ChurnGenerator.cc.
|
pure virtual |
Implemented in ParetoChurn, LifetimeChurn, NoChurn, TraceChurn, and RandomChurn.
Referenced by initialize().
|
inlinevirtual |
Definition at line 60 of file ChurnGenerator.h.
|
inline |
Definition at line 64 of file ChurnGenerator.h.
Referenced by UnderlayConfigurator::initialize().
|
protectedpure virtual |
Implemented in ParetoChurn, TraceChurn, LifetimeChurn, NoChurn, and RandomChurn.
Referenced by initialize().
bool ChurnGenerator::init |
still in initialization phase?
Definition at line 66 of file ChurnGenerator.h.
Referenced by initialize().
|
protected |
final number of overlay terminals
Definition at line 72 of file ChurnGenerator.h.
Referenced by NoChurn::handleMessage(), initialize(), LifetimeChurn::initializeChurn(), NoChurn::initializeChurn(), and ParetoChurn::initializeChurn().
int ChurnGenerator::terminalCount |
current number of overlay terminals
Definition at line 67 of file ChurnGenerator.h.
Referenced by RandomChurn::handleMessage(), NoChurn::handleMessage(), and initialize().
|
protected |
the nodeType this generator is responsible for
Definition at line 73 of file ChurnGenerator.h.
Referenced by LifetimeChurn::createNode(), ParetoChurn::createNode(), getNodeType(), RandomChurn::handleMessage(), NoChurn::handleMessage(), initialize(), and setNodeType().
|
protected |
Definition at line 70 of file ChurnGenerator.h.
Referenced by LifetimeChurn::createNode(), ParetoChurn::createNode(), LifetimeChurn::deleteNode(), ParetoChurn::deleteNode(), RandomChurn::handleMessage(), NoChurn::handleMessage(), LifetimeChurn::handleMessage(), ParetoChurn::handleMessage(), and initialize().