Public Member Functions | Protected Member Functions | Protected Attributes

OLSR_LinkTupleTimer Class Reference

Timer for removing link tuples: OLSR_link_tuple. More...

#include <OLSR.h>

Inheritance diagram for OLSR_LinkTupleTimer:
TimerHandler TimerHandler Handler Handler

List of all members.

Public Member Functions

 OLSR_LinkTupleTimer (OLSR *agent, OLSR_link_tuple *tuple)
 OLSR_LinkTupleTimer (OLSR *agent, OLSR_link_tuple *tuple)

Protected Member Functions

virtual void expire (Event *e)
 Removes tuple_ if expired. Else if symmetric time has expired then it is assumed a neighbor loss and agent_->nb_loss() is called. In this case the timer is rescheduled to expire at tuple_->time(). Otherwise the timer is rescheduled to expire at the minimum between tuple_->time() and tuple_->sym_time().
virtual void expire (Event *e)

Protected Attributes

OLSRagent_
 OLSR agent which created the timer.
OLSR_link_tupletuple_
 OLSR_link_tuple which must be removed.

Detailed Description

Timer for removing link tuples: OLSR_link_tuple.


Member Function Documentation

void OLSR_LinkTupleTimer::expire ( Event e  )  [protected, virtual]

Removes tuple_ if expired. Else if symmetric time has expired then it is assumed a neighbor loss and agent_->nb_loss() is called. In this case the timer is rescheduled to expire at tuple_->time(). Otherwise the timer is rescheduled to expire at the minimum between tuple_->time() and tuple_->sym_time().

The task of actually removing the tuple is left to the OLSR agent.

Parameters:
e The event which has expired.

Implements TimerHandler.


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