User Manual, Developers Guide and API Documentation

wns::ldk::tools::Producer Class Reference

Creates compounds and tries to deliver them. More...

#include <ldk/tools/Producer.hpp>

Inheritance diagram for wns::ldk::tools::Producer:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::tools::Producer:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list< CompoundPtrContainerType

Public Member Functions

virtual void doOnData (const CompoundPtr &compound)
virtual void doSendData (const CompoundPtr &)
 Producer (fun::FUN *fuNet)
 ~Producer ()

Public Attributes

unsigned long int sent

Private Member Functions

void allocate ()
virtual bool doIsAccepting (const CompoundPtr &) const
virtual void doWakeup ()

Private Attributes

CompoundPtr buffer


Detailed Description

Use this FunctionalUnit for testing on top of your test stack.
Make sure, that noone calls doSendData of a Producer. Producer is a FunctionalUnit to sit on top of a stack.
Todo:
currently, Producer creates Compounds with a fresh Command. But it would be nicer to have policies for the creation of Compounds. Another useful creational policy could follow the prototype pattern: Give the producer a PDU to make copies of... Or maybe something even smarter?

Definition at line 59 of file Producer.hpp.


Member Typedef Documentation

Definition at line 68 of file Producer.hpp.


Constructor & Destructor Documentation

wns::ldk::tools::Producer::Producer ( fun::FUN fuNet  )  [inline]

Definition at line 70 of file Producer.hpp.

wns::ldk::tools::Producer::~Producer (  )  [inline]

Definition at line 83 of file Producer.hpp.


Member Function Documentation

void wns::ldk::tools::Producer::allocate (  )  [inline, private]

Definition at line 124 of file Producer.hpp.

virtual bool wns::ldk::tools::Producer::doIsAccepting ( const CompoundPtr  )  const [inline, private, virtual]

Definition at line 108 of file Producer.hpp.

virtual void wns::ldk::tools::Producer::doOnData ( const CompoundPtr compound  )  [inline, virtual]

Definition at line 95 of file Producer.hpp.

virtual void wns::ldk::tools::Producer::doSendData ( const CompoundPtr  )  [inline, virtual]

Definition at line 88 of file Producer.hpp.

virtual void wns::ldk::tools::Producer::doWakeup (  )  [inline, private, virtual]

Definition at line 114 of file Producer.hpp.


Member Data Documentation

Definition at line 129 of file Producer.hpp.

Definition at line 101 of file Producer.hpp.


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

Generated on Sun May 27 03:33:00 2012 for openWNS by  doxygen 1.5.5