DESERT 3.5.1
Loading...
Searching...
No Matches
uwUFetch_NODE::uwUFetch_NODE_timer Class Reference

#include <uwUFetch_NODE.h>

Inheritance diagram for uwUFetch_NODE::uwUFetch_NODE_timer:
Collaboration diagram for uwUFetch_NODE::uwUFetch_NODE_timer:

Public Member Functions

 uwUFetch_NODE_timer (uwUFetch_NODE *m)
 
virtual ~uwUFetch_NODE_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_NODE *UWUFETCH_TIMER_STATUS timer_status
 

Detailed Description

Class that handle the timers of SN or HN.

Definition at line 256 of file uwUFetch_NODE.h.

Constructor & Destructor Documentation

◆ uwUFetch_NODE_timer()

uwUFetch_NODE::uwUFetch_NODE_timer::uwUFetch_NODE_timer ( uwUFetch_NODE m)
inline

Constructor of the class uwUFetch_NODE_timer.

Parameters
mpointer to uwUFetch_NODE class

Definition at line 263 of file uwUFetch_NODE.h.

◆ ~uwUFetch_NODE_timer()

virtual uwUFetch_NODE::uwUFetch_NODE_timer::~uwUFetch_NODE_timer ( )
inlinevirtual

Destructor of the class uwUFetch_NODE_timer.

Definition at line 277 of file uwUFetch_NODE.h.

Member Function Documentation

◆ freeze()

virtual void uwUFetch_NODE::uwUFetch_NODE_timer::freeze ( )
inlinevirtual

Freeze the timer.

Definition at line 283 of file uwUFetch_NODE.h.

◆ getCounter()

int uwUFetch_NODE::uwUFetch_NODE_timer::getCounter ( )
inline

value of the counter

Returns
int counter

Definition at line 414 of file uwUFetch_NODE.h.

◆ getDuration()

double uwUFetch_NODE::uwUFetch_NODE_timer::getDuration ( )
inline

left duration of the timer

Returns
double left_duration

Definition at line 425 of file uwUFetch_NODE.h.

◆ incrCounter()

void uwUFetch_NODE::uwUFetch_NODE_timer::incrCounter ( )
inline

increment the counter by one value

Definition at line 403 of file uwUFetch_NODE.h.

◆ isActive()

bool uwUFetch_NODE::uwUFetch_NODE_timer::isActive ( )
inline

verify if the timer is ACTIVE

Returns
: bool true ACTIVE

Definition at line 385 of file uwUFetch_NODE.h.

◆ isExpired()

bool uwUFetch_NODE::uwUFetch_NODE_timer::isExpired ( )
inline

verify whether the timer is EXPIRED

Returns
: bool true EXPIRED

Definition at line 374 of file uwUFetch_NODE.h.

◆ isFroozen()

bool uwUFetch_NODE::uwUFetch_NODE_timer::isFroozen ( )
inline

verify if the timer is FROZEN

Returns
: bool true FROZEN

Definition at line 363 of file uwUFetch_NODE.h.

◆ isIdle()

bool uwUFetch_NODE::uwUFetch_NODE_timer::isIdle ( )
inline

verify whether the timer is IDLE

Returns
: bool true-->IDLE

Definition at line 341 of file uwUFetch_NODE.h.

◆ isRunning()

bool uwUFetch_NODE::uwUFetch_NODE_timer::isRunning ( )
inline

verify if the timer is RUNNING

Returns
: bool true RUNNING

Definition at line 352 of file uwUFetch_NODE.h.

◆ resetCounter()

void uwUFetch_NODE::uwUFetch_NODE_timer::resetCounter ( )
inline

reset the counter that scan the timer

Definition at line 394 of file uwUFetch_NODE.h.

◆ schedule()

virtual void uwUFetch_NODE::uwUFetch_NODE_timer::schedule ( double  val)
inlinevirtual

schedule a timer

Parameters
doublethe duration of the timer

Definition at line 327 of file uwUFetch_NODE.h.

◆ stop()

virtual void uwUFetch_NODE::uwUFetch_NODE_timer::stop ( )
inlinevirtual

Stop the timer.

Definition at line 315 of file uwUFetch_NODE.h.

◆ unFreeze()

virtual void uwUFetch_NODE::uwUFetch_NODE_timer::unFreeze ( )
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

Definition at line 299 of file uwUFetch_NODE.h.

Member Data Documentation

◆ counter

int uwUFetch_NODE::uwUFetch_NODE_timer::counter
protected

Counter of the timer.

Definition at line 433 of file uwUFetch_NODE.h.

◆ left_duration

double uwUFetch_NODE::uwUFetch_NODE_timer::left_duration
protected

Left duration of the timer

Definition at line 432 of file uwUFetch_NODE.h.

◆ start_time

double uwUFetch_NODE::uwUFetch_NODE_timer::start_time
protected

Time to start the timer.

Definition at line 431 of file uwUFetch_NODE.h.

◆ timer_status

uwUFetch_NODE* UWUFETCH_TIMER_STATUS uwUFetch_NODE::uwUFetch_NODE_timer::timer_status
protected

< Pointer to an object of type uwUFetch_NODE

Timer status

Definition at line 436 of file uwUFetch_NODE.h.


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