FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Files 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("1Mbps", Units::Bandwidth), const Quantity &delay=Quantity("1ms", Units::Time), const float &weight=0, const Quantity &bufferSize=Quantity("10 packets", 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("1Mbps", Units::Bandwidth),
const Quantity delay = Quantity("1ms", Units::Time),
const float &  weight = 0,
const Quantity bufferSize = Quantity("10 packets", 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: