|
INET Framework for OMNeT++/OMNEST
|
#include <STPTimer.h>
Public Types | |
| enum | eSTPTimer { NONE = -1, EDGEDELAYWHILE = 0, FDWHILE = 1, HELLOWHEN = 2, RBWHILE = 4, RCDVINFOWHILE = 5, RRWHILE = 6, TCWHILE = 7 } |
Public Member Functions | |
| STPTimer () | |
| virtual | ~STPTimer () |
| void | setInitValue (eSTPTimer timer, int value) |
| int | getInitValue (eSTPTimer timer) |
| int | getValue (eSTPTimer timer) |
| bool | existTimedOut () |
| bool | isTimedOut (eSTPTimer timer) |
Private Member Functions | |
| void | setDefaultInitValues () |
Private Attributes | |
| int | edgeDelayWhile |
| int | fdWhile |
| int | helloWhen |
| int | rbWhile |
| int | rcdvInfoWhile |
| int | rrWhile |
| int | tcWhile |
| int | initEdgeDelayWhile |
| int | initFdWhile |
| int | initHelloWhen |
| int | initRbWhile |
| int | initRcdvInfoWhile |
| int | initRrWhile |
| int | initTcWhile |
| int * | timerValue [STPTIMERCOUNT] |
| int * | initValue [STPTIMERCOUNT] |
Definition at line 13 of file STPTimer.h.
| enum STPTimer::eSTPTimer |
Definition at line 19 of file STPTimer.h.
{
NONE = -1,
EDGEDELAYWHILE = 0,
FDWHILE = 1,
HELLOWHEN = 2,
// MDELAYWHILE = 3,
RBWHILE = 4,
RCDVINFOWHILE = 5,
RRWHILE = 6,
TCWHILE = 7,
} eSTPTimer;
Definition at line 10 of file STPTimer.cc.
{
/* ASSIGNING INDEX ACCESS VALUES */
timerValue[EDGEDELAYWHILE] = &edgeDelayWhile;
timerValue[FDWHILE] = &fdWhile;
timerValue[HELLOWHEN] = &helloWhen;
// timerValue[MDELAYWHILE] = &mdelayWhile;
timerValue[RBWHILE] = &rbWhile;
timerValue[RCDVINFOWHILE] = &rcdvInfoWhile;
timerValue[RRWHILE] = &rrWhile;
timerValue[TCWHILE] = &tcWhile;
initValue[EDGEDELAYWHILE] = &initEdgeDelayWhile;
initValue[FDWHILE] = &initFdWhile;
initValue[HELLOWHEN] = &initHelloWhen;
// initValue[MDELAYWHILE] = &initMdelayWhile;
initValue[RBWHILE] = &initRbWhile;
initValue[RCDVINFOWHILE] = &initRcdvInfoWhile;
initValue[RRWHILE] = &initRrWhile;
initValue[TCWHILE] = &initTcWhile;
setDefaultInitValues();
}
| STPTimer::~STPTimer | ( | ) | [virtual] |
Definition at line 34 of file STPTimer.cc.
{
// TODO Auto-generated destructor stub
}
| bool STPTimer::existTimedOut | ( | ) |
| int STPTimer::getInitValue | ( | eSTPTimer | timer | ) |
| int STPTimer::getValue | ( | eSTPTimer | timer | ) |
| bool STPTimer::isTimedOut | ( | eSTPTimer | timer | ) |
| void STPTimer::setDefaultInitValues | ( | ) | [private] |
Definition at line 39 of file STPTimer.cc.
Referenced by STPTimer().
{
initEdgeDelayWhile = 15;
initFdWhile = 15;
initHelloWhen = 2;
// initMdelayWhile; = ??
/* (!) TWICE AS HELLO TIMER, but for unify */
initRbWhile = 2 * initHelloWhen;
initRcdvInfoWhile;
initRrWhile;
initTcWhile;
}
| void STPTimer::setInitValue | ( | eSTPTimer | timer, |
| int | value | ||
| ) |
int STPTimer::edgeDelayWhile [private] |
Definition at line 43 of file STPTimer.h.
Referenced by STPTimer().
int STPTimer::fdWhile [private] |
Definition at line 44 of file STPTimer.h.
Referenced by STPTimer().
int STPTimer::helloWhen [private] |
Definition at line 45 of file STPTimer.h.
Referenced by STPTimer().
int STPTimer::initEdgeDelayWhile [private] |
Definition at line 52 of file STPTimer.h.
Referenced by setDefaultInitValues(), and STPTimer().
int STPTimer::initFdWhile [private] |
Definition at line 53 of file STPTimer.h.
Referenced by setDefaultInitValues(), and STPTimer().
int STPTimer::initHelloWhen [private] |
Definition at line 54 of file STPTimer.h.
Referenced by setDefaultInitValues(), and STPTimer().
int STPTimer::initRbWhile [private] |
Definition at line 56 of file STPTimer.h.
Referenced by setDefaultInitValues(), and STPTimer().
int STPTimer::initRcdvInfoWhile [private] |
Definition at line 57 of file STPTimer.h.
Referenced by setDefaultInitValues(), and STPTimer().
int STPTimer::initRrWhile [private] |
Definition at line 58 of file STPTimer.h.
Referenced by setDefaultInitValues(), and STPTimer().
int STPTimer::initTcWhile [private] |
Definition at line 59 of file STPTimer.h.
Referenced by setDefaultInitValues(), and STPTimer().
int* STPTimer::initValue[STPTIMERCOUNT] [private] |
Definition at line 64 of file STPTimer.h.
Referenced by STPTimer().
int STPTimer::rbWhile [private] |
Definition at line 47 of file STPTimer.h.
Referenced by STPTimer().
int STPTimer::rcdvInfoWhile [private] |
Definition at line 48 of file STPTimer.h.
Referenced by STPTimer().
int STPTimer::rrWhile [private] |
Definition at line 49 of file STPTimer.h.
Referenced by STPTimer().
int STPTimer::tcWhile [private] |
Definition at line 50 of file STPTimer.h.
Referenced by STPTimer().
int* STPTimer::timerValue[STPTIMERCOUNT] [private] |
Definition at line 63 of file STPTimer.h.
Referenced by STPTimer().