|
FNSS C++ library
C++ API for the Fast Network Simulation Setup (FNSS) toolchain
|
#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_) |
Represent an edge of a topology
| 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.
| Quantity fnss::Edge::getBufferSize | ( | ) | const |
Get the size of the buffer associated with this link.
| Quantity fnss::Edge::getCapacity | ( | ) | const |
Get the capacity of the link.
| Quantity fnss::Edge::getDelay | ( | ) | const |
Get the delay of the link.
| float fnss::Edge::getWeight | ( | ) | const |
Get the weight of the link.
| void fnss::Edge::setBufferSize | ( | const Quantity & | bufferSize_ | ) |
Set the size of the buffer associated with this link.
| bufferSize | the buffer's size. |
| void fnss::Edge::setCapacity | ( | const Quantity & | capacity_ | ) |
Set the the link's capacity.
| capacity | the link's capacity. |
| void fnss::Edge::setDelay | ( | const Quantity & | delay_ | ) |
Set the the link's delay.
| delay | the link's delay. |
| void fnss::Edge::setWeight | ( | float | weight_ | ) |
Set the weight of the link.
| weight | the weight of the link. |
1.8.6