|
FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
|
#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) |
Represent an edge of a topology
| 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.
| 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