|
DESERT 4.0.0
|
#include <uw-csma-aloha-trigger-sink.h>


Public Member Functions | |
| GenericTimer (UwCsmaAloha_Trigger_SINK *m) | |
| virtual | ~GenericTimer () |
| 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 |
| UwCsmaAloha_Trigger_SINK *UW_CS_ALOHA_TRIG_SINK_TIMER_STATUS | timer_status |
Class that describes the timers in the node
|
inline |
Constructor of the GenericTimer class
| CsmaAloha* | a pointer to an object of type CsmaAloha* |
|
inlinevirtual |
Destructor of the GenericTimer class
|
inlinevirtual |
Freezes the timer
References left_duration, start_time, timer_status, UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_FROZEN, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_RUNNING.
|
inline |
|
inline |
|
inline |
Increments the counter of the timer
References counter.
|
inline |
Checks if the timer is ACTIVE
References timer_status, UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_FROZEN, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_RUNNING.
|
inline |
Checks if the timer is EXPIRED
References timer_status, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_EXPIRED.
|
inline |
Checks if the timer is FROZEN
References timer_status, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_FROZEN.
|
inline |
checks if the timer is IDLE
References timer_status, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_IDLE.
|
inline |
checks if the timer is RUNNING
References timer_status, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_RUNNING.
|
inline |
Resets the counter of the timer
|
inlinevirtual |
schedule a timer
| double | the duration of the timer |
References left_duration, start_time, timer_status, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_RUNNING.
|
inlinevirtual |
stops the timer
References timer_status, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_IDLE.
|
inlinevirtual |
unFreezes is used to resume the timer starting from the point where it was freezed
References left_duration, start_time, timer_status, UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_FROZEN, and UwCsmaAloha_Trigger_SINK::UW_CS_ALOHA_TRIG_SINK_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 CsmaAloha Timer status
Referenced by UwCsmaAloha_Trigger_SINK::ReceiveTimer::expire(), freeze(), isActive(), isExpired(), isFrozen(), isIdle(), isRunning(), schedule(), stop(), and unFreeze().