INET Framework for OMNeT++/OMNEST
STPTimer Class Reference

#include <STPTimer.h>

List of all members.

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]

Detailed Description

Definition at line 13 of file STPTimer.h.


Member Enumeration Documentation

Enumerator:
NONE 
EDGEDELAYWHILE 
FDWHILE 
HELLOWHEN 
RBWHILE 
RCDVINFOWHILE 
RRWHILE 
TCWHILE 

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;

Constructor & Destructor Documentation

STPTimer::~STPTimer ( ) [virtual]

Definition at line 34 of file STPTimer.cc.

                    {
        // TODO Auto-generated destructor stub
}

Member Function Documentation

int STPTimer::getValue ( 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 
)

Member Data Documentation

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().

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().

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().

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().

Definition at line 63 of file STPTimer.h.

Referenced by STPTimer().


The documentation for this class was generated from the following files: