User Manual, Developers Guide and API Documentation

wifimac::helper::DestinationSortedWindowProbe Class Reference

FunctionalUnit to probe windowing throughputs that include the destination of the frame as context. More...

#include <helper/DestinationSortedWindowProbe.hpp>

Inheritance diagram for wifimac::helper::DestinationSortedWindowProbe:

Inheritance graph
[legend]
Collaboration diagram for wifimac::helper::DestinationSortedWindowProbe:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DestinationSortedWindowProbe (wns::ldk::fun::FUN *fuNet, const wns::pyconfig::View &config)
virtual void processIncoming (const wns::ldk::CompoundPtr &compound)
 Process compounds on uplink.
virtual void processOutgoing (const wns::ldk::CompoundPtr &compound)
 Process compounds on downlink.
void putAggregatedProbe (unsigned int adr, double value)
virtual ~DestinationSortedWindowProbe ()

Private Types

typedef
wns::container::Registry
< unsigned int,
wns::SlidingWindow
*, wns::container::registry::DeleteOnErase
SlidingWindowMap

Private Member Functions

virtual void onFUNCreated ()
 Resolve inter-FU dependencies.
void periodically ()
 Periodically storing of the slidingWindow results.
void putProbe (SlidingWindowMap &probeHolder, unsigned int adr, double value)
void storeProbes (SlidingWindowMap &probeHolder, wns::probe::bus::ContextCollectorPtr &putter)
 Helper for periodically: store all probes in the given sliding windows into the putters.

Private Attributes

wns::probe::bus::ContextCollectorPtr bitsAggregated
SlidingWindowMap bitsAggregatedProbeHolder
wns::probe::bus::ContextCollectorPtr bitsIncoming
 Store all putter in a registry, sorted by address, created on-demand.
SlidingWindowMap bitsIncomingProbeHolder
 Store all probes(sliding windows) in a registry, sorted by address, created on-demand.
wns::probe::bus::ContextCollectorPtr bitsOutgoing
SlidingWindowMap bitsOutgoingProbeHolder
wns::pyconfig::View config
wns::probe::bus::ContextCollectorPtr relativeGoodput
const std::string ucCommandName
wns::ldk::CommandReaderInterfaceucReader
 Access the source and destination.
const simTimeType windowSize


Detailed Description

This is a derivate of the wns::ldk::probe::Window

Definition at line 49 of file DestinationSortedWindowProbe.hpp.


Member Typedef Documentation

Definition at line 52 of file DestinationSortedWindowProbe.hpp.


Constructor & Destructor Documentation

DestinationSortedWindowProbe::DestinationSortedWindowProbe ( wns::ldk::fun::FUN fuNet,
const wns::pyconfig::View config 
)

Definition at line 51 of file DestinationSortedWindowProbe.cpp.

DestinationSortedWindowProbe::~DestinationSortedWindowProbe (  )  [virtual]

Definition at line 73 of file DestinationSortedWindowProbe.cpp.


Member Function Documentation

void DestinationSortedWindowProbe::onFUNCreated (  )  [private, virtual]

Often FunctionalUnits require the collaboration with other FunctionalUnits to accomplish their task. For the collaboration between FunctionalUnits we coined the term "friendship".

The onFUNCreated method is a hook being called after the complete FUN has been set up. FunctionalUnits requiring the collaboration with other FunctionalUnits should resolve these dependencies by implementing this hook accordingly.

Finding friends is usually done calling wns::ldk::fun::FUN::findFriend.

When building reconfigurable FUNs, this method may get called multiple times (e.g., after each FUN reconfiguration). Keep that in mind when allocating resources in your onFUNCreated implementation.

Reimplemented from wns::ldk::FunctionalUnit.

Definition at line 78 of file DestinationSortedWindowProbe.cpp.

void DestinationSortedWindowProbe::periodically (  )  [private, virtual]

Reimplemented from wns::ldk::probe::bus::Window.

Definition at line 175 of file DestinationSortedWindowProbe.cpp.

void DestinationSortedWindowProbe::processIncoming ( const wns::ldk::CompoundPtr compound  )  [virtual]

Override this method to handle incoming compounds.

Reimplemented from wns::ldk::probe::bus::Window.

Definition at line 85 of file DestinationSortedWindowProbe.cpp.

void DestinationSortedWindowProbe::processOutgoing ( const wns::ldk::CompoundPtr  )  [virtual]

Override this method to handle outgoing compounds.

Reimplemented from wns::ldk::probe::bus::Window.

Definition at line 111 of file DestinationSortedWindowProbe.cpp.

void DestinationSortedWindowProbe::putAggregatedProbe ( unsigned int  adr,
double  value 
)

Definition at line 151 of file DestinationSortedWindowProbe.cpp.

void DestinationSortedWindowProbe::putProbe ( SlidingWindowMap probeHolder,
unsigned int  adr,
double  value 
) [private]

Definition at line 163 of file DestinationSortedWindowProbe.cpp.

void DestinationSortedWindowProbe::storeProbes ( SlidingWindowMap probeHolder,
wns::probe::bus::ContextCollectorPtr putter 
) [private]

Definition at line 218 of file DestinationSortedWindowProbe.cpp.


Member Data Documentation

Reimplemented from wns::ldk::probe::bus::Window.

Definition at line 94 of file DestinationSortedWindowProbe.hpp.

Definition at line 101 of file DestinationSortedWindowProbe.hpp.

Reimplemented from wns::ldk::probe::bus::Window.

Definition at line 93 of file DestinationSortedWindowProbe.hpp.

Definition at line 100 of file DestinationSortedWindowProbe.hpp.

Reimplemented from wns::ldk::probe::bus::Window.

Definition at line 95 of file DestinationSortedWindowProbe.hpp.

Definition at line 102 of file DestinationSortedWindowProbe.hpp.

Definition at line 87 of file DestinationSortedWindowProbe.hpp.

Definition at line 96 of file DestinationSortedWindowProbe.hpp.

Definition at line 89 of file DestinationSortedWindowProbe.hpp.

Definition at line 85 of file DestinationSortedWindowProbe.hpp.

Definition at line 88 of file DestinationSortedWindowProbe.hpp.


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

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