w2kmeans::ClusterTableCreator< GridType > Class Template Reference

List of all members.

Detailed Description

template<class GridType>
class w2kmeans::ClusterTableCreator< GridType >

This class builds the cluster table based on a bunch of fields.

It organizes the cluster table according to the config file w2config/algs/clusterTable.xml

Author:
Lakshman
Version:
Id
w2kmeans_ClusterTableCreator.h,v 1.23 2011/04/26 16:21:46 lakshman Exp


Public Member Functions

 ClusterTableCreator (const code::XML::Element &table_element)
 Gets the actions from the config file specified.
void addInput (const code::Index::Record &rec)
 Add index record from which to extract extra cluster field to add into table properties.
virtual code::SmartPtr< code::DataType > createTable (const code::Time &latestTime, const std::vector< ClusterTableRegion > &regions, const std::string &scale=std::string())
 Create the cluster table based on all the fields already known, and the current time.
void createOutputGrids (const GridType &clusterLabels, const std::vector< ClusterTableRegion > &regions, const code::DataTable &clusterTable, std::vector< GridType > &outputs)
virtual ~ClusterTableCreator ()
 ClusterTableCreator ()
 no-op constructor.
void setExampleGridForRemapping (const GridType &grid)
 If such an example grid is not set, no remapping will be done.

Static Public Member Functions

static ClusterTableCreator<
GridType > 
newInstance (const code::URL &xml_file)
 Create ClusterTableCreator from the XML config file.

Classes

struct  OutputGridInfo


Constructor & Destructor Documentation

template<class GridType>
w2kmeans::ClusterTableCreator< GridType >::ClusterTableCreator ( const code::XML::Element &  table_element  ) 

Gets the actions from the config file specified.

template<class GridType>
virtual w2kmeans::ClusterTableCreator< GridType >::~ClusterTableCreator (  )  [inline, virtual]

template<class GridType>
w2kmeans::ClusterTableCreator< GridType >::ClusterTableCreator (  )  [inline]

no-op constructor.


Member Function Documentation

template<class GridType>
void w2kmeans::ClusterTableCreator< GridType >::addInput ( const code::Index::Record &  rec  ) 

Add index record from which to extract extra cluster field to add into table properties.

template<class GridType>
void w2kmeans::ClusterTableCreator< GridType >::createOutputGrids ( const GridType &  clusterLabels,
const std::vector< ClusterTableRegion > &  regions,
const code::DataTable &  clusterTable,
std::vector< GridType > &  outputs 
)

template<class GridType>
virtual code::SmartPtr<code::DataType> w2kmeans::ClusterTableCreator< GridType >::createTable ( const code::Time &  latestTime,
const std::vector< ClusterTableRegion > &  regions,
const std::string &  scale = std::string() 
) [virtual]

Create the cluster table based on all the fields already known, and the current time.

template<class GridType>
static ClusterTableCreator<GridType> w2kmeans::ClusterTableCreator< GridType >::newInstance ( const code::URL &  xml_file  )  [static]

Create ClusterTableCreator from the XML config file.

Creates no-op ClusterTableCreator if the file doesn't exist.

template<class GridType>
void w2kmeans::ClusterTableCreator< GridType >::setExampleGridForRemapping ( const GridType &  grid  )  [inline]

If such an example grid is not set, no remapping will be done.

This function works only once; after that it's a no-op.


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7