DsrLinkStab class (DSR link stability) More...
#include "dsr-rcache.h"
Public Member Functions | |
DsrLinkStab (Time linkStab=Simulator::Now()) | |
Constructor. More... | |
virtual | ~DsrLinkStab () |
Destructor. More... | |
Time | GetLinkStability () const |
get the link stability More... | |
void | Print () const |
Print function. More... | |
void | SetLinkStability (Time linkStab) |
set 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... | |
DsrLinkStab class (DSR link stability)
Definition at line 145 of file dsr-rcache.h.
ns3::dsr::DsrLinkStab::DsrLinkStab | ( | Time | linkStab = Simulator::Now() | ) |
Constructor.
linkStab | duration of the link stability |
Definition at line 98 of file dsr-rcache.cc.
|
virtual |
Destructor.
Definition at line 103 of file dsr-rcache.cc.
|
inline |
get the link stability
Definition at line 171 of file dsr-rcache.h.
References m_linkStability, and ns3::Simulator::Now().
Referenced by ns3::dsr::DsrRouteCache::AddRoute_Link(), and Print().
void ns3::dsr::DsrLinkStab::Print | ( | ) | const |
Print function.
Definition at line 108 of file dsr-rcache.cc.
References GetLinkStability(), NS_LOG_LOGIC, and ns3::Time::S.
Referenced by ns3::dsr::DsrRouteCache::AddRoute_Link().
|
inline |
set the link stability
linkStab | duration of the link stability |
Definition at line 162 of file dsr-rcache.h.
References m_linkStability, and ns3::Simulator::Now().
Referenced by ns3::dsr::DsrRouteCache::AddRoute_Link().
|
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 184 of file dsr-rcache.h.
Referenced by GetLinkStability(), and SetLinkStability().