GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gw::DEmulator Class Reference

An general emulator, could run or not in multi-threading environement. More...

#include <DEmulator.h>

Inheritance diagram for Gw::DEmulator:

Public Member Functions

template<class T_actor >
DLActorAdd (const Char_t *name_left, const Char_t *name_new_actor, const Char_t *name_right="-", const Char_t *conf_dir="./")
 
template<class T_actor , class T_Configurator >
DLActorAdd (const Char_t *name_left, const Char_t *name_new_actor, const Char_t *name_right="-", const Char_t *conf_dir="./")
 
void BuildTopology ()
 Built the map, starting from producer is calculates the depth of each actor in the data flow. More...
 
 DEmulator (std::string name="DEmulator")
 
virtual void Draw ()
 Draw ... default is print. More...
 
virtual NarvalInterfaceGetActorByName (const Char_t *) const
 search for an actor in the emulator More...
 
template<class T_actor >
T_actor * GetActorByName (const Char_t *name) const
 search for an actor in the emulator More...
 
virtual ALoadedActorGetLoaderByName (const Char_t *) const
 search for a node in the emulator More...
 
std::string & GetName ()
 Name of the emulator. More...
 
virtual void Init (const NamedItem< std::string > &init_sequence=NamedItem< std::string >("InitSequence","config load init"))
 Init the emulator. To be called before calling Run. More...
 
virtual void PrintTopology ()
 print topology More...
 
virtual void Run (Int_t max_loop=-1)
 Run max loop. More...
 
virtual void SetGlobal (const ANamedItem &)
 This method allows to modified some options of the emulator. More...
 
virtual ~DEmulator ()
 

Protected Member Functions

template<class T_loader , class T_actor >
T_loader * AddLoader (const Char_t *name_left, const Char_t *name_new_actor, const Char_t *name_right, const Char_t *conf_dir, ConfigFunction f_config)
 Actors are memorized depending on their depth in the data processing chain. More...
 
template<class T_item >
NamedItem< T_item > * GetItem (const Char_t *name, std::vector< ANamedItem * > &v)
 to get back an item from its name More...
 
virtual void LinkActors (ALoadedActor *left, ALoadedActor *middle, ALoadedActor *right)
 link left and right ... depends on the emulator's implementation More...
 

Protected Attributes

std::vector< ALoadedActor * > fAllActors
 list of all actors to start building the map and to delete them @ the end More...
 
std::vector< AnActorConnection * > fAllConnections
 list of all connections. Owned by the emulator thus delete by this More...
 
std::vector< ANamedItem * > fGlobals
 to configure the emulator. The name of each item should be unique ! More...
 
std::vector< std::vector
< ALoadedActor * > > 
fTopology
 Actors are memorized depending on their depth in the data processing chain. More...
 

Detailed Description

An general emulator, could run or not in multi-threading environement.

Definition at line 125 of file DEmulator.h.


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