User Manual, Developers Guide and API Documentation

wns::ldk::crc::CRC Class Reference

CRC implementation of the FU interface.

#include <ldk/crc/CRC.hpp>

Inheritance diagram for wns::ldk::crc::CRC:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::crc::CRC:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void calculateSizes (const CommandPool *commandPool, Bit &commandPoolSize, Bit &dataSize) const
 CRC (fun::FUN *fuNet, const wns::pyconfig::View &config)
bool isMarking () const
virtual void onFUNCreated ()
 ~CRC ()

Private Types

enum  Behaviour { DROPPING, MARKING }
 behaviour of the CRC, defaults to DROPPING, which means that it does not deliver bad Compounds to the next FUs in the 'incoming' chain. If the behaviour is set to MARKING, the compounds are marked bad in the local part of the CRCCommand and delivered. More...

Private Member Functions

virtual bool doIsAccepting (const CompoundPtr &compound) const
virtual void doOnData (const CompoundPtr &compound)
virtual void doSendData (const CompoundPtr &compound)
virtual void doWakeup ()
virtual bool onSuspend () const

Private Attributes

Behaviour behaviour
int checkSumLength
 Length of the CRC checksum.
wns::distribution::StandardUniform dis
 Pointer to the used Uniform Distribution.
struct wns::ldk::crc::CRC::Friends friends
logger::Logger logger
wns::probe::bus::ContextCollectorPtr lossRatio
std::string PERProviderName

Classes

struct  Friends


Detailed Description

Definition at line 67 of file CRC.hpp.


Member Enumeration Documentation

Enumerator:
DROPPING 
MARKING 

Definition at line 128 of file CRC.hpp.


Constructor & Destructor Documentation

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

Definition at line 49 of file CRC.cpp.

CRC::~CRC (  ) 

Definition at line 73 of file CRC.cpp.


Member Function Documentation

void CRC::calculateSizes ( const CommandPool commandPool,
Bit commandPoolSize,
Bit dataSize 
) const

Definition at line 165 of file CRC.cpp.

bool CRC::doIsAccepting ( const CompoundPtr compound  )  const [private, virtual]

Definition at line 154 of file CRC.cpp.

void CRC::doOnData ( const CompoundPtr compound  )  [private, virtual]

Definition at line 98 of file CRC.cpp.

void CRC::doSendData ( const CompoundPtr compound  )  [private, virtual]

Definition at line 86 of file CRC.cpp.

virtual void wns::ldk::crc::CRC::doWakeup (  )  [inline, private, virtual]

Definition at line 96 of file CRC.hpp.

bool CRC::isMarking (  )  const

Definition at line 175 of file CRC.cpp.

void CRC::onFUNCreated (  )  [virtual]

Definition at line 79 of file CRC.cpp.

virtual bool wns::ldk::crc::CRC::onSuspend (  )  const [inline, private, virtual]

Implements wns::ldk::SuspendSupport.

Definition at line 102 of file CRC.hpp.


Member Data Documentation

Definition at line 129 of file CRC.hpp.

Definition at line 117 of file CRC.hpp.

Definition at line 111 of file CRC.hpp.

Definition at line 135 of file CRC.hpp.

Definition at line 138 of file CRC.hpp.

std::string wns::ldk::crc::CRC::PERProviderName [private]

Definition at line 119 of file CRC.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