RINASim  October 2016
Documentation of framework for OMNeT++
DMRnmsLS::LS Class Reference

#include <LS.h>

Inheritance diagram for DMRnmsLS::LS:
DMRnms::rModule

Public Member Functions

 LS (Routing *parent, const Address &_nAddr, const std::string &_domain, const std::string &_addr)
 
bool processUpdate (RoutingUpdate *update)
 
void addFlow (const Address &_nAddr, const std::string &_addr, const unsigned short &_metric)
 
void removeFlow (const Address &_nAddr, const std::string &_addr)
 
void addAddr (const std::string &_addr)
 
void removeAddr (const std::string &_addr)
 
void setInfMetric (const unsigned short &inf)
 
dmNxt getChanges ()
 
dmNxt getAll ()
 
void handleMessage (cMessage *msg)
 
- Public Member Functions inherited from DMRnms::rModule
 rModule (Routing *_parent, const Address &_nAddr, const std::string &_domain, const std::string &_addr)
 
virtual ~rModule ()
 

Protected Member Functions

linksSt getChangedEntries ()
 
TreeNode constructTree ()
 
void addRecursive (s2A &ret, const Address &next, TreeNode *t)
 
void scheduleUpdate ()
 
- Protected Member Functions inherited from DMRnms::rModule
void scheduleAt (const double &time, cMessage *)
 

Protected Attributes

sSet myAddrSet
 
neighMetric nei
 
unsigned short infMetric
 
s2A neigTable
 
linksSt netState
 
unsigned int secId
 
sSet changed
 
s2A currentTable
 
bool scheduledUpdate
 
- Protected Attributes inherited from DMRnms::rModule
Routingparent
 
Address myNAddress
 
std::string domain
 
std::string myAddr
 

Detailed Description

Definition at line 124 of file LS.h.

Constructor & Destructor Documentation

DMRnmsLS::LS::LS ( Routing parent,
const Address _nAddr,
const std::string &  _domain,
const std::string &  _addr 
)

Definition at line 60 of file LS.cc.

Member Function Documentation

void DMRnmsLS::LS::addAddr ( const std::string &  _addr)
virtual

Implements DMRnms::rModule.

Definition at line 115 of file LS.cc.

void DMRnmsLS::LS::addFlow ( const Address _nAddr,
const std::string &  _addr,
const unsigned short &  _metric 
)
virtual

Implements DMRnms::rModule.

Definition at line 87 of file LS.cc.

void DMRnmsLS::LS::addRecursive ( s2A ret,
const Address next,
TreeNode t 
)
protected

Definition at line 275 of file LS.cc.

Referenced by getAll(), and getChanges().

TreeNode DMRnmsLS::LS::constructTree ( )
protected

Definition at line 217 of file LS.cc.

Referenced by getAll(), and getChanges().

dmNxt DMRnmsLS::LS::getAll ( )
virtual

Implements DMRnms::rModule.

Definition at line 163 of file LS.cc.

linksSt DMRnmsLS::LS::getChangedEntries ( )
protected

Definition at line 208 of file LS.cc.

Referenced by handleMessage().

dmNxt DMRnmsLS::LS::getChanges ( )
virtual

Implements DMRnms::rModule.

Definition at line 141 of file LS.cc.

void DMRnmsLS::LS::handleMessage ( cMessage *  msg)
virtual

Implements DMRnms::rModule.

Definition at line 176 of file LS.cc.

bool DMRnmsLS::LS::processUpdate ( RoutingUpdate update)
virtual

Implements DMRnms::rModule.

Definition at line 66 of file LS.cc.

void DMRnmsLS::LS::removeAddr ( const std::string &  _addr)
virtual

Implements DMRnms::rModule.

Definition at line 127 of file LS.cc.

void DMRnmsLS::LS::removeFlow ( const Address _nAddr,
const std::string &  _addr 
)
virtual

Implements DMRnms::rModule.

Definition at line 101 of file LS.cc.

void DMRnmsLS::LS::scheduleUpdate ( )
protected

Definition at line 199 of file LS.cc.

Referenced by addAddr(), addFlow(), processUpdate(), removeAddr(), and removeFlow().

void DMRnmsLS::LS::setInfMetric ( const unsigned short &  inf)
virtual

Implements DMRnms::rModule.

Definition at line 139 of file LS.cc.

Member Data Documentation

sSet DMRnmsLS::LS::changed
protected

Definition at line 152 of file LS.h.

Referenced by addFlow(), getChangedEntries(), handleMessage(), processUpdate(), and removeFlow().

s2A DMRnmsLS::LS::currentTable
protected

Definition at line 155 of file LS.h.

Referenced by getAll(), and getChanges().

unsigned short DMRnmsLS::LS::infMetric
protected

Definition at line 146 of file LS.h.

sSet DMRnmsLS::LS::myAddrSet
protected

Definition at line 143 of file LS.h.

Referenced by addAddr(), and removeAddr().

neighMetric DMRnmsLS::LS::nei
protected

Definition at line 145 of file LS.h.

Referenced by addFlow(), handleMessage(), and removeFlow().

s2A DMRnmsLS::LS::neigTable
protected

Definition at line 148 of file LS.h.

Referenced by addFlow(), getAll(), getChanges(), and removeFlow().

linksSt DMRnmsLS::LS::netState
protected
bool DMRnmsLS::LS::scheduledUpdate
protected

Definition at line 159 of file LS.h.

Referenced by handleMessage(), LS(), and scheduleUpdate().

unsigned int DMRnmsLS::LS::secId
protected

Definition at line 150 of file LS.h.

Referenced by addAddr(), addFlow(), LS(), removeAddr(), and removeFlow().


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