A Discrete-Event Network Simulator
API
ns3::dsr::DsrLinkStab Class Reference

#include "dsr-rcache.h"

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

Public Member Functions

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

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. More...
 

Detailed Description

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

Constructor & Destructor Documentation

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

Constructor.

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

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

Destructor.

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

Member Function Documentation

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

Definition at line 140 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:

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

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

References GetLinkStability(), and NS_LOG_LOGIC.

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

set/get the link stability

Definition at line 136 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

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 152 of file dsr-rcache.h.

Referenced by GetLinkStability(), and SetLinkStability().


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