|
FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
|
#include <traffic-matrix.h>
Public Member Functions | |
| unsigned int | size () const |
| Quantity | getFlow (const std::string &source, const std::string &destination) const |
| Quantity | getFlow (const std::pair< std::string, std::string > &nodes) const |
| void | setFlow (const std::string &source, const std::string &destination, const Quantity &volume) |
| void | setFlow (const std::pair< std::string, std::string > &nodes, const Quantity &volume) |
| std::set< std::pair < std::string, std::string > > | getPairs () const |
Represent a traffic matrix (referring to a single time interval.
| Quantity fnss::TrafficMatrix::getFlow | ( | const std::string & | source, |
| const std::string & | destination | ||
| ) | const |
Get the traffic volume between the specified nodes.
Returns Quantity(0,Units::Data) if the flow is not defined.
| source | the source node of the flow. |
| destination | the destination node of the flow. |
| Quantity fnss::TrafficMatrix::getFlow | ( | const std::pair< std::string, std::string > & | nodes | ) | const |
Get the traffic volume between the specified node pair.
Returns Quantity(0,Units::Data) if the flow is not defined.
| nodes | the pair of <source, destination> nodes. |
| std::set< std::pair< std::string, std::string > > fnss::TrafficMatrix::getPairs | ( | ) | const |
Get all the existing flows as <source, destination> pairs.
Will only return flows of non-zero volume,
| void fnss::TrafficMatrix::setFlow | ( | const std::string & | source, |
| const std::string & | destination, | ||
| const Quantity & | volume | ||
| ) |
Set the traffic volume between the specified nodes.
| source | the source node of the flow. |
| destination | the destination node of the flow. |
| volume | the traffic volume. |
| void fnss::TrafficMatrix::setFlow | ( | const std::pair< std::string, std::string > & | nodes, |
| const Quantity & | volume | ||
| ) |
Set the traffic volume between the specified node pair.
| nodes | the pair of <source, destination> nodes. |
| volume | the traffic volume. |
| unsigned int fnss::TrafficMatrix::size | ( | ) | const |
Get the number of flows in the matrix.
1.8.6