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

DsrNodeStab class (DSR node stability) More...

#include "dsr-rcache.h"

+ Collaboration diagram for ns3::dsr::DsrNodeStab:

Public Member Functions

 DsrNodeStab (Time nodeStab=Simulator::Now())
 Constructor.
 
virtual ~DsrNodeStab ()
 
Time GetNodeStability () const
 Get node stability.
 
void SetNodeStability (Time nodeStab)
 Set node stability.
 

Private Attributes

Time m_nodeStability
 the node stability
 

Detailed Description

DsrNodeStab class (DSR node stability)

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

Constructor & Destructor Documentation

◆ DsrNodeStab()

ns3::dsr::DsrNodeStab::DsrNodeStab ( Time nodeStab = Simulator::Now())

Constructor.

Parameters
nodeStabduration of stable node time

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

◆ ~DsrNodeStab()

ns3::dsr::DsrNodeStab::~DsrNodeStab ( )
virtual

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

Member Function Documentation

◆ GetNodeStability()

Time ns3::dsr::DsrNodeStab::GetNodeStability ( ) const
inline

Get node stability.

Returns
the remaining time for node stability

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

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

+ Here is the call graph for this function:

◆ SetNodeStability()

void ns3::dsr::DsrNodeStab::SetNodeStability ( Time nodeStab)
inline

Set node stability.

Parameters
nodeStabduration of the node stability

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

References m_nodeStability, 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_nodeStability

Time ns3::dsr::DsrNodeStab::m_nodeStability
private

the node stability

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

Referenced by GetNodeStability(), and SetNodeStability().


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