User Manual, Developers Guide and API Documentation

wns::ldk::tools::Bridge Class Reference

(Possibly lossy) double-ended bridge. More...

#include <ldk/tools/Bridge.hpp>

Collaboration diagram for wns::ldk::tools::Bridge:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Bridge (fun::FUN *leftFUN, fun::FUN *rightFUN, double loss=0.0)
bridge::ForwardergetLeft () const
 Return the 'left' FunctionalUnit.
bridge::ForwardergetRight () const
 Return the 'right' FunctionalUnit.
void setLoss (double loss)
 Set the link quality.
virtual ~Bridge ()

Private Attributes

bridge::Forwardera
bridge::Forwarderb


Detailed Description

A pair of two functional units, that forward compounds, where double-ended means: Use this FunctionalUnit as shortcut during testing. You may as well find it useful to configure the Brige to be lossy.

Definition at line 126 of file Bridge.hpp.


Constructor & Destructor Documentation

Bridge::Bridge ( fun::FUN leftFUN,
fun::FUN rightFUN,
double  loss = 0.0 
)

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 172 of file Bridge.hpp.

Definition at line 173 of file Bridge.hpp.


The documentation for this class was generated from the following files:

Generated on Sat May 26 03:32:57 2012 for openWNS by  doxygen 1.5.5