FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Member Functions | List of all members
frib::analysis::CMPIParameterDealer Class Reference

#include <MPIParameterDealer.h>

Public Member Functions

 CMPIParameterDealer (int argc, char **argv, AbstractApplication *pApp)
 
virtual ~CMPIParameterDealer ()
 
void operator() ()
 

Detailed Description

This class deals parameter data to workers. It is intended for use when analysis requires extracting other parameters from a set of existing parameters.

The input file is assumed to be a parameter data file. This means that the first two items in the file are a parameter definition record and a variable definition record.

These are sent to all workers in a push send prior to reading the rest of the data. THis allows workers to build up a correspondence table between the parameter ids they have internally and those in the file.

Variables can be handled as determined by the worker. They may be discarded or override variable values in the definition file at the discretion of the actual worker. The worker may even have a mechanism to determine which variables can be overridden and which cannot. The dealer does not care - it just ships out the items. Note that the outputter, howver is going to assume the defintition file is the last word on it as it does not know anything about what the workers are doing.

Once the parameter and variable items are sent; send on request begins. Each worker sends a request for data which is satisfied either by a new block of parameter ring items or an end indicator.

Ring items that are not parameter ring items are passed directy to the outputter in a push so that they can be directly written to file.

Once and end file indication has been gotten on the input file, further requests are answered with an end indication and, when all workers have gotten that we exit.

Constructor & Destructor Documentation

◆ CMPIParameterDealer()

frib::analysis::CMPIParameterDealer::CMPIParameterDealer ( int  argc,
char **  argv,
AbstractApplication pApp 
)

constructor

Parameters
argc,argv- command line words.
pApp- pointer to the application object.
Note
- this may be called prior to MPI_Init.

◆ ~CMPIParameterDealer()

frib::analysis::CMPIParameterDealer::~CMPIParameterDealer ( )
virtual

destructor Kill off the reader.

Member Function Documentation

◆ operator()()

void frib::analysis::CMPIParameterDealer::operator() ( )

operator() The entry point to the code.


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