User Manual, Developers Guide and API Documentation

wns::probe::bus::ProbeBusRegistry Class Reference

The ProbeBusRegistry resolves a ProbeBus name to a PassThroughProbeBus which may then be used as the entry point for measurements to the ProbeBus system. More...

#include <probe/bus/ProbeBusRegistry.hpp>

Inheritance diagram for wns::probe::bus::ProbeBusRegistry:

Inheritance graph
[legend]
Collaboration diagram for wns::probe::bus::ProbeBusRegistry:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list< ProbeBus * > CreatedProbeBussesContainer
typedef
wns::container::Registry
< std::string, ProbeBus
*, wns::container::registry::DeleteOnErase
ProbeBusRegistryContainer

Public Member Functions

void forwardOutput ()
 All known ProbeBusses are triggered to write their results to persistent storage.
ProbeBusgetMeasurementSource (const std::string &)
 Retrieves an instance of the PassThroughProbeBus.
 ProbeBusRegistry (const wns::pyconfig::View &, wns::logger::Master *)
 Constructs the registry and uses a cusom masterLogger.
 ProbeBusRegistry (const wns::pyconfig::View &)
 Constructs the registry and uses the default MasterLogger.
void reset ()
 Reset the registry. Primarily needed for testig.
void spawnProbeBusses (const wns::pyconfig::View &probeBusTrees)
 Reads the configured measurement sources then spawns and connects all observing ProbeBusses recursively to the MasteProbeBus for that source.
void startup ()
 Reads the own list of ProbeBus trees and connects these recursively to the ProbeBusses in this registry.
virtual ~ProbeBusRegistry ()
 Empty (Does NOT delete any ProbeBusses).

Private Member Functions

std::string doToString () const
 Used to dump the contents of ProbeBusRegistry.
void spawnObservers (ProbeBus *subject, const wns::pyconfig::View &config)
 Reads the configured measurement sources then spawns and connects all observing ProbeBusses recursively to the subject for that source.

Private Attributes

CreatedProbeBussesContainer createdProbeBusses_
wns::logger::Logger logger_
wns::pyconfig::View pyco_
ProbeBusRegistryContainer registry_


Detailed Description

Author:
Daniel Bueltmann <me@daniel-bueltmann.de>

Definition at line 45 of file ProbeBusRegistry.hpp.


Member Typedef Documentation

Definition at line 52 of file ProbeBusRegistry.hpp.

Definition at line 50 of file ProbeBusRegistry.hpp.


Constructor & Destructor Documentation

ProbeBusRegistry::ProbeBusRegistry ( const wns::pyconfig::View pyco  ) 

Definition at line 33 of file ProbeBusRegistry.cpp.

ProbeBusRegistry::ProbeBusRegistry ( const wns::pyconfig::View pyco,
wns::logger::Master ml 
)

Definition at line 40 of file ProbeBusRegistry.cpp.

ProbeBusRegistry::~ProbeBusRegistry (  )  [virtual]

Definition at line 47 of file ProbeBusRegistry.cpp.


Member Function Documentation

std::string ProbeBusRegistry::doToString (  )  const [private, virtual]

Implements wns::IOutputStreamable.

Definition at line 138 of file ProbeBusRegistry.cpp.

void ProbeBusRegistry::forwardOutput (  ) 

Definition at line 127 of file ProbeBusRegistry.cpp.

ProbeBus * ProbeBusRegistry::getMeasurementSource ( const std::string &  probeBusID  ) 

If the given name is asked for the first time the ProbeBusRegistry creates a PassThroughProbeBus. Subsequent requests for the same MasterProbeBus then always get the same instance. In this way measurement sources and measurement sinks are decoupled.

Definition at line 117 of file ProbeBusRegistry.cpp.

void ProbeBusRegistry::reset (  ) 

Definition at line 53 of file ProbeBusRegistry.cpp.

void ProbeBusRegistry::spawnObservers ( ProbeBus subject,
const wns::pyconfig::View config 
) [private]

Definition at line 95 of file ProbeBusRegistry.cpp.

void ProbeBusRegistry::spawnProbeBusses ( const wns::pyconfig::View probeBusTrees  ) 

Definition at line 80 of file ProbeBusRegistry.cpp.

void ProbeBusRegistry::startup (  ) 

Definition at line 67 of file ProbeBusRegistry.cpp.


Member Data Documentation

Definition at line 129 of file ProbeBusRegistry.hpp.

Definition at line 127 of file ProbeBusRegistry.hpp.

Definition at line 123 of file ProbeBusRegistry.hpp.

Definition at line 125 of file ProbeBusRegistry.hpp.


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

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