User Manual, Developers Guide and API Documentation

wns::ldk::arq::statuscollector::Counter Class Reference

ARQStatusCollector which simply counts the success/failed transmissions.

#include <ldk/arq/statuscollector/Counter.hpp>

Inheritance diagram for wns::ldk::arq::statuscollector::Counter:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::arq::statuscollector::Counter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Counter (const wns::pyconfig::View &config)
double getSuccessRate (const CompoundPtr &compound)
void onFailedTransmission (const CompoundPtr &compound)
void onSuccessfullTransmission (const CompoundPtr &compound)
void reset ()

Private Attributes

wns::logger::Logger logger
int numFailed
int numSucc


Detailed Description

Definition at line 42 of file Counter.hpp.


Constructor & Destructor Documentation

Counter::Counter ( const wns::pyconfig::View config  ) 

Definition at line 35 of file Counter.cpp.


Member Function Documentation

double Counter::getSuccessRate ( const CompoundPtr compound  )  [virtual]

Implements wns::ldk::arq::statuscollector::Interface.

Definition at line 46 of file Counter.cpp.

void Counter::onFailedTransmission ( const CompoundPtr compound  )  [virtual]

Implements wns::ldk::arq::statuscollector::Interface.

Definition at line 64 of file Counter.cpp.

void Counter::onSuccessfullTransmission ( const CompoundPtr compound  )  [virtual]

Implements wns::ldk::arq::statuscollector::Interface.

Definition at line 58 of file Counter.cpp.

void Counter::reset (  )  [virtual]

Implements wns::ldk::arq::statuscollector::Interface.

Definition at line 40 of file Counter.cpp.


Member Data Documentation

Definition at line 55 of file Counter.hpp.

Definition at line 53 of file Counter.hpp.

Definition at line 52 of file Counter.hpp.


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

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