|
DESERT 4.0.0
|
#include <uwpolling_NODE.h>


Public Member Functions | |
| Uwpolling_NODE_Timer (Uwpolling_NODE *m) | |
| virtual | ~Uwpolling_NODE_Timer () |
| 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 |
| Uwpolling_NODE *UWPOLLING_TIMER_STATUS | timer_status |
Class that describes the timer in the AUV
|
inline |
Constructor of the Uwpolling_NODE_Timer class
| Uwpolling_AUV* | a pointer to an object of type Uwpolling_AUV |
|
inlinevirtual |
Destructor of the Uwpolling_NODE_Timer class
|
inlinevirtual |
Freeze the timer
References left_duration, start_time, timer_status, Uwpolling_NODE::UWPOLLING_FROZEN, and Uwpolling_NODE::UWPOLLING_RUNNING.
|
inline |
|
inline |
Returns the counter of the timer
References left_duration.
Referenced by Uwpolling_NODE::stateWaitPoll().
|
inline |
Increments the counter of the timer
References counter.
|
inline |
Checks if the timer is ACTIVE
References timer_status, Uwpolling_NODE::UWPOLLING_FROZEN, and Uwpolling_NODE::UWPOLLING_RUNNING.
|
inline |
Checks if the timer is EXPIRED
References timer_status, and Uwpolling_NODE::UWPOLLING_EXPIRED.
|
inline |
Checks if the timer is FROZEN
References timer_status, and Uwpolling_NODE::UWPOLLING_FROZEN.
|
inline |
Checks if the timer is IDLE
References timer_status, and Uwpolling_NODE::UWPOLLING_IDLE.
|
inline |
Checks if the timer is RUNNING
References timer_status, and Uwpolling_NODE::UWPOLLING_RUNNING.
|
inline |
Resets the counter of the timer
|
inlinevirtual |
Schedules a timer
| double | the duration of the timer |
References left_duration, start_time, timer_status, and Uwpolling_NODE::UWPOLLING_RUNNING.
Referenced by Uwpolling_NODE::Phy2MacEndTx(), Uwpolling_NODE::stateRxPoll(), Uwpolling_NODE::stateRxTrigger(), and Uwpolling_NODE::stateWaitPoll().
|
inlinevirtual |
stops the timer
References timer_status, and Uwpolling_NODE::UWPOLLING_IDLE.
|
inlinevirtual |
unFreeze is used to resume the timer starting from the point where it was freezed
References left_duration, start_time, timer_status, Uwpolling_NODE::UWPOLLING_FROZEN, and Uwpolling_NODE::UWPOLLING_RUNNING.
|
protected |
counter of the timer
Referenced by getCounter(), and incrCounter().
|
protected |
Left duration of the timer
Referenced by freeze(), getDuration(), schedule(), and unFreeze().
|
protected |
Start Time of the timer
Referenced by freeze(), schedule(), and unFreeze().
|
protected |
< Pointer to an object of type Uwpolling_AUV Timer status
Referenced by Uwpolling_NODE::BackOffTimer::expire(), freeze(), isActive(), isExpired(), isFrozen(), isIdle(), isRunning(), schedule(), stop(), and unFreeze().