![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <ldk/tools/Bridge.hpp>

Public Member Functions | |
| Bridge (fun::FUN *leftFUN, fun::FUN *rightFUN, double loss=0.0) | |
| bridge::Forwarder * | getLeft () const |
| Return the 'left' FunctionalUnit. | |
| bridge::Forwarder * | getRight () const |
| Return the 'right' FunctionalUnit. | |
| void | setLoss (double loss) |
| Set the link quality. | |
| virtual | ~Bridge () |
Private Attributes | |
| bridge::Forwarder * | a |
| bridge::Forwarder * | b |
Definition at line 126 of file Bridge.hpp.
A bridge consists of two functional units, which may even be part of different FUNs. We imagine one of these functional units to be on the left side and one on the right side.
To create the two functional units, you have to provide the FUNs the functional units shall be part of.
Additionally you may choose to set a packet loss.
Definition at line 35 of file Bridge.cpp.
| Bridge::~Bridge | ( | ) | [virtual] |
Definition at line 44 of file Bridge.cpp.
| bridge::Forwarder* wns::ldk::tools::Bridge::getLeft | ( | ) | const [inline] |
Definition at line 146 of file Bridge.hpp.
| bridge::Forwarder* wns::ldk::tools::Bridge::getRight | ( | ) | const [inline] |
Definition at line 155 of file Bridge.hpp.
| void wns::ldk::tools::Bridge::setLoss | ( | double | loss | ) | [inline] |
Link quality is set in terms of packet loss ratio.
Definition at line 165 of file Bridge.hpp.
bridge::Forwarder* wns::ldk::tools::Bridge::a [private] |
Definition at line 172 of file Bridge.hpp.
bridge::Forwarder* wns::ldk::tools::Bridge::b [private] |
Definition at line 173 of file Bridge.hpp.
1.5.5