DESERT 3.5.1
|
#include <uw-smart-ofdm.h>
Public Member Functions | |
UWSmartOFDMTimer (UWSmartOFDM *m) | |
virtual | ~UWSmartOFDMTimer () |
virtual double | startTime () |
virtual void | freeze () |
virtual void | unFreeze () |
virtual void | stop () |
virtual void | schedule (double val) |
bool | isIdle () |
bool | isRunning () |
bool | isExpired () |
bool | isFrozen () |
bool | isActive () |
void | resetCounter () |
void | incrCounter () |
int | getCounter () |
double | getDuration () |
Protected Attributes | |
double | start_time |
double | left_duration |
int | counter |
UWSmartOFDM *UWSMARTOFDM_TIMER_STATUS | timer_status |
Base class of all the timer used in this protocol.
This is a derived class of TimerHandler.
Definition at line 228 of file uw-smart-ofdm.h.
|
inline |
Constructor of UWSmartOFDMTimer Class.
Definition at line 235 of file uw-smart-ofdm.h.
|
inlinevirtual |
Destructor of UWSmartOFDMTimer Class.
Definition at line 249 of file uw-smart-ofdm.h.
|
inlinevirtual |
It freezes or in another word, it stops the timer for some time.
Suppose, for some reason we want to stop a timer for some period and we want to run this timer from where it was stopped. This function stops the timer and save the left time duration it must run.
Definition at line 267 of file uw-smart-ofdm.h.
|
inline |
It provides, how many times a timer ran.
Definition at line 391 of file uw-smart-ofdm.h.
|
inline |
This methods provide the duration of a timer.
Definition at line 401 of file uw-smart-ofdm.h.
|
inline |
Increment the timer counter.
It helps to know the statics of the timer.
Definition at line 381 of file uw-smart-ofdm.h.
|
inline |
It tells whether the timer is active or not.
Definition at line 361 of file uw-smart-ofdm.h.
|
inline |
Tells whether the timer is expired or not.
Definition at line 341 of file uw-smart-ofdm.h.
|
inline |
It tells whether the timer is in freeze mode or not.
Definition at line 351 of file uw-smart-ofdm.h.
|
inline |
It tells whether the timer is in Idle state or not.
Definition at line 321 of file uw-smart-ofdm.h.
|
inline |
This method tells whether the timer is in Running state or not.
Definition at line 331 of file uw-smart-ofdm.h.
|
inline |
Reset the timer counter.
Definition at line 371 of file uw-smart-ofdm.h.
|
inlinevirtual |
Schedule the time, i.e., how long a timer is going to run.
double | time |
Definition at line 305 of file uw-smart-ofdm.h.
|
inlinevirtual |
Definition at line 254 of file uw-smart-ofdm.h.
|
inlinevirtual |
Stop the timer any way.
Definition at line 294 of file uw-smart-ofdm.h.
|
inlinevirtual |
It starts the timer from where it was stopped.
To run any freeze timer, we can use unfreeze method.
Definition at line 281 of file uw-smart-ofdm.h.
|
protected |
How many times a timer ran.
Definition at line 411 of file uw-smart-ofdm.h.
|
protected |
How long a timer is going to run more.
Definition at line 409 of file uw-smart-ofdm.h.
|
protected |
Start time of a timer.
Definition at line 407 of file uw-smart-ofdm.h.
|
protected |
< Pointer of UWSmartOFDM module.
Set the status of the timer.
Definition at line 415 of file uw-smart-ofdm.h.