A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::dsr::DsrLinkStab Class Reference

DsrLinkStab class (DSR link stability) More...

#include "dsr-rcache.h"

+ Collaboration diagram for ns3::dsr::DsrLinkStab:

Public Member Functions

 DsrLinkStab (Time linkStab=Simulator::Now())
 Constructor.
 
virtual ~DsrLinkStab ()
 Destructor.
 
Time GetLinkStability () const
 get the link stability
 
void Print () const
 Print function.
 
void SetLinkStability (Time linkStab)
 set the link stability
 

Private Attributes

Time m_linkStability
 The link stability lifetime expected, when the time is due, the link expires the expiration happens when purge the node and link cache before update them when receiving new information.
 

Detailed Description

DsrLinkStab class (DSR link stability)

Definition at line 134 of file dsr-rcache.h.

Constructor & Destructor Documentation

◆ DsrLinkStab()

ns3::dsr::DsrLinkStab::DsrLinkStab ( Time linkStab = Simulator::Now())

Constructor.

Parameters
linkStabduration of the link stability

Definition at line 87 of file dsr-rcache.cc.

◆ ~DsrLinkStab()

ns3::dsr::DsrLinkStab::~DsrLinkStab ( )
virtual

Destructor.

Definition at line 92 of file dsr-rcache.cc.

Member Function Documentation

◆ GetLinkStability()

Time ns3::dsr::DsrLinkStab::GetLinkStability ( ) const
inline

get the link stability

Returns
remaining duration of the link stability

Definition at line 160 of file dsr-rcache.h.

References m_linkStability, and ns3::Simulator::Now().

Referenced by ns3::dsr::DsrRouteCache::AddRoute_Link(), and Print().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Print()

void ns3::dsr::DsrLinkStab::Print ( ) const

Print function.

Definition at line 97 of file dsr-rcache.cc.

References GetLinkStability(), NS_LOG_LOGIC, and ns3::Time::S.

Referenced by ns3::dsr::DsrRouteCache::AddRoute_Link().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetLinkStability()

void ns3::dsr::DsrLinkStab::SetLinkStability ( Time linkStab)
inline

set the link stability

Parameters
linkStabduration of the link stability

Definition at line 151 of file dsr-rcache.h.

References m_linkStability, and ns3::Simulator::Now().

Referenced by ns3::dsr::DsrRouteCache::AddRoute_Link().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_linkStability

Time ns3::dsr::DsrLinkStab::m_linkStability
private

The link stability lifetime expected, when the time is due, the link expires the expiration happens when purge the node and link cache before update them when receiving new information.

Definition at line 173 of file dsr-rcache.h.

Referenced by GetLinkStability(), and SetLinkStability().


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