User Manual, Developers Guide and API Documentation

wns::ldk::flowseparator::CreateOnValidFlow Class Reference

Only create missing instances when the compound (i.e. the key) belongs to a valid flow. More...

#include <ldk/flowseparator/NotFoundStrategy.hpp>

Inheritance diagram for wns::ldk::flowseparator::CreateOnValidFlow:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::flowseparator::CreateOnValidFlow:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CreateOnValidFlow (CreatorStrategy *_creator, FlowInfoProvider *_flowInfo)
 CreateOnValidFlow (fun::FUN *fuNet, const pyconfig::View &config)
FunctionalUnitcreatePrototype () const
FunctionalUnitifNotFound (const ConstKeyPtr &key) const
 Return a new FU for the given key.
void onFUNCreated ()
 enable dependency resolution
virtual ~CreateOnValidFlow ()

Private Attributes

std::auto_ptr< CreatorStrategycreator
 strategy for new fu creation
FlowInfoProviderflowInfo
 handle to the service that has the flow info.
std::string flowInfoProviderName
 name under which to access the control service that has the flow info
fun::FUNfun
 needed to access the control service


Detailed Description

CreateOnValidFlow.png

Sequence Diagram: Create new FU if no FU for Compound found, but ask FlowManager in advance

Definition at line 125 of file NotFoundStrategy.hpp.


Constructor & Destructor Documentation

CreateOnValidFlow::CreateOnValidFlow ( fun::FUN fuNet,
const pyconfig::View config 
)

Definition at line 122 of file NotFoundStrategy.cpp.

CreateOnValidFlow::CreateOnValidFlow ( CreatorStrategy _creator,
FlowInfoProvider _flowInfo 
)

Definition at line 134 of file NotFoundStrategy.cpp.

CreateOnValidFlow::~CreateOnValidFlow (  )  [virtual]

Definition at line 141 of file NotFoundStrategy.cpp.


Member Function Documentation

FunctionalUnit * CreateOnValidFlow::createPrototype (  )  const [virtual]

Implements wns::ldk::flowseparator::NotFoundStrategy.

Definition at line 160 of file NotFoundStrategy.cpp.

FunctionalUnit * CreateOnValidFlow::ifNotFound ( const ConstKeyPtr key  )  const [virtual]

Implements wns::ldk::flowseparator::NotFoundStrategy.

Definition at line 146 of file NotFoundStrategy.cpp.

void CreateOnValidFlow::onFUNCreated (  )  [virtual]

Implements wns::ldk::flowseparator::NotFoundStrategy.

Definition at line 166 of file NotFoundStrategy.cpp.


Member Data Documentation

Definition at line 153 of file NotFoundStrategy.hpp.

The handle is obtained from the ControlServiceRegistry of the FUN via the 'flowInfoProviderName'

Definition at line 161 of file NotFoundStrategy.hpp.

Definition at line 167 of file NotFoundStrategy.hpp.

Definition at line 148 of file NotFoundStrategy.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