MineLink
 All Data Structures Functions Variables Pages
delphos::Reblocker Class Reference

Abstract class to define methods for the reblocking utility. More...

#include <reblock.h>

Inheritance diagram for delphos::Reblocker:
Inheritance graph
Collaboration diagram for delphos::Reblocker:
Collaboration graph

Public Member Functions

 Reblocker (delphos::BlockModel &bm)
 Creates a new reblocker associated to a given block model. More...
 
virtual ~Reblocker ()
 Destructor.
 
void AddAggregatedColumn (const string &column, delphos::SelectionFunctor *f)
 Adds a column to be created in the resulting block model. More...
 
void AddSummationColumn (const string &column, const string &newcolumn)
 Adds a column to be created in the resulting block model. More...
 
void AddMajorizationColumn (const string &column, const string &newcolumn)
 Adds a column to be created in the resulting block model. More...
 
void AddAvgColumn (const string &sumcolumn, const string &newcolumn)
 Adds a column to be created in the resulting block model. More...
 
void AddAvgColumn (const string &sumcolumn, const string &weightcolumn, const string &newcolumn)
 Adds a column to be created in the resulting block model. More...
 
void AddMaxColumn (const string &column, const string &newcolumn)
 Adds a column to be created in the resulting block model. More...
 
void AddMinColumn (const string &column, const string &newcolumn)
 Adds a column to be created in the resulting block model. More...
 
vector< string > AggregatedColumnNames () const
 Returns the names of the columns to be created in the new block model.
 
const
delphos::SelectionFunctor
*const 
AggregatedColumnFunctor (const string &column_name) const
 Retrieves the function to be used for creating a certain attribute in the aggregated block model. More...
 
const unsigned int NumOfAggregatedColumns () const
 Reports the number of columns to be created in the new block model.
 
- Public Member Functions inherited from delphos::BlockModelEntity
 BlockModelEntity (delphos::BlockModel &bm)
 Creates a new block instance associated to a given block model. More...
 
delphos::BlockModelGetBlockModel ()
 Retrieves the block model to which the entity is associated. More...
 
const delphos::BlockModelGetBlockModel () const
 Retrieves the block model to which the entity is associated. More...
 

Detailed Description

Abstract class to define methods for the reblocking utility.

This class allows to create new block models by aggregating blocks of an existin one into larger blocks.

The class also calculates corresponding attributes starting from the attributes in the original block model. The attributes to be calculated can be general and are specified by the user.

Constructor & Destructor Documentation

delphos::Reblocker::Reblocker ( delphos::BlockModel bm)

Creates a new reblocker associated to a given block model.

Parameters
bmThe block model.

Member Function Documentation

void delphos::Reblocker::AddAggregatedColumn ( const string &  column,
delphos::SelectionFunctor f 
)

Adds a column to be created in the resulting block model.

Parameters
columnName of the column to be added in the aggregated block model.
fFunction that calculates the value of the resulting attribute.

This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure. The f function provides, for each group of blocks (given by a set of blocks corresponding to the ones in a fixed aggregated block of the new block model), the corresponding value for the attribute being calculated.

void delphos::Reblocker::AddAvgColumn ( const string &  sumcolumn,
const string &  newcolumn 
)

Adds a column to be created in the resulting block model.

Parameters
sumcolumnName of the column to be averaged in the aggregated block model.
newcolumnName of the column to be added in the aggregated block model.

This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.

void delphos::Reblocker::AddAvgColumn ( const string &  sumcolumn,
const string &  weightcolumn,
const string &  newcolumn 
)

Adds a column to be created in the resulting block model.

Parameters
sumcolumnName of the column to be averaged in the aggregated block model.
newcolumnName of the column to be added in the aggregated block model.
weightcolumnName of the column to be added in the aggregated block mode.

This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.

void delphos::Reblocker::AddMajorizationColumn ( const string &  column,
const string &  newcolumn 
)

Adds a column to be created in the resulting block model.

Parameters
columnName of the column to be majorized in the aggregated block model.
newcolumnName of the column to be added in the aggregated block model.

This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.

void delphos::Reblocker::AddMaxColumn ( const string &  column,
const string &  newcolumn 
)

Adds a column to be created in the resulting block model.

Parameters
columnName of the column where the maximum is extracted.
newcolumnName of the column to be added in the aggregated block model.

This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.

void delphos::Reblocker::AddMinColumn ( const string &  column,
const string &  newcolumn 
)

Adds a column to be created in the resulting block model.

Parameters
columnName of the column where the minimum is extracted.
newcolumnName of the column to be added in the aggregated block model.

This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.

void delphos::Reblocker::AddSummationColumn ( const string &  column,
const string &  newcolumn 
)

Adds a column to be created in the resulting block model.

Parameters
columnName of the column to be summed in the aggregated block model.
newcolumnName of the column to be added in the aggregated block model.

This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.

const SelectionFunctor *const delphos::Reblocker::AggregatedColumnFunctor ( const string &  column_name) const

Retrieves the function to be used for creating a certain attribute in the aggregated block model.

Parameters
column_nameName that will be given to the new attribute.

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