RINASim  October 2016
Documentation of framework for OMNeT++
PortsLoadLS Class Reference

#include <PortsLoadLS.h>

Inheritance diagram for PortsLoadLS:
IntPortsLoadRouting IntRouting

Public Member Functions

bool processUpdate (IntRoutingUpdate *update)
 
virtual void insertFlow (const Address &addr, const std::string &dst, const std::string &qos, const unsigned short &metric, bool sendUpdate)
 
virtual void removeFlow (const Address &addr, const std::string &dst, const std::string &qos, bool sendUpdate)
 
entries2Next getChanges ()
 
entries2Next getAll ()
 
void handleMessage (cMessage *msg)
 
void finish ()
 
virtual void scheduleUpdate ()
 
- 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 printTreeNode (TreeNode *t, const std::string &next)
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from IntRouting
Address myAddress
 

Detailed Description

Definition at line 23 of file PortsLoadLS.h.

Member Function Documentation

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

Definition at line 201 of file PortsLoadLS.cc.

Referenced by getAll(), and getChanges().

TreeNode PortsLoadLS::constructTree ( linksSt ls)
private

Definition at line 129 of file PortsLoadLS.cc.

Referenced by finish(), getAll(), and getChanges().

void PortsLoadLS::finish ( )
virtual

Reimplemented from IntRouting.

Definition at line 311 of file PortsLoadLS.cc.

entries2Next PortsLoadLS::getAll ( )
virtual

Implements IntPortsLoadRouting.

Definition at line 107 of file PortsLoadLS.cc.

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

Definition at line 297 of file PortsLoadLS.cc.

Referenced by handleMessage().

entries2Next PortsLoadLS::getChanges ( )
virtual

Implements IntPortsLoadRouting.

Definition at line 75 of file PortsLoadLS.cc.

void PortsLoadLS::handleMessage ( cMessage *  msg)

Definition at line 264 of file PortsLoadLS.cc.

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

Implements IntPortsLoadRouting.

Definition at line 5 of file PortsLoadLS.cc.

void PortsLoadLS::onPolicyInit ( )
protectedvirtual

Implements IntPortsLoadRouting.

Definition at line 246 of file PortsLoadLS.cc.

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

Definition at line 333 of file PortsLoadLS.cc.

Referenced by finish().

bool PortsLoadLS::processUpdate ( IntRoutingUpdate update)
virtual

Implements IntPortsLoadRouting.

Definition at line 213 of file PortsLoadLS.cc.

void PortsLoadLS::removeFlow ( const Address addr,
const std::string &  dst,
const std::string &  qos,
bool  sendUpdate 
)
virtual

Implements IntPortsLoadRouting.

Definition at line 31 of file PortsLoadLS.cc.

void PortsLoadLS::scheduleUpdate ( )
virtual

Implements IntPortsLoadRouting.

Definition at line 62 of file PortsLoadLS.cc.

Referenced by insertFlow(), processUpdate(), and removeFlow().

Member Data Documentation

unsigned short PortsLoadLS::infMetric
private

Definition at line 59 of file PortsLoadLS.h.

Referenced by onPolicyInit().

qos2addrSet PortsLoadLS::lastChanges
private

Definition at line 63 of file PortsLoadLS.h.

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

std::string PortsLoadLS::myAddr
private

Definition at line 60 of file PortsLoadLS.h.

Referenced by constructTree(), finish(), insertFlow(), onPolicyInit(), and removeFlow().

qosNeighMetric PortsLoadLS::neig
private

Definition at line 61 of file PortsLoadLS.h.

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

linksStCol PortsLoadLS::netState
private
bool PortsLoadLS::scheduledUpdate
private

Definition at line 77 of file PortsLoadLS.h.

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

unsigned int PortsLoadLS::secId
private

Definition at line 64 of file PortsLoadLS.h.

Referenced by insertFlow(), onPolicyInit(), and removeFlow().

entries2Next PortsLoadLS::table
private

Definition at line 79 of file PortsLoadLS.h.

Referenced by getAll(), and getChanges().

unsigned int PortsLoadLS::updateTimeout
private

Definition at line 68 of file PortsLoadLS.h.

Referenced by onPolicyInit(), and scheduleUpdate().


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