DESERT 3.5.1
Loading...
Searching...
No Matches
UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer Class Reference

#include <uw-csma-aloha-trigger-node.h>

Inheritance diagram for UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer:
Collaboration diagram for UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer:

Public Member Functions

 Csma_Aloha_Triggered_Timer (UwCsmaAloha_Trigger_NODE *m)
 
virtual ~Csma_Aloha_Triggered_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
 
UwCsmaAloha_Trigger_NODE *UW_CS_ALOHA_TRIG_NODE_TIMER_STATUS timer_status
 

Detailed Description

Class that describes the timers in the node.

Definition at line 142 of file uw-csma-aloha-trigger-node.h.

Constructor & Destructor Documentation

◆ Csma_Aloha_Triggered_Timer()

UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::Csma_Aloha_Triggered_Timer ( UwCsmaAloha_Trigger_NODE m)
inline

Constructor of the AlohaTimer class.

Parameters
CsmaAloha*a pointer to an object of type CsmaAloha*

Definition at line 149 of file uw-csma-aloha-trigger-node.h.

◆ ~Csma_Aloha_Triggered_Timer()

virtual UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::~Csma_Aloha_Triggered_Timer ( )
inlinevirtual

Destructor of the AlohaTimer class.

Definition at line 163 of file uw-csma-aloha-trigger-node.h.

Member Function Documentation

◆ freeze()

virtual void UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::freeze ( )
inlinevirtual

Freezes the timer.

Definition at line 171 of file uw-csma-aloha-trigger-node.h.

◆ getCounter()

int UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::getCounter ( )
inline

Returns the counter of the timer.

Returns
the value of the counter of the timer

Definition at line 293 of file uw-csma-aloha-trigger-node.h.

◆ getDuration()

double UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::getDuration ( )
inline

Returns the left duration of the timer.

Returns
left duration of the timer

Definition at line 304 of file uw-csma-aloha-trigger-node.h.

◆ incrCounter()

void UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::incrCounter ( )
inline

Increments the counter of the timer.

Definition at line 283 of file uw-csma-aloha-trigger-node.h.

◆ isActive()

bool UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::isActive ( )
inline

Checks if the timer is ACTIVE.

Returns
true or false

Definition at line 263 of file uw-csma-aloha-trigger-node.h.

◆ isExpired()

bool UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::isExpired ( )
inline

Checks if the timer is EXPIRED.

Returns
true or false

Definition at line 243 of file uw-csma-aloha-trigger-node.h.

◆ isFrozen()

bool UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::isFrozen ( )
inline

Checks if the timer is FROZEN.

Returns
true or false

Definition at line 253 of file uw-csma-aloha-trigger-node.h.

◆ isIdle()

bool UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::isIdle ( )
inline

checks if the timer is IDLE

Returns
bool true or false

Definition at line 223 of file uw-csma-aloha-trigger-node.h.

◆ isRunning()

bool UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::isRunning ( )
inline

checks if the timer is RUNNING

Returns
true or false

Definition at line 233 of file uw-csma-aloha-trigger-node.h.

◆ resetCounter()

void UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::resetCounter ( )
inline

Resets the counter of the timer.

Definition at line 273 of file uw-csma-aloha-trigger-node.h.

◆ schedule()

virtual void UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::schedule ( double  val)
inlinevirtual

schedule a timer

Parameters
doublethe duration of the timer

Definition at line 210 of file uw-csma-aloha-trigger-node.h.

◆ stop()

virtual void UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::stop ( )
inlinevirtual

stops the timer

Definition at line 199 of file uw-csma-aloha-trigger-node.h.

◆ unFreeze()

virtual void UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::unFreeze ( )
inlinevirtual

unFreezes is used to resume the timer starting from the point where it was freezed

Definition at line 186 of file uw-csma-aloha-trigger-node.h.

Member Data Documentation

◆ counter

int UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::counter
protected

counter of the timer

Definition at line 314 of file uw-csma-aloha-trigger-node.h.

◆ left_duration

double UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::left_duration
protected

Left duration of the timer.

Definition at line 312 of file uw-csma-aloha-trigger-node.h.

◆ start_time

double UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::start_time
protected

Start time of the timer.

Definition at line 310 of file uw-csma-aloha-trigger-node.h.

◆ timer_status

UwCsmaAloha_Trigger_NODE* UW_CS_ALOHA_TRIG_NODE_TIMER_STATUS UwCsmaAloha_Trigger_NODE::Csma_Aloha_Triggered_Timer::timer_status
protected

< Pointer of an object of type UwCsmaAloha_Triggered

Timer status

Definition at line 319 of file uw-csma-aloha-trigger-node.h.


The documentation for this class was generated from the following file: