FNSS C++ library
C++ API for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Functions Typedefs Pages
Public Member Functions | List of all members
fnss::Edge Class Reference

#include <edge.h>

Public Member Functions

 Edge (const Quantity &capacity_=Quantity(DEFAULT_CAPACITY, Units::Bandwidth), const Quantity &delay_=Quantity(DEFAULT_DELAY, Units::Time), const float &weight_=DEFAULT_WEIGHT, const Quantity &bufferSize_=Quantity(DEFAULT_BUFFER_SIZE, Units::BufferSize))
 
Quantity getCapacity () const
 
void setCapacity (const Quantity &capacity_)
 
float getWeight () const
 
void setWeight (float weight_)
 
Quantity getDelay () const
 
void setDelay (const Quantity &delay_)
 
Quantity getBufferSize () const
 
void setBufferSize (const Quantity &bufferSize_)
 

Detailed Description

Represent an edge of a topology

Author
Cosmin Cocora

Constructor & Destructor Documentation

fnss::Edge::Edge ( const Quantity capacity_ = Quantity(DEFAULT_CAPACITY, Units::Bandwidth),
const Quantity delay_ = Quantity(DEFAULT_DELAY, Units::Time),
const float &  weight_ = DEFAULT_WEIGHT,
const Quantity bufferSize_ = Quantity(DEFAULT_BUFFER_SIZE, Units::BufferSize) 
)

Constructor.

Member Function Documentation

Quantity fnss::Edge::getBufferSize ( ) const

Get the size of the buffer associated with this link.

Returns
the buffer's size.
Quantity fnss::Edge::getCapacity ( ) const

Get the capacity of the link.

Returns
the capacity.
Quantity fnss::Edge::getDelay ( ) const

Get the delay of the link.

Returns
the delay of the link.
float fnss::Edge::getWeight ( ) const

Get the weight of the link.

Returns
the weight of the link.
void fnss::Edge::setBufferSize ( const Quantity bufferSize_)

Set the size of the buffer associated with this link.

Parameters
bufferSizethe buffer's size.
void fnss::Edge::setCapacity ( const Quantity capacity_)

Set the the link's capacity.

Parameters
capacitythe link's capacity.
void fnss::Edge::setDelay ( const Quantity delay_)

Set the the link's delay.

Parameters
delaythe link's delay.
void fnss::Edge::setWeight ( float  weight_)

Set the weight of the link.

Parameters
weightthe weight of the link.

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