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

#include <SimpleLS.h>

Inheritance diagram for SimpleLS::SimpleLS:
IntSimpleRouting IntRouting

Public Member Functions

bool processUpdate (IntRoutingUpdate *update)
 
void insertFlow (const Address &addr, const std::string &dst, const std::string &qos, const unsigned short &metric)
 
void removeFlow (const Address &addr, const std::string &dst, const std::string &qos)
 
entries2Next getChanges ()
 
entries2Next getAll ()
 
void handleMessage (cMessage *msg)
 
void finish ()
 
- Public Member Functions inherited from IntRouting
void receiveUpdate (IntRoutingUpdate *update)
 

Protected Member Functions

void onPolicyInit ()
 
- Protected Member Functions inherited from IntRouting
void initialize ()
 
void sendUpdate (IntRoutingUpdate *update)
 

Private Member Functions

linksSt getChangedEntries (const std::string &qos)
 
TreeNode constructTree (linksSt &ls)
 
void addRecursive (entries2Next &ret, const std::string &qos, const std::string &next, TreeNode *t)
 
void scheduleUpdate ()
 
void printTreeNode (TreeNode *t, const std::string &next)
 

Private Attributes

unsigned short infMetric
 
std::string myAddr
 
qosNeighMetric neig
 
linksStCol netState
 
qos2addrSet lastChanges
 
unsigned int secId
 
bool scheduledUpdate
 
entries2Next table
 

Additional Inherited Members

- Protected Attributes inherited from IntRouting
Address myAddress
 

Detailed Description

Definition at line 157 of file SimpleLS.h.

Member Function Documentation

void SimpleLS::SimpleLS::addRecursive ( entries2Next ret,
const std::string &  qos,
const std::string &  next,
TreeNode t 
)
private

Definition at line 196 of file SimpleLS.cc.

TreeNode SimpleLS::SimpleLS::constructTree ( linksSt ls)
private

Definition at line 133 of file SimpleLS.cc.

void SimpleLS::SimpleLS::finish ( )
virtual

Reimplemented from IntRouting.

Definition at line 274 of file SimpleLS.cc.

entries2Next SimpleLS::SimpleLS::getAll ( )
virtual

Implements IntSimpleRouting.

Definition at line 115 of file SimpleLS.cc.

linksSt SimpleLS::SimpleLS::getChangedEntries ( const std::string &  qos)
private

Definition at line 264 of file SimpleLS.cc.

entries2Next SimpleLS::SimpleLS::getChanges ( )
virtual

Implements IntSimpleRouting.

Definition at line 90 of file SimpleLS.cc.

void SimpleLS::SimpleLS::handleMessage ( cMessage *  msg)

Definition at line 238 of file SimpleLS.cc.

void SimpleLS::SimpleLS::insertFlow ( const Address addr,
const std::string &  dst,
const std::string &  qos,
const unsigned short &  metric 
)
virtual

Implements IntSimpleRouting.

Definition at line 57 of file SimpleLS.cc.

void SimpleLS::SimpleLS::onPolicyInit ( )
protectedvirtual

Implements IntSimpleRouting.

Definition at line 227 of file SimpleLS.cc.

void SimpleLS::SimpleLS::printTreeNode ( TreeNode t,
const std::string &  next 
)
private

Definition at line 292 of file SimpleLS.cc.

bool SimpleLS::SimpleLS::processUpdate ( IntRoutingUpdate update)
virtual

Implements IntSimpleRouting.

Definition at line 206 of file SimpleLS.cc.

void SimpleLS::SimpleLS::removeFlow ( const Address addr,
const std::string &  dst,
const std::string &  qos 
)
virtual

Implements IntSimpleRouting.

Definition at line 66 of file SimpleLS.cc.

void SimpleLS::SimpleLS::scheduleUpdate ( )
private

Definition at line 80 of file SimpleLS.cc.

Member Data Documentation

unsigned short SimpleLS::SimpleLS::infMetric
private

Definition at line 179 of file SimpleLS.h.

qos2addrSet SimpleLS::SimpleLS::lastChanges
private

Definition at line 183 of file SimpleLS.h.

std::string SimpleLS::SimpleLS::myAddr
private

Definition at line 180 of file SimpleLS.h.

qosNeighMetric SimpleLS::SimpleLS::neig
private

Definition at line 181 of file SimpleLS.h.

linksStCol SimpleLS::SimpleLS::netState
private

Definition at line 182 of file SimpleLS.h.

bool SimpleLS::SimpleLS::scheduledUpdate
private

Definition at line 190 of file SimpleLS.h.

unsigned int SimpleLS::SimpleLS::secId
private

Definition at line 184 of file SimpleLS.h.

entries2Next SimpleLS::SimpleLS::table
private

Definition at line 193 of file SimpleLS.h.


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