|
DESERT 4.0.0
|
#include <uwUFetch_AUV.h>


Public Member Functions | |
| uwUFetch_timer (uwUFetch_AUV *m) | |
| virtual | ~uwUFetch_timer () |
| virtual void | freeze () |
| virtual void | unFreeze () |
| virtual void | stop () |
| virtual void | schedule (double val) |
| bool | isIdle () |
| bool | isRunning () |
| bool | isFroozen () |
| bool | isExpired () |
| bool | isActive () |
| void | resetCounter () |
| void | incrCounter () |
| int | getCounter () |
| double | getDuration () |
Protected Attributes | |
| double | start_time |
| double | left_duration |
| int | counter |
| uwUFetch_AUV *UWUFETCH_TIMER_STATUS | timer_status |
Class that handle the timers of AUV node
|
inline |
Constructor of uwUFetch_timer class
| m | pointer to uwUFetch_AUV class |
|
inlinevirtual |
Destructor of uwUFetch_timer class
|
inlinevirtual |
Freeze the timer
References left_duration, start_time, timer_status, uwUFetch_AUV::UWUFETCH_TIMER_STATUS_FROZEN, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_RUNNING.
|
inline |
|
inline |
|
inline |
Increment the counter by one value
References counter.
|
inline |
Verify if the timer is ACTIVE
References isFroozen(), isRunning(), and timer_status.

|
inline |
Verify if the timer is EXPIRED
References timer_status, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_EXPIRED.
|
inline |
Verify if the timer is FROZEN
References timer_status, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_FROZEN.
Referenced by isActive().
|
inline |
Verify if the timer is IDLE
References timer_status, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_IDLE.
|
inline |
Verify if the timer is RUNNING
References timer_status, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_RUNNING.
Referenced by isActive().
|
inline |
Reset the counter that scan the timer
|
inlinevirtual |
Schedule a timer
| val | duration of the timer |
References left_duration, start_time, timer_status, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_RUNNING.
Referenced by uwUFetch_AUV::state_wait_first_DATA(), uwUFetch_AUV::state_wait_first_DATA_without(), uwUFetch_AUV::state_wait_RTS(), and uwUFetch_AUV::stateIdle_AUV().
|
inlinevirtual |
Stop the timer
References timer_status, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_IDLE.
|
inlinevirtual |
unFreeze are used after a freezing of the timer. In this case the timer restart from the timer where was freezed
check the state of the timer before sheduling the event. If the timer is set, then the call are aborted
References left_duration, start_time, timer_status, uwUFetch_AUV::UWUFETCH_TIMER_STATUS_FROZEN, and uwUFetch_AUV::UWUFETCH_TIMER_STATUS_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 |
Time to start the timer
Referenced by freeze(), schedule(), and unFreeze().
|
protected |
< Pointer to an object of type uwUFetch_AUV Timer status
Referenced by uwUFetch_AUV::uwUFetch_TRIGGER_timer::expire(), freeze(), isActive(), isExpired(), isFroozen(), isIdle(), isRunning(), schedule(), stop(), and unFreeze().