DESERT 3.5.1
|
#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.
Definition at line 124 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Constructor of the GenericTimer class.
CsmaAloha* | a pointer to an object of type CsmaAloha* |
Definition at line 131 of file uw-csma-aloha-trigger-sink.h.
|
inlinevirtual |
Destructor of the GenericTimer class.
Definition at line 145 of file uw-csma-aloha-trigger-sink.h.
|
inlinevirtual |
Freezes the timer.
Definition at line 153 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Returns the counter of the timer.
Definition at line 274 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Returns the left duration of the timer.
Definition at line 284 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Increments the counter of the timer.
Definition at line 264 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Checks if the timer is ACTIVE.
Definition at line 245 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Checks if the timer is EXPIRED.
Definition at line 225 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Checks if the timer is FROZEN.
Definition at line 235 of file uw-csma-aloha-trigger-sink.h.
|
inline |
checks if the timer is IDLE
Definition at line 205 of file uw-csma-aloha-trigger-sink.h.
|
inline |
checks if the timer is RUNNING
Definition at line 215 of file uw-csma-aloha-trigger-sink.h.
|
inline |
Resets the counter of the timer.
Definition at line 255 of file uw-csma-aloha-trigger-sink.h.
|
inlinevirtual |
schedule a timer
double | the duration of the timer |
Definition at line 192 of file uw-csma-aloha-trigger-sink.h.
|
inlinevirtual |
stops the timer
Definition at line 181 of file uw-csma-aloha-trigger-sink.h.
|
inlinevirtual |
unFreezes is used to resume the timer starting from the point where it was freezed
Definition at line 168 of file uw-csma-aloha-trigger-sink.h.
|
protected |
counter of the timer
Definition at line 294 of file uw-csma-aloha-trigger-sink.h.
|
protected |
Left duration of the timer.
Definition at line 292 of file uw-csma-aloha-trigger-sink.h.
|
protected |
Start Time of the timer.
Definition at line 290 of file uw-csma-aloha-trigger-sink.h.
|
protected |
< Pointer to an object of type CsmaAloha
Timer status
Definition at line 299 of file uw-csma-aloha-trigger-sink.h.