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

Connection identifier as defined in specifications. More...

#include <ConnectionId.h>

Inheritance diagram for ConnectionId:

Public Member Functions

 ConnectionId ()
 Constructor of blank ConnectionId. More...
 
virtual ~ConnectionId ()
 Destructor assigning undefined values. More...
 
int getDstCepId () const
 Getter of destination Connection-Endpoint identifier. More...
 
void setDstCepId (int destCepId)
 Setter of destination Connection-Endpoint identifier. More...
 
std::string getQoSId () const
 Getter of selected QoS-cube identifier. More...
 
void setQoSId (std::string qoSId)
 Setter of selected QoS-cube identifier. More...
 
int getSrcCepId () const
 Getter of source Connection-Endpoint identifier. More...
 
void setSrcCepId (int srcCepId)
 Setter of source Connection-Endpoint identifier. More...
 
bool operator< (const ConnectionId other) const
 Less operator overload. More...
 
bool operator== (const ConnectionId other) const
 Equal operator overload. More...
 
virtual ConnectionIddup () const
 Duplicate overload creates exact copy of ConnectionId. More...
 
ConnectionIdswapCepIds ()
 Exchanges source and destination CEP identifiers. More...
 
std::string info () const
 Info text outpu suitable for << strinng streams and WATCH. More...
 

Protected Attributes

std::string qosId
 QoS-cube identifier. More...
 
int srcCEPId
 Source Connection-Endpoint identifier. More...
 
int dstCEPId
 Destination Connection-Endpoint identifier. More...
 

Detailed Description

Connection identifier as defined in specifications.

Authors
Vladimir Vesely (ivese.nosp@m.ly@f.nosp@m.it.vu.nosp@m.tbr..nosp@m.cz)
Date
Last refactorized and documented 2014-10-28

Definition at line 42 of file ConnectionId.h.

Constructor & Destructor Documentation

ConnectionId::ConnectionId ( )

Constructor of blank ConnectionId.

Definition at line 29 of file ConnectionId.cc.

Referenced by dup().

ConnectionId::~ConnectionId ( )
virtual

Destructor assigning undefined values.

Definition at line 64 of file ConnectionId.cc.

Member Function Documentation

ConnectionId * ConnectionId::dup ( ) const
virtual

Duplicate overload creates exact copy of ConnectionId.

Returns
Pointer to a copy

Definition at line 71 of file ConnectionId.cc.

Referenced by MockEFCPI::handleMessage().

std::string ConnectionId::info ( ) const

Info text outpu suitable for << strinng streams and WATCH.

Returns

Definition at line 109 of file ConnectionId.cc.

Referenced by operator<<(), and RIBd::processMStart().

bool ConnectionId::operator< ( const ConnectionId  other) const

Less operator overload.

Parameters
otherConnectionId for comparison
Returns
True if this QosId, dstCEPid, srcCEPid are lesser than others. Otherwise returns false

Definition at line 80 of file ConnectionId.cc.

bool ConnectionId::operator== ( const ConnectionId  other) const

Equal operator overload.

Parameters
otherConnectionId for comparison
Returns
True if this QosId, dstCEPid, srcCEPid are equal with others. Otherwise returns false

Definition at line 94 of file ConnectionId.cc.

void ConnectionId::setDstCepId ( int  destCepId)

Setter of destination Connection-Endpoint identifier.

Parameters
destCepIdA new destination CEP-id value

Definition at line 39 of file ConnectionId.cc.

Referenced by CongestionDescriptor::CongestionDescriptor(), CongestionDescriptor::dup(), dup(), Infection::Flow::Flow(), MockEFCPI::initialize(), FAI::receiveCreateResponsePositive(), and CongestionDescriptor::~CongestionDescriptor().

void ConnectionId::setQoSId ( std::string  qoSId)
void ConnectionId::setSrcCepId ( int  srcCepId)
ConnectionId & ConnectionId::swapCepIds ( )

Exchanges source and destination CEP identifiers.

Returns
Pointer to this object

Definition at line 101 of file ConnectionId.cc.

Referenced by RIBd::processMStart(), and Flow::swapCepIds().

Member Data Documentation

int ConnectionId::dstCEPId
protected

Destination Connection-Endpoint identifier.

Definition at line 140 of file ConnectionId.h.

Referenced by dup(), getDstCepId(), info(), operator<(), operator==(), setDstCepId(), swapCepIds(), and ~ConnectionId().

std::string ConnectionId::qosId
protected

QoS-cube identifier.

Definition at line 130 of file ConnectionId.h.

Referenced by dup(), getQoSId(), info(), operator<(), operator==(), setQoSId(), and ~ConnectionId().

int ConnectionId::srcCEPId
protected

Source Connection-Endpoint identifier.

Definition at line 135 of file ConnectionId.h.

Referenced by dup(), getSrcCepId(), info(), operator<(), operator==(), setSrcCepId(), swapCepIds(), and ~ConnectionId().


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